!9 【bugfix】将Pointopoint短标记从P改为p
From: @konglidong Reviewed-by: @seuzw Signed-off-by: @seuzw
This commit is contained in:
commit
0ef8c184c4
@ -0,0 +1,30 @@
|
|||||||
|
From 4030929bb6f3ee6f465c76869d7a49424df45d9e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
Date: Sun, 12 Dec 2021 12:05:42 -0500
|
||||||
|
Subject: [PATCH] interface: change pointopoint short flag from P to p
|
||||||
|
|
||||||
|
The P short flag was used by IFF_POINTOPOINT and IFF_PROMISC. Change
|
||||||
|
IFF_POINTOPOINT to use p to avoid confusion, and because IFF_PROMISC
|
||||||
|
is probably more common for people to check.
|
||||||
|
|
||||||
|
URL: https://sourceforge.net/p/net-tools/bugs/45
|
||||||
|
---
|
||||||
|
lib/interface.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/interface.c b/lib/interface.c
|
||||||
|
index 4c33325..ef28dec 100644
|
||||||
|
--- a/lib/interface.c
|
||||||
|
+++ b/lib/interface.c
|
||||||
|
@@ -693,7 +693,7 @@ void ife_print_short(struct interface *ptr)
|
||||||
|
if (ptr->flags & IFF_NOARP)
|
||||||
|
printf("O");
|
||||||
|
if (ptr->flags & IFF_POINTOPOINT)
|
||||||
|
- printf("P");
|
||||||
|
+ printf("p");
|
||||||
|
if (ptr->flags & IFF_SLAVE)
|
||||||
|
printf("s");
|
||||||
|
if (ptr->flags & IFF_MASTER)
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 2.10
|
Version: 2.10
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Important Programs for Networking
|
Summary: Important Programs for Networking
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://sourceforge.net/projects/net-tools/
|
URL: https://sourceforge.net/projects/net-tools/
|
||||||
@ -18,6 +18,7 @@ Source9: arp-ethers.service
|
|||||||
Patch1: backport-net-tools-cycle.patch
|
Patch1: backport-net-tools-cycle.patch
|
||||||
Patch2: backport-net-tools-man.patch
|
Patch2: backport-net-tools-man.patch
|
||||||
Patch3: backport-ether-wake-interfaces.patch
|
Patch3: backport-ether-wake-interfaces.patch
|
||||||
|
Patch4: backport-interface-change-pointopoint-short-flag-from-P-to-p.patch
|
||||||
|
|
||||||
BuildRequires: bluez-libs-devel gettext, libselinux libselinux-devel systemd gcc
|
BuildRequires: bluez-libs-devel gettext, libselinux libselinux-devel systemd gcc
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
@ -43,6 +44,7 @@ cp %SOURCE8 ./man/en_US
|
|||||||
%patch1 -p1 -b .cycle
|
%patch1 -p1 -b .cycle
|
||||||
%patch2 -p1 -b .man
|
%patch2 -p1 -b .man
|
||||||
%patch3 -p1 -b .interfaces
|
%patch3 -p1 -b .interfaces
|
||||||
|
%patch4 -p1
|
||||||
touch ./config.h
|
touch ./config.h
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -103,6 +105,12 @@ touch %{buildroot}%{_unitdir}/arp-ethers.service
|
|||||||
%exclude %{_mandir}/pt/man5
|
%exclude %{_mandir}/pt/man5
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 20 2022 konglidong <konglidong@uniontech.com> - 2.10-2
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:interface: change pointopoint short flag from P to p
|
||||||
|
|
||||||
* Tue Dec 07 2021 gaihuiying<gaihuiying1@huawei.com> - 2.10-1
|
* Tue Dec 07 2021 gaihuiying<gaihuiying1@huawei.com> - 2.10-1
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user