Projects
openEuler:C
gazelle
_service:tar_scm:0117-fix-host_addr6-can-be-ass...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0117-fix-host_addr6-can-be-assigned-a-multicast-address.patch of Package gazelle
From 7c8d80e76f93029437f9a52f04c9d02b0d55dd78 Mon Sep 17 00:00:00 2001 From: zhengjiebing <zhengjiebing_yewu@cmss.chinamobile.com> Date: Tue, 16 Jan 2024 23:52:23 +0800 Subject: [PATCH] fix host_addr6 can be assigned a multicast address --- src/lstack/core/lstack_cfg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lstack/core/lstack_cfg.c b/src/lstack/core/lstack_cfg.c index 87df790..5e30e89 100644 --- a/src/lstack/core/lstack_cfg.c +++ b/src/lstack/core/lstack_cfg.c @@ -250,6 +250,12 @@ static int32_t parse_host_addr6(void) if (ip6addr_aton(value, &g_config_params.host_addr6) == 0) { return -EINVAL; } + + if (ip6_addr_ismulticast(&g_config_params.host_addr6)) { + LSTACK_PRE_LOG(LSTACK_ERR, "cfg: host_addr6 cannot be a multicast address."); + return -EINVAL; + } + return 0; } -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.