Sean Boudreau(deleted)
02/10/2009 10:58 AM
post21894
|
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: |
diff
981 bytes
|
|
|
Sean Boudreau(deleted)
02/10/2009 11:03 AM
post21895
|
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
|
|
|
Hu Chen
02/14/2011 9:21 PM
post83162
|
Hi dave,
Do you solve this problem?
I have the same problem
|
|
|