diff options
author | wollman <wollman@FreeBSD.org> | 1996-12-13 21:29:59 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-12-13 21:29:59 +0000 |
commit | 2c02b8c04afd723238ec165f2994d91dff5f8c96 (patch) | |
tree | 5efe82be87d7f24699e14900121be47b385e17fe /usr.bin/netstat | |
parent | 3417f9411098d1cd19c5db539c0768e778b83a1c (diff) | |
download | FreeBSD-src-2c02b8c04afd723238ec165f2994d91dff5f8c96.zip FreeBSD-src-2c02b8c04afd723238ec165f2994d91dff5f8c96.tar.gz |
Learn to follow the new interface address lists.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 76ef9eb..4dc9f78 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -147,7 +147,7 @@ intpr(interval, ifnetaddr) if ((ifnet.if_flags&IFF_UP) == 0) *cp++ = '*'; *cp = '\0'; - ifaddraddr = (u_long)ifnet.if_addrlist; + ifaddraddr = (u_long)ifnet.if_addrhead.tqh_first; } printf("%-5.5s %-5lu ", name, ifnet.if_mtu); ifaddrfound = ifaddraddr; @@ -246,7 +246,7 @@ intpr(interval, ifnetaddr) putchar(' '); break; } - ifaddraddr = (u_long)ifaddr.ifa.ifa_next; + ifaddraddr = (u_long)ifaddr.ifa.ifa_link.tqe_next; } printf("%8lu %5lu ", ifnet.if_ipackets, ifnet.if_ierrors); |