!178 修复组播路由导致routel命令报“shift越界”问题

From: @answer_9030 
Reviewed-by: @robertxw 
Signed-off-by: @robertxw
This commit is contained in:
openeuler-ci-bot 2024-03-06 09:54:20 +00:00 committed by Gitee
commit 4a97a7d41e
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,33 @@
From 74d88fe354864b73504d75aac50606b0e2e155af Mon Sep 17 00:00:00 2001
From: jiangjixiang <jiangjixiang@kylinos.cn>
Date: Mon, 19 Feb 2024 11:46:26 +0800
Subject: [PATCH]Fix the issue of routel command reporting "shift out of bounds" due to multicast routing.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1.The routel command is a shell script that displays the kernel routing table obtained from
ip route in a more user-friendly way;
2.The current routel command does not support multicast routing
Change-Id: Ib128c3a962c9f5b2b861ba8546d5f48258e60384
---
ip/routel | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ip/routel b/source/ip/routel
index 7056886..528e7b9 100755
--- a/ip/routel
+++ b/ip/routel
@@ -25,7 +25,7 @@ ip route list table "$@" |
src=""
table=""
case $network in
- broadcast|local|unreachable) via=$network
+ broadcast|local|unreachable|multicast) via=$network
network=$1
shift
;;
--
2.25.1

View File

@ -1,7 +1,7 @@
#needsrootforbuild
Name: iproute
Version: 5.5.0
Release: 17
Release: 18
Summary: Linux network configuration utilities
License: GPLv2+ and Public Domain
URL: https://kernel.org/pub/linux/utils/net/iproute2/
@ -48,6 +48,7 @@ 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
@ -136,6 +137,13 @@ install -m 0644 lib/libnetlink.a %{buildroot}%{_libdir}/libnetlink.a
%{_mandir}/*
%changelog
* Mon 19 Feb 2024 jiangjixiang <jiangjixiang@kylinos.cn> - 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 <liubo335@huawei.com> - 5.5.0-17
- Type:bugfix
- ID:NA