From pm@zin.lublin.pl  Tue Jul 27 18:51:24 2004
Return-Path: <pm@zin.lublin.pl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CCAB016A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jul 2004 18:51:24 +0000 (GMT)
Received: from shellma.zin.lublin.pl (shellma.zin.lublin.pl [212.182.126.68])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 479EA43D5E
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jul 2004 18:51:22 +0000 (GMT)
	(envelope-from pm@zin.lublin.pl)
Received: by shellma.zin.lublin.pl (Postfix, from userid 1018)
	id 0A4DF347E01; Tue, 27 Jul 2004 20:57:28 +0200 (CEST)
Message-Id: <20040727185728.0A4DF347E01@shellma.zin.lublin.pl>
Date: Tue, 27 Jul 2004 20:57:28 +0200 (CEST)
From: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Invalid separator for vlan MAC address in netstat -r output.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69674
>Category:       bin
>Synopsis:       Invalid separator for vlan MAC address in netstat -r output.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    glebius
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 27 19:00:45 GMT 2004
>Closed-Date:    Thu Aug 05 06:52:46 GMT 2004
>Last-Modified:  Thu Aug 05 06:52:46 GMT 2004
>Originator:     Pawe Maachowski
>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:

From: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
To: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: bin/69674: Invalid separator for vlan MAC address in netstat -r output.
Date: Tue, 27 Jul 2004 22:09:51 +0200

 On Tue, Jul 27, 2004 at 08:57:28PM +0200, Pawel Malachowski wrote:
 
 > >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.
 
 Incorrect description. netstat -r uses a dot in MAC instead of a colon. ;)
 PR is still valid.
 
 > >How-To-Repeat:
 > 10.1.0.X           0.2.44.XX.XX.XX    UHLW        0    51711 vlan11   1181
                      ^^^^^^^^^^^^^^^
 
 -- 
 Pawe Maachowski
Responsible-Changed-From-To: freebsd-bugs->glebius 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Tue Jul 27 20:43:18 GMT 2004 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69674 
State-Changed-From-To: open->patched 
State-Changed-By: glebius 
State-Changed-When: Wed Jul 28 19:43:30 GMT 2004 
State-Changed-Why:  
Commited to CURRENT. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69674 
State-Changed-From-To: patched->closed 
State-Changed-By: glebius 
State-Changed-When: Thu Aug 5 06:52:16 GMT 2004 
State-Changed-Why:  
Patched merged to STABLE. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69674 
>Unformatted:
 <synopsis of the problem (one line)>
