I'm doing an ethernet based project where in i receive udp packets over the network. I have to basically strip off the first 42 bytes (i.e., the ethernet, ip and udp headers) and retain the rest (which contains another header and the payload data). I have the code for the packet analyzer to capture the packets but i don't need the entire packet as mentioned above. The code is in C.
So if anyone can help please do let me know how i can proceed. I can't use something like wireshark as there is loss of packets (tried and tested). Hence i was using another sniffer.