summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2004-12-10 14:35:31 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2004-12-10 14:35:31 +0000
commit633f7942191287df2b36948b87a9fdc36c46ce2d (patch)
tree4cef3255cf5dd527e33d609ed88dcce48051f9d8
parent63718d21e861f68bc14e8451607acdc967bae632 (diff)
Run address change notification hooks when the interface address is updated.
Notably, this fixes "(pppoe0)" in pf. ok markus@
-rw-r--r--sys/net/if_spppsubr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index de6732d79c9..9c103d6f500 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.25 2004/11/28 23:39:45 canacar Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.26 2004/12/10 14:35:30 naddy Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -3969,8 +3969,10 @@ sppp_set_ip_addr(struct sppp *sp, u_long src)
}
}
- if (ifa && si)
+ if (ifa && si) {
si->sin_addr.s_addr = htonl(src);
+ dohooks(ifp->if_addrhooks, 0);
+ }
}
HIDE int