public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH] Fix error message generated in routel script when have 'multicase' in routing list
@ 2021-03-15  8:30 B.Arenfeld
  2021-03-17  6:07 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: B.Arenfeld @ 2021-03-15  8:30 UTC (permalink / raw)
  To: netdev

Hello :-)

I'm on an machine with Manjaro Linux. 
I get some error messages from shift command in the routel script:
/usr/bin/routel: Zeile 48: shift: shift count out of range

Reason are lines from "ip route list table 0" starting with word "multicast" :
 
multicast ff00::/8 dev enp2s0 table local proto kernel metric 256 pref medium

I added the "multicast" word in routel script and everything is fine ;-)

Greetings

Burkhard Arenfeld


Signed-off-by: Burkhard Arenfeld <b.arenfeld@arcor•de>

--- routel.orig	2021-03-15 08:23:24.706677247 +0100
+++ routel	2021-03-15 08:23:20.293589911 +0100
@@ -25,7 +25,7 @@ ip route list table "$@" |
     src=""
     table=""
     case $network in
-       broadcast|local|unreachable) via=$network
+       broadcast|local|multicast|unreachable) via=$network
           network=$1
           shift
           ;;



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-17  6:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-15  8:30 [PATCH] Fix error message generated in routel script when have 'multicase' in routing list B.Arenfeld
2021-03-17  6:07 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox