C Program to make static ARP entries



I need to write a c program to add static entries to the ARP cache.I
read somewhere that we can use the ioctl() function and the arpreq
structure to know the MAC address.This is the only info I could get
related to ARP entries.
Plz suggest how to add static entries in the ARP cache through a
program.The system in linux .I know in windows that one can do arp -s
through the command line.
Plz suggest me pointers to go about.

.



Relevant Pages

  • Re: [fw-wiz] Windows dynamic ARP
    ... arp -s ip2 mac2 ... I know how to add static entries, what I'd like to do is turn OFF the ... relatively easy to do with *nix systems, but I can't seem to find a ...
    (Firewall-Wizards)
  • still disappearing ARP-Table
    ... Why does all static entries in arp table disappear when I ... plug off the NETWORK cable? ... What can I do to make the entries in arp table realy static? ... I use WindowsXP and Windows 2000. ...
    (microsoft.public.windowsxp.network_web)
  • Re: disappearing ARP-Table
    ... script to put them back. ... > Why does all static entries in arp table disappear when I ... > What can I do to make the entries in arp table realy static? ... > I use WindowsXP and Windows 2000. ...
    (microsoft.public.windowsxp.network_web)
  • Re: disappearing ARP-Table
    ... >Static entries are only stored in RAM. ... >> Why does all static entries in arp table disappear when I ... >> What can I do to make the entries in arp table realy static? ... >> I use WindowsXP and Windows 2000. ...
    (microsoft.public.windowsxp.network_web)
  • How to set ARP table updation interval on linux platform
    ... Can any one plz provide the coomand /API to set the ARP table updation ...
    (comp.unix.programmer)