Subject: kern/17201: sys/net/if_gre.c uses if_addrlen = 4, which is unnecessary
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 06/10/2002 02:24:17
>Number:         17201
>Category:       kern
>Synopsis:       sys/net/if_gre.c uses if_addrlen = 4, which is unnecessary
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 09 10:25:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        NetBSD 1.6A, today
>Organization:
	itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.6A NetBSD 1.6A (STARFRUIT) #60: Mon Jun 10 02:00:55 JST 2002 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
	if_gre.c sets if_addrlen to 4 with no real reason.  it can be 0, IMHO.
>How-To-Repeat:
# ifconfig gre0
gre0: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1476
	tunnel inet 10.1.1.1 --> 10.1.1.2
	address: 00:00:00:00			<---
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: