diff options
author | 2004-12-10 14:35:30 +0000 | |
---|---|---|
committer | 2004-12-10 14:35:30 +0000 | |
commit | fffdbbc73edca28cbe4fb235e702403783fd5b35 (patch) | |
tree | d98b7d8e7dad6557ee6d6c0127375a9e4c1dac8b /sys | |
parent | sync usage(); (diff) | |
download | wireguard-openbsd-fffdbbc73edca28cbe4fb235e702403783fd5b35.tar.xz wireguard-openbsd-fffdbbc73edca28cbe4fb235e702403783fd5b35.zip |
Run address change notification hooks when the interface address is updated.
Notably, this fixes "(pppoe0)" in pf. ok markus@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_spppsubr.c | 6 |
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 |