Best regards
If you are just trying to "take over" an IP address, you can simply
do an ifAddrSet or ifAddrAdd - this will automatically broadcast an
ARP packet mapping the IP address to the NIC's MAC.
If you are trying to resolve an IP address, you probably want to use
etherAddrResolve (part of the etherLib package).
The above function is defined static, so it may not be accessible to
you anyway. The struct arpccom is defined in netinet/if_ether.h.
Hope this helps.
Pete
--
Pete Flugstad
Remove NO.SPAM to reply directly
Icon Labs (http://www.icon-labs.com)
Thanks for your help.
What I want to do is to send an arp packet on an interface with a
specified ip address and mac address. It just likes an arp proxy.
Regards,
Yusuf
"Yao Yong" <yy_un...@hotmail.com> wrote in message
news:cfe430d0.03081...@posting.google.com...
One more thought:
If you want to act as an gateway to others try to play with routing
tables. If your IP address is known to the rest of the hosts as an
gateway to some other subnets, they will send you the packets
automatically. If you setup your routing tables correctly too, the
existing send operations will resolve the addresses you want to reach
for you, without writing a line of code. Is this what you are doing?
msafar
yy_un...@hotmail.com (Yao Yong) wrote in message news:<cfe430d0.03081...@posting.google.com>...