aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-05-02 16:35:24 +0000
committerBrian Somers <brian@FreeBSD.org>2001-05-02 16:35:24 +0000
commit0272404f7345c579c99a98840de05cbbb439d2ab (patch)
treec1272c009316e355791748d88a703c6684bfe503
parent26e30963607e43599915bd7979ceb15fecfc9f33 (diff)
Notes
-rw-r--r--usr.sbin/ppp/iface.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c
index a58fdac064bf..5384340e8124 100644
--- a/usr.sbin/ppp/iface.c
+++ b/usr.sbin/ppp/iface.c
@@ -303,7 +303,12 @@ iface_inAdd(struct iface *iface, struct in_addr ifa, struct in_addr mask,
* the IP number as a destination.
*/
if (chg == slot && iface->in_addr[chg].mask.s_addr == mask.s_addr) {
- nochange = 1;
+ if (brd.s_addr == iface->in_addr[slot].brd.s_addr)
+ nochange = 1;
+ /*
+ * If only the destination address has changed, the SIOCAIFADDR
+ * we do after the current loop will change it.
+ */
continue;
}
if (s == -1 && (s = ID0socket(AF_INET, SOCK_DGRAM, 0)) == -1) {