Subject: kern/26450: in_addprefix/in_scrubprefix prevents RTM_NEWADDR/DELADDR
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 07/27/2004 23:35:58
>Number:         26450
>Category:       kern
>Synopsis:       in_addprefix/in_scrubprefix prevents RTM_NEWADDR/DELADDR
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 27 14:37:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 2.0G
>Organization:

>Environment:
	
	
System: NetBSD kaeru 2.0G NetBSD 2.0G (build.kaeru) #1567: Tue Jul 27 08:05:01 JST 2004 takashi@kaeru:/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
	in_addprefix() calls rtinit() only when it's the first interface
	address with the prefix route.
	it has a side effect to prevent RTM_NEWADDR, which is generated by
	rtinit() -> rt_newaddrmsg().
>How-To-Repeat:
	watch the following commands with "route monitor" and
	note the last one doesn't deliver any messages.
		% ifconfig vlan0 create vlan 1 vlanif fxp0
		% ifconfig vlan0 10.0.0.1
		% ifconfig vlan0 10.0.0.2 alias
>Fix:
	modify rt_newaddrmsg() to be able to generate RTM_ADD/DELETE and
	RTM_NEWADDR/DELADDR selectively?

>Release-Note:
>Audit-Trail:
>Unformatted: