!18 rdnssd: remove unused parameter

From: @robertxw 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2022-12-13 11:58:11 +00:00 committed by Gitee
commit 49d7268bd3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,34 @@
From f1835bc849fad80e053d3e1e7a8b117ee6e6284d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
Date: Wed, 11 May 2022 21:30:54 +0300
Subject: [PATCH] rdnssd: remove unused parameter
---
rdnss/rdnssd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rdnss/rdnssd.c b/rdnss/rdnssd.c
index 57942d3..b87edb2 100644
--- a/rdnss/rdnssd.c
+++ b/rdnss/rdnssd.c
@@ -291,7 +291,7 @@ void parse_rdnss (const struct nd_opt_hdr *opt, unsigned int ifindex)
rdnss_update(addr, ifindex, lifetime);
}
-void parse_dnssl (const struct nd_opt_hdr *opt, unsigned int ifindex)
+void parse_dnssl (const struct nd_opt_hdr *opt)
{
struct nd_opt_dnssl *dnssl_opt;
size_t nd_opt_len = opt->nd_opt_len;
@@ -396,7 +396,7 @@ int parse_nd_opts (const struct nd_opt_hdr *opt, size_t opts_len, unsigned int i
break;
case ND_OPT_DNSSL:
- parse_dnssl(opt, ifindex);
+ parse_dnssl(opt);
break;
default:
--
2.27.0

View File

@ -1,6 +1,6 @@
Name: ndisc6
Version: 1.0.4
Release: 4
Release: 5
Summary: IPv6 diagnostic tools
License: GPLv2 or GPLv3
URL: http://www.remlab.net/ndisc6
@ -8,6 +8,7 @@ Source0: http://www.remlab.net/files/ndisc6/%{name}-%{version}.tar.bz2
Patch0: bugfix-add-self-mac-check.patch
Patch1: bugfix-add-SO_BINDTODEVICE.patch
Patch2: backport-rdnssd-remove-unused-parameter.patch
BuildRequires: gcc perl-generators
@ -47,6 +48,12 @@ It includes the follwing programs :
%{_mandir}/man*
%changelog
* Fri Nov 11 2022 gaoxingwang <gaoxingwang1@huawei.com> - 1.0.4-5
- Type:bugfix
- CVE:NA
- SUG:restart
- DESC: rdnssd: remove unused parameter
* Fri Apr 29 2022 gaoxingwang <gaoxingwang1@huawei.com> - 1.0.4-4
- Type:bugfix
- CVE:NA