iproute2/ip
Mike Frysinger 9e30175a76 Fix regression with 'ip address show'
`ip a s` no longer shows addresses since 3.4.0 works, but 3.5.0,

the simple test case:
make clean && make -j -s && ./ip/ip a s lo

before that change, i would get:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever

but after, i now get:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

seems like the bug was introduced in the middle of that patch:

-	if (filter.family != AF_PACKET) {
+	if (filter.family && filter.family != AF_PACKET) {
+		if (filter.oneline)
+			no_link = 1;
+
 		if (rtnl_wilddump_request(&rth, filter.family, RTM_GETADDR) < 0) {
 			perror("Cannot send dump request");
 			exit(1);

if i revert the change to the if statement there, `ip a s` works for me again.
2012-08-13 08:12:57 -07:00
..
.gitignore Another .gitignore file. 2006-08-08 12:11:23 -07:00
Makefile iproute2: cleanup dependencies 2012-02-27 08:27:54 -08:00
ifcfg Remove trailing whitespace 2006-12-05 10:10:22 -08:00
ip.c ip: make 'ip l' be 'ip link' 2012-01-20 08:16:02 -08:00
ip6tunnel.c iproute2: man page and /bin/ip disagree on del vs delete 2012-05-21 15:17:28 -07:00
ip_common.h Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
ipaddress.c Fix regression with 'ip address show' 2012-08-13 08:12:57 -07:00
ipaddrlabel.c libnetlink: remove unused junk callback 2011-12-28 10:37:12 -08:00
ipl2tp.c iproute2: allow IPv6 addresses for l2tp local and remote parameters 2012-05-22 14:24:46 -07:00
iplink.c iproute2 - Fix up and simplify variables pointing to install directories 2012-04-12 09:49:10 -07:00
iplink_can.c iproute2: netlink support for bus-error reporting and counters 2010-03-03 16:45:10 -08:00
iplink_macvlan.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
iplink_macvtap.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
iplink_vlan.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
ipmaddr.c Fix file descriptor leak on error in read_igmp() 2011-10-07 11:20:23 -07:00
ipmonitor.c iproute2: drop equalize support. 2009-03-27 11:11:12 -07:00
ipmroute.c Fix file descriptor leak on error in read_mroute_list() 2011-10-07 11:20:21 -07:00
ipneigh.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
ipnetns.c iproute2: Fail "ip netns add" on existing network namespaces. 2011-08-31 11:02:26 -07:00
ipntable.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
ipprefix.c ip: fix display of prefix cache info 2011-07-20 16:02:50 -07:00
iproute.c Remove reference to multipath algorithms in usage 2012-07-26 16:12:20 -07:00
iprule.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
iptunnel.c iproute2: man page and /bin/ip disagree on del vs delete 2012-05-21 15:17:28 -07:00
iptuntap.c iproute2: man page and /bin/ip disagree on del vs delete 2012-05-21 15:17:28 -07:00
ipxfrm.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
link_gre.c Convert to use rta_getattr_ functions 2012-04-10 08:47:55 -07:00
link_veth.c iproute2: support device group semantics 2011-02-25 12:43:14 -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 libnetlink: remove unused junk callback 2011-12-28 10:37:12 -08: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 Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
tunnel.h Use standard routines for interface name to index etc 2010-11-28 10:35:28 -08:00
xfrm.h xfrm security context support 2011-03-17 09:58:23 -07:00
xfrm_monitor.c ip: xfrm: report nat-t/encapsulation portmapping updates 2012-03-15 14:49:03 -07:00
xfrm_policy.c libnetlink: remove unused junk callback 2011-12-28 10:37:12 -08:00
xfrm_state.c libnetlink: remove unused junk callback 2011-12-28 10:37:12 -08:00