Subject: kern/31535: netbsd-3, udp4csum on ex0 resets ip, netmask etc.
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <anders.lindback@ltu.se>
List: netbsd-bugs
Date: 10/09/2005 19:46:00
>Number:         31535
>Category:       kern
>Synopsis:       fxp and ex NIC drivers collide on udp4csum
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 09 19:46:00 +0000 2005
>Originator:     anders.lindback@ltu.se
>Release:        NetBSD 3.0_BETA
>Organization:
	
>Environment:
	
	
System: NetBSD thor.cryptobeacon.net 3.0_BETA NetBSD 3.0_BETA (THOR) #3: Thu Oct 6 23:01:57 CEST 2005 entity@thor.cryptobeacon.net:/home/netbsd-3-src/beta-pf-patched/obj/sys/arch/i386/compile/THOR i386
Architecture: i386
Machine: i386
>Description:
When using two interfaces, ex0 and fxp0 enabling udp4csum on ex0 will reset the ip and 
netmask settings on ex0 to that on fxp0.
	
>How-To-Repeat:
Setup fxp0 with ip and netmask;
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=6<TCP4CSUM,UDP4CSUM>
        enabled=6<TCP4CSUM,UDP4CSUM>
and enable hw support as above.
Setup ex0 with an ip and so on and hw support as following:
ex0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
        enabled=3<IP4CSUM,TCP4CSUM>

then enable upd4csum on ex0 and watch how ex0 now has the same ip and netmask settings as 
fxp0, it does not however grab any ip configured as an alias. 

	
>Fix:
Dont enable upd4csum, I have no other idea.. 
	

>Unformatted: