Ethernet Problems:ifconfig error

Denis Vlasenko vda.linux at googlemail.com
Sat Jun 23 15:01:19 UTC 2007


On Friday 22 June 2007 18:28, Michael Sprauve wrote:
> Hi,
> I am running Busybox 1.6.0 and when I run ifconfig I
> get the following error
> 
> ifconfig: error: no inet socket available: Function
> not implemented
> 
> Not sure what is not configured correctly, but  my
> kernel is configured for and is seeing the ethernet
> driver, listed as eth0. 

Can you run "strace -o str.log ifconfig -a" and post log file?

When I do it, it works for me. Relevant part of the log is:


socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFCONF, {64, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, {"if", {AF_INET, inet_addr("192.168.2.100")}}}}) = 0
close(3)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFFLAGS, {ifr_name="if", ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST}) = 0
ioctl(3, SIOCGIFHWADDR, {ifr_name="if", ifr_hwaddr=00:16:17:6d:77:db}) = 0
ioctl(3, SIOCGIFMETRIC, {ifr_name="if", ifr_metric=0}) = 0
ioctl(3, SIOCGIFMTU, {ifr_name="if", ifr_mtu=1500}) = 0
ioctl(3, SIOCGIFMAP, 0xffe906c0)        = 0
ioctl(3, SIOCGIFTXQLEN, 0xffe906c0)     = 0
ioctl(3, SIOCGIFADDR, {ifr_name="if", ifr_addr={AF_INET, inet_addr("192.168.2.100")}}) = 0
ioctl(3, SIOCGIFDSTADDR, {ifr_name="if", ifr_dstaddr={AF_INET, inet_addr("192.168.2.100")}}) = 0
ioctl(3, SIOCGIFBRDADDR, {ifr_name="if", ifr_broadaddr={AF_INET, inet_addr("192.168.2.255")}}) = 0
ioctl(3, SIOCGIFNETMASK, {ifr_name="if", ifr_netmask={AF_INET, inet_addr("255.255.255.0")}}) = 0
close(3)                                = 0

--
vda



More information about the busybox mailing list