diff options
author | peter <peter@FreeBSD.org> | 1996-06-21 21:45:58 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-06-21 21:45:58 +0000 |
commit | 8b06260475720ae554f26db368cf1fdbc4122fbc (patch) | |
tree | 1803e3869b54a037e4d4779ed8a69b36dd08defb /sys/netinet/if_ether.c | |
parent | 64533786b23641de565ef13c273945d5c787dcd7 (diff) | |
download | FreeBSD-src-8b06260475720ae554f26db368cf1fdbc4122fbc.zip FreeBSD-src-8b06260475720ae554f26db368cf1fdbc4122fbc.tar.gz |
Set the rmx.rmx_expire to 0 when creating fake ethernet addresses for the
broadcast and multicast routes, otherwise they will be expired by
arptimeout after a few minutes, reverting to " (incomplete)". This makes
the work done by rev 1.27 stay around until the route itself is deleted.
This is mainly cosmetic for 'arp' and 'netstat -r'.
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r-- | sys/netinet/if_ether.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 94c3c73..d420c27 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ether.c 8.1 (Berkeley) 6/10/93 - * $Id: if_ether.c,v 1.31 1996/06/13 02:54:19 davidg Exp $ + * $Id: if_ether.c,v 1.32 1996/06/20 22:53:08 fenner Exp $ */ /* @@ -218,10 +218,12 @@ arp_rtrequest(req, rt, sa) ETHER_MAP_IP_MULTICAST(&SIN(rt_key(rt))->sin_addr, LLADDR(SDL(gate))); SDL(gate)->sdl_alen = 6; + rt->rt_expire = 0; } if (in_broadcast(SIN(rt_key(rt))->sin_addr, rt->rt_ifp)) { memcpy(LLADDR(SDL(gate)), etherbroadcastaddr, 6); SDL(gate)->sdl_alen = 6; + rt->rt_expire = 0; } if (SIN(rt_key(rt))->sin_addr.s_addr == |