Use the user-mode IPv6 header file

This commit is contained in:
chengyechun 2024-01-12 07:38:28 +00:00
parent 6d6d75f3f4
commit 68a2cd5a41
2 changed files with 21 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: libnl3 Name: libnl3
Version: 3.7.0 Version: 3.7.0
Release: 2 Release: 3
Summary: Providing APIs to netlink protocol based Linux kernel interfaces Summary: Providing APIs to netlink protocol based Linux kernel interfaces
License: LGPLv2 License: LGPLv2
URL: http://www.infradead.org/~tgr/libnl/ URL: http://www.infradead.org/~tgr/libnl/
@ -9,6 +9,8 @@ Source: https://github.com/thom311/libnl/releases/download/libnl3_7_0/lib
Patch6000: backport-prevent-segfault-in-af_request_type.patch Patch6000: backport-prevent-segfault-in-af_request_type.patch
Patch6001: backport-fix-bridge-info-parsing.patch Patch6001: backport-fix-bridge-info-parsing.patch
Patch9000: solve-redefinition-of-struct-ipv6_mreq.patch
BuildRequires: flex bison libtool autoconf automake swig BuildRequires: flex bison libtool autoconf automake swig
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -92,6 +94,12 @@ cd python
%{python3_sitearch}/netlink-*.egg-info %{python3_sitearch}/netlink-*.egg-info
%changelog %changelog
* Fri Jan 12 2024 chengyechun <chengyechun1@huawei.com> - 3.7.0-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Use the user-mode IPv6 header file
* Mon Aug 14 2023 chengyechun <chengyechun1@huawei.com> - 3.7.0-2 * Mon Aug 14 2023 chengyechun <chengyechun1@huawei.com> - 3.7.0-2
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA

View File

@ -0,0 +1,12 @@
diff -uNrp libnl-3.2.28/include/linux-private/linux/if_bridge.h libnl-3.2.28-new//include/linux-private/linux/if_bridge.h
--- libnl-3.2.28/include/linux-private/linux/if_bridge.h 2016-06-29 17:04:28.000000000 +0800
+++ libnl-3.2.28-new//include/linux-private/linux/if_bridge.h 2016-11-26 13:46:11.000000000 +0800
@@ -15,7 +15,7 @@
#include <linux/types.h>
#include <linux/if_ether.h>
-#include <linux/in6.h>
+#include <netinet/in.h>
#define SYSFS_BRIDGE_ATTR "bridge"
#define SYSFS_BRIDGE_FDB "brforward"