diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-02-26 04:27:55 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-02-26 04:27:55 +0000 |
commit | d937176b3481cd970c24fba3eddbe098a1fe564f (patch) | |
tree | b65ebe6aae423d9c985d1fc587b2e375a7f3c7c4 /sys/netinet6 | |
parent | 428f1c9a0fbaac94f9cce57cd846b2b6f82e17d1 (diff) | |
download | FreeBSD-src-d937176b3481cd970c24fba3eddbe098a1fe564f.zip FreeBSD-src-d937176b3481cd970c24fba3eddbe098a1fe564f.tar.gz |
Bring eventhandler callbacks for pf.
This enables pf to track dynamic address changes on interfaces (dailup) with
the "on (<ifname>)"-syntax. This also brings hooks in anticipation of
tracking cloned interfaces, which will be in future versions of pf.
Approved by: bms(mentor)
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 801472a..4c0dd5b 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -667,6 +667,8 @@ in6_control(so, cmd, data, ifp, td) */ pfxlist_onlink_check(); } + if (error == 0 && ia) + EVENTHANDLER_INVOKE(ifaddr_event, ifp); break; } @@ -714,6 +716,7 @@ in6_control(so, cmd, data, ifp, td) purgeaddr: in6_purgeaddr(&ia->ia_ifa); + EVENTHANDLER_INVOKE(ifaddr_event, ifp); break; } |