On Sat, Jun 21, 2008 at 09:30:36AM +0200, Andreas Maus wrote:
> Hi.
> 
> I noticed the following misbehavior of netstat in 4.3.
> 
> The manual page says:
> 
> [... snipp ...]
>      -I interface
>         Show information about the specified interface; used with a wait
>         interval as described below.
> [... snipp ...]
> 
> O.K.
> 
> Using 4.2 netstat -I <interface> works as expected:
> 
> -bash-3.2$ uname -a 
> OpenBSD piglet.badphish.dyndns.org 4.2 GENERIC#0 i386
> -bash-3.2$ netstat -ib -I fxp0
> Name    Mtu   Network     Address               Ibytes     Obytes
> fxp0    1500  <Link>      00:a0:c9:a0:73:84  514885834  263525662
> fxp0    1500  fe80::%fxp0 fe80::2a0:c9ff:fe  514885834  263525662
> 
> But using the same command in 4.3 returns:
> 
> -bash-3.2$ uname -a 
> OpenBSD son-goku.badphish.dyndns.org 4.3 GENERIC#698 i386
> -bash-3.2$ netstat -ib -I vr0 
> Name    Mtu   Network     Address               Ibytes     Obytes
> lo0     33208 localhost   localhost.badphis   37219614   37219614
> lo0     33208 localhost.b localhost.badphis   37219614   37219614
> lo0     33208 fe80::%lo0/ fe80::1%lo0         37219614   37219614
> vr0     1500  <Link>      00:00:24:ca:68:38 26230376471 6788235902
> vr0     1500  son-goku-un son-goku-untruste 26230376471 6788235902
> vr0     1500  fe80::%vr0/ fe80::200:24ff:fe 26230376471 6788235902
> vr1     1500  son-goku-dm son-goku-dmz.badp 21983028148 89288229482
> vr1     1500  fe80::%vr1/ fe80::200:24ff:fe 21983028148 89288229482
> vr2     1500  son-goku-tr son-goku-trusted. 93517695317 47526180347
> vr2     1500  fe80::%vr2/ fe80::200:24ff:fe 93517695317 47526180347
> vr3     1500  192.168.211 192.168.211.1      174328335  863529211
> vr3     1500  fe80::%vr3/ fe80::200:24ff:fe  174328335  863529211
> 
> At least list of changes (http://openbsd.org/plus43.html) notes some
> modifications to netstat but not this behavior.
> 
> Maybe a bug? Or how do I request the information for just a single
> interface?
> 
> So long,
> 
> Andreas.
> 

this was fixed here:

----------------------------
revision 1.57
date: 2008/03/18 20:03:37;  author: claudio;  state: Exp;  lines: +4 -1
Make -I work correctly. RTM_NEWADDR needs to filter the ifname as well.
----------------------------

jmc

Reply via email to