Raw socket NOT sending
问题 I am trying to write a sample Raw socket program to clear my understanding of raw sockets. I create a Raw UDP socket and then call sendto. My sendto succeeds but I never see the packet received by the other side. I don't have any receive side running so I am relying on Wireshark running on both the sender and receiver. I am pasting the code snippet here. Please point out any errors. #include<stdio.h> #include<stdlib.h> #include<sys/types.h> #include<netinet/in.h> #include<string.h> #include