Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
48 user(s) are online (29 user(s) are browsing Forums)

Members: 0
Guests: 48

more...

Headlines

 
  Register To Post  

Socket and IPPROTO_ICMP
Amigans Defender
Amigans Defender


See User information
Does anyone know why this code:

sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);

fail with unknown protocol? Is IPPROTO_ICMP not supported by roadshow?
It seems strange since ping command works under OS4..
Autodocs say that AF_INET and SOCK_DGRAM are supported so the guilty should be IPPROTO_ICMP

i'm really tired...
Go to top
Re: Socket and IPPROTO_ICMP
Amigans Defender
Amigans Defender


See User information
And if you replace IPPROTO_ICMP with IPPROTO_IP socket is created..

i'm really tired...
Go to top
Re: Socket and IPPROTO_ICMP
Amigans Defender
Amigans Defender


See User information
Try SOCK_RAW

Go to top
Re: Socket and IPPROTO_ICMP
Amigans Defender
Amigans Defender


See User information
Yes, Olaf said me why was not working

i'm really tired...
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project