linux 2.2.x Appletalk and ifconfig bug

Scott R. Every (scott@emji.net)
Wed, 10 Mar 1999 10:57:32 -0500


Found a bug which only pops up when using the Appletalk .18 modules on linux
2.2.x with ipaliasing enabled for TCP.

Symptoms:
getting these errors right after the wd driver and appletalk load:
protocol 9d3e is buggy, dev eth0
protocol 0400 is buggy, dev eth0

Under 2.2.1 and 2.2.2 these errors were ONLY logged in dmesg. In 2.2.3, they
also print on the console(which is why I noticed them)

While there errors are occuring, aliases break in the following way.
create an alias:
'ifconfig eth0:1 xxx.xxx.xxx.xxx up'

using ifconfig 1.35 or later shows the following when doing 'ifconfig':
eth0 Link encap:Ethernet HWaddr 00:00:21:48:07:26
inet addr:207.100.35.245 Bcast:207.100.35.255 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32757 errors:0 dropped:0 overruns:0 frame:0
TX packets:26240 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

eth0:1 Link encap:Ethernet HWaddr 00:00:21:48:07:26
inet addr:207.100.35.248 Bcast:207.100.35.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

No problems so far.
The problems come when turning an alias down.
'ifconfig eth0:1 down'

with ifconfig 1.35 or later this kills the entire eth0 interface, note ifconfig
output:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:154 errors:0 dropped:0 overruns:0 frame:0
TX packets:154 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

sl0 Link encap:Serial Line IP
inet addr:47.94.161.222 P-t-P:47.94.161.227 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:296 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:1
TX packets:261 errors:0 dropped:0 overruns:0 carrier:0
collisions:0

If an older ifconfig 1.33 for example is used, this command works fine.
However, old ifconfigs do NOT show aliases correctly in the new 2.2.x kernels.

All of these problems go away completely if I unload the Appletalk module.
After linux ifconfig 1.38 from net-tools 1.50 works as expected both for
showing and turning on/off aliases.

This all works fine using Appletalk .17 and linux 2.0.x.

Any ideas why this is broken, and what could be done to fix?

thanx

s

--
Scott R. Every        "Everything is controlled by a small evil group to 
 EMJ Internet          which, unfortunately, no one we know belongs."
 voice : 1-800-548-2319  fax : 1-919-363-4423  mailto:scott@emji.net
 WWW - http://www.emji.net   

Do you believe in Macintosh? Learn how to help the cause by subscribing to the "EvangeList" listserver! Send email to: <evangelist@macway.com> or go to: <http://www.lists.apple.com/>

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu