SOCKET Programming Trouble
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.
Webinar: 8 Signs You’re Beyond Cron
11am CDT, April 29th
Join Linux Journal and Pat Cameron, Director of Automation Technology at HelpSystems, as they discuss the eight primary advantages of moving beyond cron job scheduling. In this webinar, you’ll learn about integrating cron with an enterprise scheduler.Join us!
- New Products
- Users, Permissions and Multitenant Sites
- Not So Dynamic Updates
- March 2015 Issue of Linux Journal: High-Performance Computing
- Flexible Access Control with Squid Proxy
- Security in Three Ds: Detect, Decide and Deny
- Tighten Up SSH
- DevOps: Everything You Need to Know
- Solving ODEs on Linux
- Non-Linux FOSS: MenuMeters