[klibc] problems with ipconfig command (no static config possible)
Dirk von Suchodoletz
dirk at goe.net
Sun Aug 15 22:50:27 PDT 2004
> Sounds like a bug that needs to be fixed. I'll look at it shortly.
>
> A good way to debug klibc programs is to use strace; the sequence of system
> calls is usually quite clean.
lsfks10:/tmp/klibc-0.160 # strace ipconfig/static/ipconfig -c none
ip=127.0.0.1::::lo:none
execve("ipconfig/static/ipconfig", ["ipconfig/static/ipconfig", "-c",
"none", "ip=127.0.0.1::::lo:none"], [/* 56 vars */]) = 0
gettimeofday({1092599339, 30939}, NULL) = 0
mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0)
= 0x40000000
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, 0x8933, 0xbfffe458) = -1 ENODEV (No such device)
write(2, "SIOCGIFINDEX: No such device\n", 29SIOCGIFINDEX: No such device
) = 29
write(2, "ipconfig/static/ipconfig: no dev"...,
50ipconfig/static/ipconfig: no devices to configure
) = 50
_exit(1) = ?
Thats the trace I got from the call of ipconfig (as advised in the README
file how to call it). I do not get much from it - I tried to read the C
code too, but got not much understanding what is handled where (but the
error message seems to me is generated in a function which might
nothing have to do with static configs) :-(
Ciao,
Dirk
More information about the klibc
mailing list