C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 09-22-2009, 10:21 PM   #1
Registered User
 
Join Date: Feb 2009
Posts: 10
Reading UDP header

I am injecting packets using sendto
and receiving packets using recvfrom

Is there a way to read the UDP headers which are used by the lower layer.

I don't really want to go into raw sockets to do that....
vkaushal21 is offline   Reply With Quote
Old 09-27-2009, 03:55 PM   #2
Registered User
 
Join Date: Apr 2008
Posts: 278
if this is just to check things, you can use a 3rd party tool to monitor the traffic like wireshark or tcpdump.
root4 is offline   Reply With Quote
Old 09-27-2009, 04:39 PM   #3
Registered User
 
Join Date: Jul 2007
Posts: 44
UDP headers are just [src port][dst port][lenght][checksum]. There pretty much isn't anything you already don't know, system calls don't give you, or you can't compute easily.
fronty is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with UDP AlexS C# Programming 0 07-07-2009 06:21 PM
simultaneously waiting for data on FIFO and UDP using select call yogesh3073 Networking/Device Communication 2 01-05-2007 09:53 AM
Header Files Volair C Programming 2 12-09-2005 10:51 AM
Problems in reading binary file serena C Programming 3 04-14-2005 03:54 AM
unblocked UDP reading Mastadex Linux Programming 7 12-15-2004 09:55 AM


All times are GMT -6. The time now is 10:25 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22