Re: linux 2.2.x Appletalk and ifconfig bug

Scott R. Every (scott@emji.net)
Thu, 11 Mar 1999 15:54:31 -0500


Here is the broken ifconfig1.38
storm:~# strace ifconfig eth0:1 down
execve("/sbin/ifconfig", ["ifconfig", "eth0:1", "down"], [/* 28 vars */]) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400070
00
mprotect(0x40000000, 21025, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8048000, 22588, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=8497, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
mmap(0, 8497, PROT_READ, MAP_SHARED, 3, 0) = 0x40008000
close(3) = 0
stat("/etc/ld.so.preload", 0xbffff958) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 786432, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000b000
mmap(0x4000b000, 555135, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4
000b000
mmap(0x40093000, 21344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x87000)
= 0x40093000
mmap(0x40099000, 204364, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMO
US, -1, 0) = 0x40099000
close(3) = 0
mprotect(0x4000b000, 555135, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
munmap(0x40008000, 8497) = 0
mprotect(0x8048000, 22588, PROT_READ|PROT_EXEC) = 0
mprotect(0x4000b000, 555135, PROT_READ|PROT_EXEC) = 0
mprotect(0x40000000, 21025, PROT_READ|PROT_EXEC) = 0
personality(PER_LINUX) = 0
geteuid() = 0
getuid() = 0
getgid() = 0
getegid() = 0
uname({sys="Linux", node="storm", ...}) = 0
access("/proc/net", R_OK) = 0
access("/proc/net/unix", R_OK) = 0
socket(PF_UNIX, SOCK_DGRAM, 0) = 3
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
access("/proc/net/appletalk", R_OK) = 0
socket(0x5 /* PF_??? */, SOCK_DGRAM, 0) = 5
ioctl(5, SIOCGIFFLAGS, 0xbffff8b8) = 0
ioctl(5, SIOCSIFFLAGS, 0xbffff8b8) = 0
_exit(0)

Here is the old ifconfig1.33
storm:~# strace ifconfig.old eth0:1 down
execve("/sbin/ifconfig.old", ["ifconfig.old", "eth0:1", "down"], [/* 28 vars */]
) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400070
00
mprotect(0x40000000, 21025, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x8048000, 22287, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=8497, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
mmap(0, 8497, PROT_READ, MAP_SHARED, 3, 0) = 0x40008000
close(3) = 0
stat("/etc/ld.so.preload", 0xbffff948) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 786432, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000b000
mmap(0x4000b000, 555135, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x4
000b000
mmap(0x40093000, 21344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x87000)
= 0x40093000
mmap(0x40099000, 204364, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMO
US, -1, 0) = 0x40099000
close(3) = 0
mprotect(0x4000b000, 555135, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
munmap(0x40008000, 8497) = 0
mprotect(0x8048000, 22287, PROT_READ|PROT_EXEC) = 0
mprotect(0x4000b000, 555135, PROT_READ|PROT_EXEC) = 0
mprotect(0x40000000, 21025, PROT_READ|PROT_EXEC) = 0
personality(PER_LINUX) = 0
geteuid() = 0
getuid() = 0
getgid() = 0
getegid() = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
socket(0x4 /* PF_??? */, SOCK_DGRAM, 0) = -1 ENOSYS (Function not implemented)
socket(0x4 /* PF_??? */, SOCK_DGRAM, 0) = -1 ENOSYS (Function not implemented)
socket(0x4 /* PF_??? */, SOCK_DGRAM, 0) = -1 EINVAL (Invalid argument)
socket(0x3 /* PF_??? */, SOCK_DGRAM, 0) = -1 ENOSYS (Function not implemented)
socket(0x3 /* PF_??? */, SOCK_DGRAM, 0) = -1 ENOSYS (Function not implemented)
socket(0x3 /* PF_??? */, SOCK_DGRAM, 0) = -1 EINVAL (Invalid argument)
socket(0x5 /* PF_??? */, SOCK_DGRAM, 0) = 4
ioctl(3, SIOCGIFFLAGS, 0xbffff8c4) = 0
ioctl(3, SIOCSIFFLAGS, 0xbffff8c4) = 0
close(3) = 0
_exit(0) = ?

s

--On Thu, Mar 11, 1999 1:25 AM +0100 Bernd Eckenfels <ecki@lina.inka.de> wrote:

> sorry for not talking part in yur discussion, can you please mail me the
> output of
>
> strace ifconfig eth0:1 down
>
> of the old and new ifconfig (with enabled atalk).
>
> I dont think it is a net tools bug, bug at least I think the old net-tools
> did something less wrong good :)

--
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