<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi ;<BR>
I'm sorry to bother you.<BR>
When i use the busybox1.2.2 to ping and telnet some host ,i always see Segmentation fault;<BR>
I want to know what happened.Then i trace the code into the create_icmp_socket.c[22].<BR>
proto = getprotobyname("icmp"); caused the error. I fand that it didn't protocols in the etc.<BR>
but i copy the /etc/protocols to my ramdisk.i also meet it? i don't know? Someone help me.<BR>
Other cmd is right!<BR>
<BR>
# ping 192.168.0.175<BR>
/home/bestlihj/kernel/busybox-1.2.2/networking/ping.c[437] ping_main <BR>###<BR>
/home/bestlihj/kernel/busybox-1.2.2/networking/ping.c[333] ping ###<BR>192.168.0.175<BR>
/home/bestlihj/kernel/busybox-1.2.2/libbb/create_icmp_socket.c[22] create_icmp_socket ###<BR>Segmentation fault<BR>
<BR>
<BR>
====================inittab====<BR>::sysinit:/etc/init.d/rcS<BR>::respawn:-/bin/sh<BR>#tty2::askfirst:-/bin/sh<BR>::ctrlaltdel:/bin/umount -a -r<BR>
<BR>
==================== rcS===<BR>
#! /bin/sh<BR>/bin/mount -a<BR>/sbin/inetd /etc/inetd.conf<BR>/bin/echo endrcs<BR>
<BR>
<BR>
====inetd.conf=====<BR>
echo stream tcp nowait root internal<BR>echo dgram udp wait root internal<BR>#discard stream tcp nowait root internal<BR>#discard dgram udp wait root internal<BR>daytime stream tcp nowait root internal<BR>daytime dgram udp wait root internal<BR>#chargen stream tcp nowait root internal<BR>#chargen dgram udp wait root internal<BR>time stream tcp nowait root internal<BR>time dgram udp wait root internal<BR>
# These are standard services.<BR>#<BR>#ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd<BR>telnet stream tcp nowait root /sbin/telnetd /sbin/telnetd<BR>
<BR>
=========fstab <BR>proc /proc proc defaults 0 0<BR>none /dev/pts devpts mode=0622 0 0<BR>
<BR>
<BR>
=========services <BR>telnet 23/tcp<BR><br /><hr />探索 Windows Vista 的世界 <a href='http://search.live.com/results.aspx?q=windows+vista&mkt=zh-cn&FORM=LIVSOP' target='_new'>了解更多信息!</a></body>
</html>