]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When installing a new ARP entry via 'arp -S', lla_lookup() will
authorglebius <glebius@FreeBSD.org>
Tue, 27 Jul 2010 10:05:27 +0000 (10:05 +0000)
committerglebius <glebius@FreeBSD.org>
Tue, 27 Jul 2010 10:05:27 +0000 (10:05 +0000)
commit43f917d899536fa8b0f464c85a9282b6150eda9a
treeb1b0f1ea57d9c27281a15b320aefbc6a9cfcd9c8
parent14fecff4af267e329c5b6b92b3832986bf141250
When installing a new ARP entry via 'arp -S', lla_lookup() will
either find an existing entry, or allocate a new one. In the latter
case an entry would have flags, that were supplied as argument to
lla_lookup(). In case of an existing entry, flags aren't modified.

This lead to losing LLE_PUB and/or LLE_PROXY flags.

We should apply these flags either in lla_rt_output() or in the
in.c:in_lltable_lookup(). It seems to me that lla_rt_output() is
a more correct choice.

PR: kern/148784, kern/146539
Silence from: qingli, 5 days
sys/net/if_llatbl.c