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.
This commit is contained in:
ru 2001-02-05 16:57:56 +00:00
parent 2d077151d0
commit 24810105f7

View File

@ -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))) {