![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using GDB to analyse different CORE dumps | nsdeeps | UNIX for Advanced & Expert Users | 2 | 04-16-2008 12:10 AM |
| end-end packet delay? | yogesh_powar | IP Networking | 4 | 12-13-2005 01:21 PM |
| sendto in packet socket | Rakesh Ranjan | High Level Programming | 5 | 09-02-2005 07:32 AM |
| Getting an ACK for RAW SYN packet | zampya | High Level Programming | 17 | 05-24-2004 09:15 PM |
| Seeing IP packet | manjunath | IP Networking | 4 | 09-15-2002 11:46 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to analyse the contents of a give IP packet?
hi you all!
I can write a network program to send and receive some messages. I use read() and write() functions for extracting of sending messages via a given socket. By doing so, i know only the actions performed at the application layer of the TCP/IP suite. But i want to control the actual contents of each IP packets(i.e data and ip header) sent/received.Lets say I want to write a routing application which analyses the destination address found in the IP header(TCP header) and sends the packet to its destination. Give me some hint on how to tackle such cases or give me a reference book/site... thank you |
|
||||
|
You want to use raw sockets.
Search google for "raw sockets" or "SOCK_RAW" or "PF_PACKET" If you're programming C in Linux, there are structs that easily let you alter the whole tcp/udp/icmp/igmp/whatever header and inject packets at will. This can also be used for communication over closed ports and other obscure stuff (if you create a listening raw socket, you'll have yourself a "sniffer", and with that you can analyze data packets that arrive even on closed tcp ports) Last edited by Neo; 08-02-2008 at 06:10 PM.. Reason: Deleted unnecessary editorial comment |
|
||||
|
libnet: The Million Packet March
|
| Sponsored Links | ||
|
|