#needsrootforbuild Name: iproute Version: 5.5.0 Release: 18 Summary: Linux network configuration utilities License: GPLv2+ and Public Domain URL: https://kernel.org/pub/linux/utils/net/iproute2/ Source0: https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-%{version}.tar.xz Patch1: bugfix-iproute2-3.10.0-fix-maddr-show.patch Patch2: bugfix-iproute2-change-proc-to-ipnetnsproc-which-is-private.patch Patch6000: backport-nexthop-fix-error-reporting-in-filter-dump.patch Patch6001: backport-bridge-report-correct-version.patch Patch6002: backport-q_cake-Make-fwmark-uint-instead-of-int.patch Patch6003: backport-tc-m_action-check-cookie-hex-string-len.patch Patch6004: backport-iproute2-fix-MPLS-label-parsing.patch Patch6005: backport-tc_util-detect-overflow-in-get_size.patch Patch6006: backport-Revert-bpf-replace-snprintf-with-asprintf-when-dealing-with-long-buffers.patch Patch6007: backport-tc-m_estimator-Print-proper-value-for-estimator-interval-in-raw.patch Patch6008: backport-iproute2-ip-maddress-Check-multiaddr-length.patch Patch6009: backport-iproute2-ip-addr-Organize-flag-properties-structurally.patch Patch6010: backport-addr-Fix-noprefixroute-and-autojoin-for-IPv4.patch Patch6011: backport-devlink-fix-memory-leak-in-cmd_dev_flash.patch Patch6012: backport-lib-fs-avoid-double-call-to-mkdir-on-make_path.patch Patch6013: backport-devlink-always-check-strslashrsplit-return-value.patch Patch6014: backport-nexthop-fix-memory-leak-in-add_nh_group_attr.patch Patch6015: backport-rdma-stat-fix-return-code.patch Patch6016: backport-ip-drop-2-char-command-assumption.patch Patch6017: backport-ip-netns-fix-missing-netns-close-on-some-error-paths.patch Patch6018: backport-lib-bpf_legacy-fix-missing-socket-close-when-connect.patch Patch6019: backport-tc-e_bpf-fix-memory-leak-in-parse_bpf.patch Patch6020: backport-tipc-bail-out-if-algname-is-abnormally-long.patch Patch6021: backport-tipc-bail-out-if-key-is-abnormally-long.patch Patch6022: backport-utils-Fix-BIT-to-support-up-to-64-bits-on-all-architectures.patch Patch6023: backport-ipmonitor-Fix-recvmsg-with-ancillary-data.patch Patch6024: backport-devlink-fix-infinite-loop-on-flash-update-for-drivers-without-status.patch Patch6025: backport-tc-u32-Fix-key-folding-in-sample-option.patch Patch6026: backport-bugfix-iproute2-lib-bpf-fix-bpffs-mount-when-sys-fs-bpf-exist.patch Patch6027: backport-bugfix-iproute2-tc-f_flower-fix-port-range-parsing.patch Patch6028: backport-tc-flower-Fix-buffer-overflow-on-large-labels.patch Patch6029: backport-lnstat-fix-buffer-overflow-in-header-output.patch Patch6030: backport-q_cake-allow-changing-to-diffserv3.patch Patch9002: feature-iproute-limit-operation-ip-netns-del.patch Patch9003: feature-iproute-add-support-for-ipvlan-l2e-mode.patch Patch9004: feature-peer_notify_delay-renamed-to-peer_notif_delay.patch Patch9005: bugfix-iproute-support-assume-default-route.patch Patch9006: bugfix-iproute2-cancel-some-test-cases.patch Patch9007: bugfix-routel-shift-bounds-error-due-multicast.patch Patch6031: backport-devlink-fix-devlink-health-dump-command-without-arg.patch Patch6032: backport-l2tp-fix-typo-in-AF_INET6-checksum-JSON-print.patch Patch6033: backport-tc-em_u32-fix-offset-parsing.patch Patch6034: backport-bridge-Fix-memory-leak-when-doing-fdb-get.patch Patch6035: backport-ip-address-Fix-memory-leak-when-specifying-device.patch Patch6036: backport-ip-neigh-Fix-memory-leak-when-doing-get.patch Patch6037: backport-tc_util-Fix-parsing-action-control-with-space-and-sl.patch Patch6038: backport-lnstat-fix-strdup-leak-in-w-argument-parsing.patch Patch6039: backport-libnetlink-fix-socket-leak-in-rtnl_open_byproto.patch Patch6040: backport-nstat-print-useful-error-messages-in-abort-cases.patch BuildRequires: gcc bison elfutils-libelf-devel flex iptables-devel BuildRequires: libmnl-devel libselinux-devel pkgconfig git make sudo Requires: %{name}-help Provides: /sbin/ip iproute-tc tc Obsoletes: iproute-tc %description Iproute2 is a collection of user-space utilities to set up networking under Linux from the command-line. It can inspect and configure, among other things: interface paramters, IP addresses, routing, tunnels, bridges, packet transformations (IPsec, etc.), and Quality of Service. %package devel Summary: Header files for iprout2 License: GPLv2+ Provides: iproute-static = %{version}-%{release} Obsoletes: iproute-static < %{version}-%{release} %description devel Header files for iprout2 %package_help %prep %autosetup -n %{name}2-%{version} -p1 -S git %build export LIBDIR='%{_libdir}' export IPT_LIB_DIR='/%{_lib}/xtables' %configure %make_build %check make check if test -n "$(find . -name *.err)"; then echo "make check failed, please check" exit 1 fi %install export CONFDIR='%{_sysconfdir}/iproute2' export SBINDIR='%{_sbindir}' export LIBDIR='%{_libdir}' export DOCDIR='%{_docdir}' %make_install install -m 0755 -d %{buildroot}%{_includedir} install -m 0644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h install -m 0644 lib/libnetlink.a %{buildroot}%{_libdir}/libnetlink.a %files %defattr(-,root,root) %license COPYING %doc README %attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/* %{_sbindir}/* %{_libdir}/tc/* %{_datadir}/bash-completion/completions/tc %files devel %defattr(-,root,root) %license COPYING %{_libdir}/libnetlink.a %{_includedir}/* %files help %defattr(-,root,root) %doc README %{_mandir}/* %changelog * Mon 19 Feb 2024 jiangjixiang - 5.5.0-18 - Type:bugfix - ID:NA - SUG:NA - DESC:Fix the issue of multicast causing shift out of bounds in the routel command report. * Wed Dec 27 2023 liubo - 5.5.0-17 - Type:bugfix - ID:NA - SUG:NA - DESC:nexthop: fix error reporting in filter dump bridge: report correct version q_cake: Make fwmark uint instead of int tc: m_action: check cookie hex string len iproute2: fix MPLS label parsing tc_util: detect overflow in get_size Revert "bpf: replace snprintf with asprintf when dealing with long buffers" tc/m_estimator: Print proper value for estimator interval in raw. iproute2: ip maddress: Check multiaddr length iproute2: ip addr: Organize flag properties structurally addr: Fix noprefixroute and autojoin for IPv4 devlink: fix memory leak in cmd_dev_flash() tipc: bail out if algname is abnormally long tipc: bail out if key is abnormally long utils: Fix BIT() to support up to 64 bits on all architectures ipmonitor: Fix recvmsg with ancillary data devlink: fix infinite loop on flash update for drivers without status tc: u32: Fix key folding in sample option lnstat: fix buffer overflow in header output nstat: print useful error messages in abort() cases * Thu Dec 14 2023 liubo - 5.5.0-16 - Type:bugfix - ID:NA - SUG:NA - DESC:libnetlink: fix socket leak in rtnl_open_byproto() lnstat: fix strdup leak in -w argument parsing tc_util: Fix parsing action control with space and slash remove libcap dependency * Sat May 27 2023 gaoxingwang - 5.5.0-15 - Type:bugfix - ID:NA - SUG:NA - DESC:cancel some test cases that failed due to host configure * Mon Mar 20 2023 gaoxingwang - 5.5.0-14 - Type:bugfix - ID:NA - SUG:NA - DESC:enable make check * Thu Mar 02 2023 jiangheng - 5.5.0-13 - Type:bugfix - ID:NA - SUG:NA - DESC:fix ip netns attach failed * Fri Feb 17 2023 gaoxingwang - 5.5.0-12 - Type:bugfix - ID:NA - SUG:NA - DESC:add BuildRequire for make to fix build failure * Mon Oct 10 2022 jiangheng - 5.5.0-11 - Type:bugfix - Id:NA - SUG:NA - DESC:fix devlink health dump command without arg tc: em_u32: fix offset parsing l2tp: fix typo in AF_INET6 checksum JSON print bridge: fix memory leak when doing fdb get ip neigh: fix memory leak when doing 'get' ip address: fix memory leak when specifying device * Tue Jan 25 2022 wuchangsheng - 5.5.0-10 - Type:bugfix - Id:NA - SUG:NA - DESC:tc flowerr Fix buffer overflow on large labels q_cake allow changing to diffserv3 * Tue Nov 16 2021 jiangheng - 5.5.0-9 - Type:bugfix - Id:NA - SUG:NA - DESC:fix buffer overflow in lnstat command * Tue Nov 02 2021 jiangheng - 5.5.0-8 - Type:bugfix - Id:NA - SUG:NA - DESC:rename patches name * Fri Oct 29 2021 chengycehun - 5.5.0-7 - Type:bugfix - Id:NA - SUG:NA - DESC:lib/bpf:fix bpffs mount when /sys/fs/bpf exists tc/f_flower:fix port range parsing * Sat Jun 26 2021 jiangheng - 5.5.0-6 - Type:requirement - Id:NA - SUG:NA - DESC:update patch * Fri Jan 15 2021 gaihuiying - 5.5.0-5 - Type:requirement - Id:NA - SUG:NA - DESC:remove libdb-devel dependency * Thu Dec 10 2020 zhouyihang - 5.5.0-4 - Type:bugfix - Id:NA - SUG:NA - DESC:modify fix of get_tc_lib err * Mon Nov 09 2020 quanhongfei - 5.5.0-3 - Type:requirement - Id:NA - SUG:NA - DESC:add iproute-help dependency for iproute * Fri Sep 25 2020 zhouyihang - 5.5.0-2 - Type:bugfix - Id:NA - SUG:NA - DESC:fix get_tc_lib err * Fri Apr 17 2020 liaichun - 5.5.0-1 - Type:bugfix - ID:NA - SUG:restart - DESC:update to 5.5.0-1 * Sat Mar 21 2020 liaichun - 5.4.0-6 - Type:bugfix - ID:NA - SUG:restart - DESC:fix some err information * Wed Mar 4 2020 liuzhikang - 5.4.0-5 - Type:bugfix - ID:NA - SUG:restart - DESC:update patch * Wed Mar 4 2020 wangli - 5.4.0-4 - Type:bugfix - ID:NA - SUG:restart - DESC:peer_notify_delay renamed to peer_notif_delay * Mon Mar 2 2020 liuzhikang - 5.4.0-3 - Type:bugfix - ID:NA - SUG:restart - DESC: update patch * Mon Jan 20 2020 openEuler Buildteam - 5.4.0-2 - fix maddr show and change proc to ipnetnsproc * Tue Jan 14 2020 openEuler Buildteam - 5.4.0-1 - update to 5.4.0 * Fri Oct 18 2019 openEuler Buildteam - 5.2.0-2 - Type:bugfix - Id:NA - SUG:NA - DESC:add the bugfix about iproute * Thu Sep 19 2019 openEuler Buildteam - 5.2.0-1 - Package init