From FreeBSD 5:
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 10 Sep 2004 14:02:01 +0000 (14:02 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 10 Sep 2004 14:02:01 +0000 (14:02 +0000)
commitf2bd8b6741d97f541d4ddb941347641eb067c81d
tree3edab06ea2d589063f8196d85c76b43ef629ccc2
parent124fee139c57f228e0322e747eea04c5ecc84d83
From FreeBSD 5:
  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.

The events are called attach and detach instead of arrival / departue.
sys/net/if.c
sys/net/if_var.h
sys/netinet/in.c
sys/netinet6/in6.c