LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2010, 07:27 PM   #1
IdealVithVodka
Member
 
Registered: Apr 2010
Posts: 32

Rep: Reputation: 15
sending arp packets in C / C++


Hi,


I'm looking for a way how to send an arp request / reply packet using C or C++. I've written an application that can send different crafted packages using jpcap (java), but I'm not a C expert (trying to learn). The reason for this is that I would like to port my java program to C to use it on a less powerful system that can't fully cope with the resource hungry VM.


Any suggestions ?? Examples maybe ??


Thank You


With Kind Regards
 
Old 04-05-2010, 08:11 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

You could do worse than look at the source for the standard "arp" command itself:

http://www.comp.nus.edu.sg/~cs4236/r...ml/arp_8c.html
 
0 members found this post helpful.
Old 04-05-2010, 08:20 PM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
http://netresearch.ics.uci.edu/kfuji.../doc/faq.html:
Quote:
Jpcap is based on libpcap/winpcap.
 
1 members found this post helpful.
Old 04-12-2010, 08:47 AM   #4
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
You can also use the packet socket interface, see the "packet" man page.
 
  


Reply



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
Filtering ARP Packets steve_austin Programming 0 03-21-2009 10:54 AM
Need Help to extractation from ARP packets waqqasar Programming 1 07-11-2006 01:50 PM
Need Help to extractation from ARP packets waqqasar Programming 0 07-11-2006 06:33 AM
What are ARP packets? abefroman Linux - Security 2 05-23-2005 12:52 AM
Flooded by ARP packets pymehta Linux - Networking 4 04-15-2005 07:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:05 AM.

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