Hi all!
I'm doing some simple server/client based socket progs in C. My problem is that the sending routine uses the protocol family PF_PACKET -> with SOCK_DGRAM, IPPROTO_UDP so i made some own cooked frames and send them with sendto(). I' have monitored them with tcpdump, the packet arrives, the ip sum is ok the udp socket too.
The in the receiver routine is PF_INET, SOCK_DGRAM, IPPROTO_UDP the socket is binded to the proper device and never becomes readable.... WHY??????????? tcpdump sees that the packet is arrived the dest address and port are ok, but the socket never becomes readable...
Is someone have practice in this kind of solution?????
so once again i must send with PF_PACKET (because of some ehternet broadcast features) and must receive with PF_INET.
thx sodja
__________________________
Subscribe now!
Breaking News
| "We'll Stop Fighting" Means Something Strange for Microsoft | 11 hours 22 min ago |
| AMD Calls Out Intel...We Think. | 3 days 12 hours ago |
| Bye-Bye TorrentSpy, So Long MPAA's Money | 3 days 14 hours ago |
| Sun Finds the Keys to Unlock MySQL | 5 days 9 hours ago |
Featured Video
Linux Journal Gadget Guy, Shawn Powers, takes us through installing Ubuntu on a machine running Windows with the Wubi installer.
Live From the Field
The latest posts from the Linux Journal team.






