26 lines
808 B
Diff
26 lines
808 B
Diff
From f9407c8871223cef6dfbc66afb89a3b1b13b811a Mon Sep 17 00:00:00 2001
|
|
From: yinbin6 <yinbin8@huawei.com>
|
|
Date: Wed, 8 May 2024 16:32:44 +0800
|
|
Subject: [PATCH] CFG:fix multicast IP assert error
|
|
|
|
---
|
|
src/lstack/core/lstack_cfg.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/lstack/core/lstack_cfg.c b/src/lstack/core/lstack_cfg.c
|
|
index 7967bb7..9efdbaa 100644
|
|
--- a/src/lstack/core/lstack_cfg.c
|
|
+++ b/src/lstack/core/lstack_cfg.c
|
|
@@ -245,7 +245,7 @@ static int32_t parse_host_addr(void)
|
|
return -EINVAL;
|
|
}
|
|
|
|
- if (IN_MULTICAST(g_config_params.host_addr.addr)) {
|
|
+ if (IN_MULTICAST(ntohl(g_config_params.host_addr.addr))) {
|
|
LSTACK_PRE_LOG(LSTACK_ERR, "cfg: host_addr:%s should not be a multicast IP.", value);
|
|
return -EINVAL;
|
|
}
|
|
--
|
|
2.33.0
|
|
|