summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-04-13 17:57:12 +0000
committerbz <bz@FreeBSD.org>2009-04-13 17:57:12 +0000
commit6c258d0e98a4558ec55dbad3f2334a3d96cc6382 (patch)
treeec87ee9339d534d5a639e39cc013eed02a075801 /usr.sbin
parentfeaa2ee03c5dc83faf4a90b3352bb31fb9cdba72 (diff)
downloadFreeBSD-src-6c258d0e98a4558ec55dbad3f2334a3d96cc6382.zip
FreeBSD-src-6c258d0e98a4558ec55dbad3f2334a3d96cc6382.tar.gz
In case the peer address was already configured on the interface
we were not properly handling proxy arp. Make sure we (try to) add the proxy arp entry/entries in this case as well. PR: bin/131250 Submitted by: loos.br gmail.com (Luiz Otavio O Souza) MFC after: 3 days
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c
index 5c7f7d0..32bb590 100644
--- a/usr.sbin/ppp/iface.c
+++ b/usr.sbin/ppp/iface.c
@@ -456,6 +456,7 @@ iface_Add(struct iface *iface, struct ncp *ncp, const struct ncprange *ifa,
if (ncprange_equal(&iface->addr[n].ifa, ifa) &&
ncpaddr_equal(&iface->addr[n].peer, peer)) {
close(s);
+ ncp_IfaceAddrAdded(ncp, iface->addr + n);
return 1; /* Already there */
}
OpenPOWER on IntegriCloud