Re: [PATCH] ip: mpls: fix printing of mpls labels

2017-05-11 Thread David Ahern
On 5/11/17 11:09 AM, Stephen Hemminger wrote: > On Mon, 8 May 2017 23:04:13 -0700 > David Ahern wrote: > >> If the kernel returns more labels than iproute2 expects, none of >> the labels are printed and (null) is shown instead: >> $ ip -f mpls ro ls >> 101 as to (null) via inet 172.16.2.

Re: [PATCH] ip: mpls: fix printing of mpls labels

2017-05-11 Thread Stephen Hemminger
On Mon, 8 May 2017 23:04:13 -0700 David Ahern wrote: > If the kernel returns more labels than iproute2 expects, none of > the labels are printed and (null) is shown instead: > $ ip -f mpls ro ls > 101 as to (null) via inet 172.16.2.2 dev virt12 > 201 as to 202/203 via inet6 2001:db8:

Re: [PATCH] ip: mpls: fix printing of mpls labels

2017-05-10 Thread Simon Horman
On Mon, May 08, 2017 at 11:04:13PM -0700, David Ahern wrote: > If the kernel returns more labels than iproute2 expects, none of > the labels are printed and (null) is shown instead: > $ ip -f mpls ro ls > 101 as to (null) via inet 172.16.2.2 dev virt12 > 201 as to 202/203 via inet6 2001

[PATCH] ip: mpls: fix printing of mpls labels

2017-05-08 Thread David Ahern
If the kernel returns more labels than iproute2 expects, none of the labels are printed and (null) is shown instead: $ ip -f mpls ro ls 101 as to (null) via inet 172.16.2.2 dev virt12 201 as to 202/203 via inet6 2001:db8:2::2 dev virt12 Remove the use of MPLS_MAX_LABELS and rely on buf