Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2001 09:43:14 -0800 (PST)
From:      Archie Cobbs <archie@dellroad.org>
To:        Ruslan Ermilov <ru@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/arp arp.8 arp.c
Message-ID:  <200101311743.JAA27554@curve.dellroad.org>
In-Reply-To: <20010131105214.C3662@sunbay.com> "from Ruslan Ermilov at Jan 31, 2001 10:52:14 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan Ermilov writes:
> >   Modified files:
> >     usr.sbin/arp         arp.8 arp.c 
> >   Log:
> >   Fix documentation: "proxy" is not a keyword for the arp(8) command line.
> >   
> It definitely WAS, the other question what it was supposed to do:
> 
> /*
>  * Delete an arp entry
>  */
> int
> delete(char *host, char *info)
> {
>         struct hostent *hp;
>         register struct sockaddr_inarp *sin = &sin_m;
>         register struct rt_msghdr *rtm = &m_rtmsg.m_rtm;
>         struct sockaddr_dl *sdl;
>         if (info && strncmp(info, "pro", 3) )
>                                    ^^^
>                 export_only = 1;

Hmm.. yeah, it doesn't seem to actually be required for anything..

    $ arp -s 192.168.0.111 0:1:2:3:4:5 
    $ arp 192.168.0.111
    dhcp-168-0-111.packetdesign.com (192.168.0.111) at 0:1:2:3:4:5 permanent [ethernet]
    $ arp -d 192.168.0.111
    192.168.0.111 (192.168.0.111) deleted
    $ arp 192.168.0.111
    192.168.0.111 (192.168.0.111) -- no entry

    $ arp -s 192.168.0.111 0:1:2:3:4:5 pub
    $ arp 192.168.0.111
    dhcp-168-0-111.packetdesign.com (192.168.0.111) at 0:1:2:3:4:5 permanent published [ethernet]
    $ arp -d 192.168.0.111
    192.168.0.111 (192.168.0.111) deleted
    $ arp 192.168.0.111
    192.168.0.111 (192.168.0.111) -- no entry

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com


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




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