Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - SOCK_RAW support: (4 Items)
   
SOCK_RAW support  
Trying to link into IGMP protocol.
igmp_socket = socket(AF_INET,SOCK_RAW,IPPROTO_IGMP);
Dont see any data coming back when I do a receive. Tried changing to 
IPPROTO_ICMP (and did a ping), event IPPROTO_IP..nada

Any suggestions on what I am screwing up ?

Dave
Re: SOCK_RAW support  
On Tue, Feb 10, 2009 at 10:26:13AM -0500, dave allamby wrote:
> Trying to link into IGMP protocol.
> igmp_socket = socket(AF_INET,SOCK_RAW,IPPROTO_IGMP);
> Dont see any data coming back when I do a receive. Tried changing to 
> IPPROTO_ICMP (and did a ping), event IPPROTO_IP..nada
> 
> Any suggestions on what I am screwing up ?

You're not passing the correct length to bind().
You're binding "/tmp/sock" and unlinking "/tmp/sock "
(extra space) which is failing silently since you're
not checking the return from unlink() correctly.

Here's a diff.

-seanb

Attachment: Text diff 981 bytes
Re: SOCK_RAW support  
On Tue, Feb 10, 2009 at 10:26:13AM -0500, dave allamby wrote:
> Trying to link into IGMP protocol.
> igmp_socket = socket(AF_INET,SOCK_RAW,IPPROTO_IGMP);
> Dont see any data coming back when I do a receive. Tried changing to 
> IPPROTO_ICMP (and did a ping), event IPPROTO_IP..nada
> 
> Any suggestions on what I am screwing up ?
> 

Never mind,  Wrong thread...

-seanb
Re: SOCK_RAW support  
Hi dave,
Do you solve this problem?

I have the same problem