1997-03-16 23:24:08 +03:00
|
|
|
.\" $NetBSD: arp.9,v 1.5 1997/03/16 20:24:08 is Exp $
|
1997-03-16 22:26:53 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1997 Ignatios Souvatzis.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed for the NetBSD Project
|
|
|
|
.\" by Ignatios Souvatzis
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
|
|
|
|
.Dd Mar 3, 1997
|
|
|
|
.Dt ARP 9
|
|
|
|
.Os NetBSD
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ARP
|
|
|
|
.Nd externally visible ARP functions
|
|
|
|
.Sh SYNOPSIS
|
1997-03-16 22:43:17 +03:00
|
|
|
.Fd #include <netinet/if_inarp.h>
|
1997-03-16 22:26:53 +03:00
|
|
|
.Ft void
|
|
|
|
.Fn arp_ifinit "struct ifnet *ifp" "struct ifaddr *ifa"
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
functions provide the interface between the
|
|
|
|
.Nm
|
|
|
|
module and the network drivers which need
|
|
|
|
.Nm
|
|
|
|
functionality.
|
|
|
|
|
|
|
|
.Bl -tag -width "arp_ifinit()"
|
|
|
|
.It Fn arp_ifinit
|
|
|
|
Sets up the
|
|
|
|
.Nm
|
|
|
|
specific fields in
|
|
|
|
.Fa ifa .
|
1997-03-16 23:06:37 +03:00
|
|
|
Additionally, it sends out a gratitious ARP request on
|
1997-03-16 22:26:53 +03:00
|
|
|
.Fa ifp ,
|
|
|
|
so that other machines are warned that we have a new address and
|
|
|
|
duplicate addresses can be detected.
|
|
|
|
.El
|
|
|
|
|
|
|
|
.Sh RETURN VALUES
|
|
|
|
None.
|
|
|
|
|
|
|
|
.\" .Sh ERRORS
|
|
|
|
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ifattach 9 ,
|
|
|
|
.Xr ether_ifattach 9 ,
|
|
|
|
.Xr fddi_ifattach 9 ,
|
|
|
|
.Xr arc_ifattach 9 .
|
|
|
|
|
|
|
|
.br
|
|
|
|
Plummer, D., "RFC826", An Ethernet Address Resolution Protocol.
|
|
|
|
|
|
|
|
.Sh AUTHORS
|
1997-03-16 23:24:08 +03:00
|
|
|
UCB CSRG (original implementation)
|
1997-03-16 22:26:53 +03:00
|
|
|
.br
|
|
|
|
Ignatios Souvatzis (support for non-Ethernet)
|
|
|
|
|
|
|
|
.\" .Sh BUGS
|
|
|
|
|
|
|
|
.Sh STANDARDS
|
|
|
|
|
|
|
|
RFC 826
|
|
|
|
|
|
|
|
.Sh HISTORY
|
|
|
|
Rewritten to support other than Ethernet link level addresses in
|
1997-03-16 23:06:37 +03:00
|
|
|
.Nx 1.2d .
|