diff options
author | ru <ru@FreeBSD.org> | 2001-02-05 16:57:56 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-02-05 16:57:56 +0000 |
commit | 3bd397644854d72bd7998d0c90ad2e00bf44f8ae (patch) | |
tree | 5922c173fc12ed1234afb02fe42f2b9a18ccfc3c | |
parent | 88cfc8e9de4b08902a113a1a75c13cc71959c462 (diff) | |
download | FreeBSD-src-3bd397644854d72bd7998d0c90ad2e00bf44f8ae.zip FreeBSD-src-3bd397644854d72bd7998d0c90ad2e00bf44f8ae.tar.gz |
Make the ``arp -d hostname proxy'' really do something useful.
Specifically, ``proxy'' modifier tells the code to delete only
Proxy ARP entry for the ``hostname''; the usual ARP entry will
be unaffected by this operation.
-rw-r--r-- | usr.sbin/arp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/arp/arp.c b/usr.sbin/arp/arp.c index 3afd37d..587dad8 100644 --- a/usr.sbin/arp/arp.c +++ b/usr.sbin/arp/arp.c @@ -372,10 +372,10 @@ delete(char *host, char *info) register struct rt_msghdr *rtm = &m_rtmsg.m_rtm; struct sockaddr_dl *sdl; - if (info && strncmp(info, "pro", 3) ) - export_only = 1; getsocket(); sin_m = blank_sin; + if (info && strncmp(info, "pro", 3) == 0) + sin_m.sin_other = SIN_PROXY; sin->sin_addr.s_addr = inet_addr(host); if (sin->sin_addr.s_addr == -1) { if (!(hp = gethostbyname(host))) { |