netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: "B.Arenfeld" <b.arenfeld@arcor.de>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] Fix error message generated in routel script when have 'multicase' in routing list
Date: Tue, 16 Mar 2021 23:07:20 -0700	[thread overview]
Message-ID: <20210316230720.7cdd0818@hermes.local> (raw)
In-Reply-To: <fe0c34409428f100fb2e602e021062b8c4df4b6b.camel@arcor.de>

On Mon, 15 Mar 2021 09:30:07 +0100
"B.Arenfeld" <b.arenfeld@arcor.de> wrote:

> 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
>            ;;
> 
> 

There are several patches which make it impossible to apply.

Serious: the patch doesn't apply the current version of ip/routel in git
has the same line already there? Not sure where you found the original but
the version in git was imported back in 2015 (from Bitkeeper) and already
has the same line.  Did you get this from some vendor supplied out of date
distro?

Minor: the patch was not based at the normal place in the directory
tree. The standard practice is to do this at directory of the source tree.
In this case it would be in the iproute2 source directory. In that directory
the routel script is in ip sub directory.

Trivial: checkpatch whines that the name in From and Signed-off-by aren't
exact match. But that is just noise, and it looks ok.

Please compare with current iproute2 in git and see if your patch was backwards?

      reply	other threads:[~2021-03-17  6:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210316230720.7cdd0818@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=b.arenfeld@arcor.de \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).