[bedevtalk] ping for BONE?

pete at jwgibbs.cchem.berkeley.edu pete at jwgibbs.cchem.berkeley.edu
Wed Nov 15 02:07:05 EST 2006


On Wed, Nov 15, 2006 at 05:18:34PM +1300, Stephan Assmus wrote:
> Hi,
> 
> is there any reason why you couldn't use Haiku's ping? It builds just fine 
> over here with BONE as a target platform. Maybe you can get around having to 
> check out the entire Haiku tree somehow, here is a link anyways:
> 
> <http://svn.berlios.de/viewcvs/*checkout*/haiku/haiku/trunk/src/bin/network/ping/ping.c>
Thanks.  Grabbed it, but it doesn't compile 'out of the box' on BONE.
I guess Haiku has moved to more standardized header names?  In particular
BONE seems to use '<netinet/icmp.h>' and such, where Haiku (and the standard)
seems to have '<netinet/ip_icmp.h>'.  The Haiku version also uses
'getprotobyname' which is still giving me trouble.

[I'll have to dig into Haiku properly some day, but so far I haven't
got myself fired up to do so...  Sad.]
> 
> 
> Have you compiled network software under BONE before? I have had a mixup in 
> my system headers with regards to that. In my case, the original network 
> headers were still accessible and used (sometimes). Make sure you have no 
> "/boot/develop/headers/be/net" and that you have the bone headers in place.
Not sure I ever have.  I checked, and the 'net' folder was there (as well as
'bone'), but removing it and recompiling made no difference.  Still get
"icmp: unknown protocol" -- which seems to be from getprotobyname("icmp")
returning null.

Looking in the headers (be/bone/netinet/in.h) I see IPPROTO_ICMP is '1',
but I'm not sure how I use that value...

Thanks.
					-- Pete --



More information about the bedevtalk mailing list