Subject: kern/26450: in_addprefix/in_scrubprefix prevents RTM_NEWADDR/DELADDR
To: None <>
From: None <>
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
>Originator:     YAMAMOTO Takashi <>
>Release:        NetBSD 2.0G

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
	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().
	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
		% ifconfig vlan0 alias
	modify rt_newaddrmsg() to be able to generate RTM_ADD/DELETE and