View topic - ARP command source code

ARP command source code

Discussion about the general applications that run on QNX6

ARP command source code

Postby lajimene » Wed Nov 11, 2009 9:53 pm

Does anybody know where I can find the source code for the ARP command. I need to be able to inject an ARP request onto the network. I tried to use the QNX ported version of pcap, but found that it doesn't support packet injection. Also, I wasn't able to do it using raw sockets. I was hoping that I could get the ARP source code and find out how they are doing it. Ultimately, I'd like to send out an ARP request across the network and have it return the MAC address of a remote device. Thanks for your help.
lajimene
New Member
 
Posts: 2
Joined: Wed Nov 11, 2009 9:49 pm

RE: ARP command source code

Postby lajimene » Thu Nov 12, 2009 11:16 pm

Nevermind. I found the source code on foundry27. Apparently, the ARP command doesn't send an ARP request it just looks up entries in the ARP table. Pinging the device will add the entry to the ARP table.
lajimene
New Member
 
Posts: 2
Joined: Wed Nov 11, 2009 9:49 pm

Postby seanb » Sun Nov 15, 2009 3:06 am

Check out the source for dhcp.client, in particular arp.c.

-seanb

http://community.qnx.com/integration/vi ... 1&view=log
seanb
QNX Master
 
Posts: 133
Joined: Fri Jul 28, 2006 5:36 pm


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 1 guest

cron