Packet Generator in C

Hi
I am looking for design ideas/ source code for a packet generator.
This must generate packets (may be DHCP, ICMP etc).

Any ideas will be greatly appreciated.


Thanks
Raghu
raghu_vsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
adam_kanCommented:
hi raghu vs

You can do this using "Libnet"

1)Libnet is a collection of routines to help with the construction and handling of network packets. It provides a portable framework for low-level network packet shaping, handling and injection. Libnet features portable packet creation interfaces at the IP layer and link layer, as well as a host of supplementary and complementary functionality. Using libnet, quick and simple packet assembly applications can be whipped up with little effort.

2)You can also try the great Stevens Book: "Network Programming Sockets & API vol:1" for sample code

hope this helps
adam


0
 
NosfedraCommented:
Try looking for CURL (http://curl.haxx.se/).
0
 
jmcgOwnerCommented:
Nothing has happened on this question in more than 9 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
accept answer by adam_kan.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0
All Courses

From novice to tech pro — start learning today.