From 633f7942191287df2b36948b87a9fdc36c46ce2d Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Fri, 10 Dec 2004 14:35:31 +0000 Subject: Run address change notification hooks when the interface address is updated. Notably, this fixes "(pppoe0)" in pf. ok markus@ --- sys/net/if_spppsubr.c | 6 ++++-- 1 file 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 -- cgit v1.2.3