History log of /external/iproute2/ip/ipmroute.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e588a7db167df75e659f99bd3b024eedafed62cc 03-Oct-2011 Thomas Jarosch <thomas.jarosch@intra2net.com> Fix file descriptor leak on error in read_mroute_list()

Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
/external/iproute2/ip/ipmroute.c
67ef60a29333784d09245762e8270727cc758945 03-Oct-2011 Thomas Jarosch <thomas.jarosch@intra2net.com> Fix file descriptor leak on error in read_viftable()

Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
/external/iproute2/ip/ipmroute.c
38c867d2a82d6f2b60450550fbaaadc5d9c77579 09-Mar-2011 Stephen Hemminger <stephen.hemminger@vyatta.com> Add checks for fgets() when reading proc

If expected proc headers are missing, catch and print error.
/external/iproute2/ip/ipmroute.c
080b3ad42820e002b91ab4e3ddb728d2c6763b58 02-Dec-2009 Mark Borst <mark@borst.org> 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>
/external/iproute2/ip/ipmroute.c
ae665a522bd46bea44c5ea84c89c8b1731954170 05-Dec-2006 Stephen Hemminger <shemminger@osdl.org> Remove trailing whitespace

Go through source files and remove all trailing whitespace

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
/external/iproute2/ip/ipmroute.c
84616f8317554be7542b2e89b69f4129995cb03b 07-Oct-2005 shemminger <shemminger> Reenable 'ip mroute'
/external/iproute2/ip/ipmroute.c
03156410981dcf7330a33d573154ec4a9302f741 10-Jun-2004 osdl.org!shemminger <osdl.org!shemminger> another place where user headers need to come before linux headers.

(Logical change 1.30)
/external/iproute2/ip/ipmroute.c
aba5acdfdb347d2c21fc67d613d83d4430ca3937 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> (Logical change 1.3)
/external/iproute2/ip/ipmroute.c
86fdf0e47be697587efcf9602cd1f952a1d73170 15-Apr-2004 osdl.org!shemminger <osdl.org!shemminger> Initial revision
/external/iproute2/ip/ipmroute.c