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'.
This commit is contained in:
parent
17b944a6a7
commit
51a109a174
@ -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 ==
|
||||
|
Loading…
Reference in New Issue
Block a user