Date: Tue, 27 Jul 2004 20:57:28 +0200 (CEST) From: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/69674: Invalid separator for vlan MAC address in netstat -r output. Message-ID: <20040727185728.0A4DF347E01@shellma.zin.lublin.pl> Resent-Message-ID: <200407271900.i6RJ0jbu011391@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69674
>Category: bin
>Synopsis: Invalid separator for vlan MAC address in netstat -r output.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jul 27 19:00:45 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Paweł Małachowski
>Release: FreeBSD 4.9-STABLE i386
>Organization:
ZiN
>Environment:
FreeBSD 4.x, 5.x
>Description:
netstat -r output uses a colon instead of a dot when displaying MAC
address of vlan interface; for other ethernet devices behaviour is
correct.
>How-To-Repeat:
% netstat -nr | grep vlan
[...]
10.1.0.X 0.2.44.XX.XX.XX UHLW 0 51711 vlan11 1181
[...]
>Fix:
I'm not sure, why IFT_ETHER flag is not set here, the following change
in src/usr.bin/netstat/route.c on my RELENG_4 seems to hide the problem.
*** route.c~ Thu Dec 11 19:07:33 2003
--- route.c Tue Jul 27 20:38:52 2004
***************
*** 666,671 ****
--- 666,672 ----
else
switch (sdl->sdl_type) {
+ case IFT_L2VLAN:
case IFT_ETHER:
if (sdl->sdl_alen == ETHER_ADDR_LEN) {
cp = ether_ntoa((struct ether_addr *)
>Release-Note:
>Audit-Trail:
>Unformatted:
<synopsis of the problem (one line)>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040727185728.0A4DF347E01>
