Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
126 user(s) are online (107 user(s) are browsing Forums)

Members: 0
Guests: 126

more...

Support us!

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 )



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1
Pegasos2
X5000
X1000
A1222
Sam 440/460
Classic PowerPC Amiga
WinUAE emulation
Qemu emulation
Total Votes: 109
The poll will close at 2025/12/1 12:00
2 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project