Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-22-2004, 10:01 AM   #1
LQ Newbie
Registered: Nov 2003
Posts: 11

Rep: Reputation: 0
packet building in libnet


I am using libnet to create packets in a network. Traffic I want is tcp/ip/ethernet. Is it necessary that the payload be atttached to the packet using libnet_build_tcp() function itself? What happens if payload is left NULL in tcp build phase and attach it in build_ip() or build_ethernet() phase? I tried it, no error happens at any stage. But there is no traffic in the network. Is it possible at all in theory, to use the payload field in any of the build functions? The build packets are almost similar, except for 3 bytes, which I have not checked what they are. At least the MAC address of src and destination are there in the beginning of the packet.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 05:09 AM
packet fragmentation in packet forwarding code cranium2004 Linux - Networking 0 05-16-2005 04:05 AM
DHCP packet building payal_shah Linux - Networking 1 12-22-2004 10:58 AM
packet creation in libnet Abominous Programming 0 12-01-2003 03:23 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration