?
Solved

Packet Generator in C

Posted on 2003-03-17
5
Medium Priority
?
235 Views
Last Modified: 2010-04-15
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
0
Comment
Question by:raghu_vs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 

Expert Comment

by:adam_kan
ID: 8154279
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
 
LVL 3

Expert Comment

by:Nosfedra
ID: 8154288
Try looking for CURL (http://curl.haxx.se/).
0
 

Accepted Solution

by:
adam_kan earned 100 total points
ID: 8154321
0
 
LVL 20

Expert Comment

by:jmcg
ID: 10142692
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question