1.routel命令是一个脚本,以更友好的方式输出ip route命令得到的路由表; 2.当前routel脚本不支持multicast路由,在有multicast路由的机器上会报错; 3.修改routel脚本,添加对multicast的支持;
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
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
|
||
|