加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-tx-rename-variable.patch 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
yc555 提交于 2024-10-10 12:56 . lldpad: sync bugfix patches
From 2446318f61b3161cccc7c4c467f3a58be33a9c16 Mon Sep 17 00:00:00 2001
From: Aaron Conole <aconole@redhat.com>
Date: Fri, 11 Dec 2020 12:34:56 -0500
Subject: [PATCH] tx: rename variable
This was originally intended to be part of f91cf35f5871 ("tx: when ...")
but was omitted in error. Addresses the original comment.
Signed-off-by: Aaron Conole <aconole@redhat.com>
---
lldp/tx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lldp/tx.c b/lldp/tx.c
index 9b36071..9ecd9d1 100644
--- a/lldp/tx.c
+++ b/lldp/tx.c
@@ -330,15 +330,15 @@ void process_tx_idle(UNUSED struct lldp_agent *agent)
return;
}
-/* we ignore 'state' value in the case that we have recently transitioned
+/* we ignore 'adminStatus' in the case that we have recently transitioned
* to the shutdown state (in the case of the 'tx' state change) to allow
* for transmitting the ttl==0 as required by the IEEE standard. */
void process_tx_shutdown_frame(struct port *port, struct lldp_agent *agent,
- bool ignoreState)
+ bool ignoreStatus)
{
if (agent->adminStatus != enabledRxTx &&
agent->adminStatus != enabledTxOnly) {
- if (!ignoreState) {
+ if (!ignoreStatus) {
return;
}
}
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化