iproute2/ip
Mark Borst 080b3ad428 iproute: "ip mroute show" doesn't show all output interfaces
The command "ip mroute show" will only show the first Oif.

mark@flappie:~$ ip mroute show
(192.168.1.1, 224.0.0.123)       Iif: _rename    Oifs: eth1

mark@flappie:~$ cat /proc/net/ip_mr_cache
Group    Origin   Iif     Pkts    Bytes    Wrong Oifs
7B0000E0 0101A8C0 2          0        0        0  0:1    1:1

This shows 2 Oifs here. However, ipmroute.c, function read_mroute_list(), uses sscanf() with a %s mask for oiflist, which stops after the first whitespace (i.e. after Oif 0:1). The patch below fixes this to read until the newline (though I'm not sure whether this is the proper way to fix it).

After this patch:
mark@flappie:~/iproute-20090324/ip$ ./ip mroute show
(192.168.1.1, 224.0.0.123)       Iif: _rename    Oifs: eth1 eth0

This patch originally submitted as http://bugs.debian.org/550097

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
2009-12-01 16:15:15 -08:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
Makefile support static-only systems 2009-11-10 10:44:20 -08:00
ifcfg Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ip.c Remove Changes: comments 2009-12-01 15:49:48 -08:00
ip6tunnel.c Remove Changes: comments 2009-12-01 15:49:48 -08:00
ip_common.h get rid of warning from misnamed prototype 2008-02-18 10:59:22 -08:00
ipaddress.c ipv6: Add IFA_F_DADFAILED flag 2009-12-01 15:58:44 -08:00
ipaddrlabel.c Display Correct Error For Addrlabel Info 2008-07-25 13:36:25 -07:00
iplink.c iproute2: Support for the CAN netlink 2009-05-26 15:22:44 -07:00
iplink_can.c iproute2: Support for the CAN netlink 2009-05-26 15:22:44 -07:00
iplink_vlan.c iflink_vlan: support GVRP flag 2008-09-17 21:54:34 -07:00
ipmaddr.c ip maddr show” on an infiniband address causes a stack corruption 2009-01-06 18:56:03 -08:00
ipmonitor.c iproute2: drop equalize support. 2009-03-27 11:11:12 -07:00
ipmroute.c iproute: "ip mroute show" doesn't show all output interfaces 2009-12-01 16:15:15 -08:00
ipneigh.c Remove Changes: comments 2009-12-01 15:49:48 -08:00
ipntable.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ipprefix.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
iproute.c iproute2 add hoplimit parsing and update usage and documentation 2009-12-01 15:51:44 -08:00
iprule.c Remove Changes: comments 2009-12-01 15:49:48 -08:00
iptunnel.c Remove Changes: comments 2009-12-01 15:49:48 -08:00
ipxfrm.c Consolidate fprintf statements 2009-11-10 09:01:57 -08:00
link_gre.c Fix headers needed for gre 2009-03-24 15:40:54 -07:00
link_veth.c veth.h move to linux/ 2007-12-25 12:38:08 -08:00
routef ip/routef lifesaver 2007-07-10 18:29:20 -07:00
routel (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtm_map.c (Logical change 1.3) 2004-04-15 20:56:59 +00:00
rtmon.c iproute2: Support IFF_LOWER_UP and IFF_DORMANT 2007-06-19 16:40:40 -07:00
rtpr (Logical change 1.3) 2004-04-15 20:56:59 +00:00
static-syms.c support static-only systems 2009-11-10 10:44:20 -08:00
tunnel.c iproute2: ISATAP potential router list 2009-05-26 15:21:21 -07:00
tunnel.h iproute2: ISATAP potential router list 2009-05-26 15:21:21 -07:00
xfrm.h Fix typo in IPPROTO_DCCP 2009-08-06 14:38:18 -07:00
xfrm_monitor.c ip: xfrm: Fix flush message. 2007-09-05 12:56:51 +01:00
xfrm_policy.c fix problem caused by rtnl_send checks 2008-01-31 21:38:58 -08:00
xfrm_state.c ip: xfrm: Add AEAD support 2008-09-17 22:09:01 -07:00