bin/69674: Invalid separator for vlan MAC address in netstat -r output.

Pawel Malachowski pawmal-posting at freebsd.lublin.pl
Tue Jul 27 12:00:46 PDT 2004


>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)>


More information about the freebsd-bugs mailing list