Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2002 05:03:47 -0800 (PST)
From:      Kenneth Stailey <kstailey@yahoo.com>
To:        freebsd-doc@freebsd.org
Subject:   ARP documentation?
Message-ID:  <20020123130347.87045.qmail@web10004.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Between route(4) and arp(4) manual pages is it really possible to find out how
to write a C program that adds an ARP table entry?

route(4) offers some general advice:

     Messages are formed by a header followed by a small number of sockaddrs

[...]

     all other messages use the rt_msghdr header.

etc.  So you know what header to use and that there's supposed to be some
sockaddrs after it.  The EEXIST, ESRCH and ENOBUFS are documented but it never
bothers to mention EINVAL which is what you get back if you don't fill out the 
parameters correctly in the undocumented way.

It doesn't really talk about what paramters to use for ARP at all.  The string
"arp" does not occur in this man page ever.

The arp(4) page is a bigger joke.  It tells you to use arp(8).  So is the
correct way to add an ARP table entry from a C program to use
system("/usr/sbin/arp -blah")?



__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020123130347.87045.qmail>