diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-02-05 16:57:56 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-02-05 16:57:56 +0000 |
commit | 9ea1ba64dd8cb826051daeca97d10c617ea15791 (patch) | |
tree | 3771955a0d698eacccf3f8706eb525abc00a1e73 /usr.sbin/arp | |
parent | 14e6355f0272e4b60e6d9edc8f1516bdc0c85fd0 (diff) | |
download | src-9ea1ba64dd8cb826051daeca97d10c617ea15791.tar.gz src-9ea1ba64dd8cb826051daeca97d10c617ea15791.zip |
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.
Notes
Notes:
svn path=/head/; revision=72051
Diffstat (limited to 'usr.sbin/arp')
-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 3afd37df8775..587dad86747a 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))) { |