EVENTHANDLER_REGISTER uses the name of the event as string and therefore
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 28 Sep 2004 16:22:41 +0000 (16:22 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 28 Sep 2004 16:22:41 +0000 (16:22 +0000)
commit519f2076b4377f31f478cfc1c2132a87ece69d0e
treecff106b0c6840b437bc2178d7f4125e930e5c523
parent8ae8e0ce81389aed91aa74c14cfd01a4ba75799a
EVENTHANDLER_REGISTER uses the name of the event as string and therefore
the compiler couldn't detect the wrong event names. I used
ifnet_attach_event and ifnet_detach_event instead of ifnet_arrival_event
and ifnet_departure_event. This seemed to work for PF as module because
all existing interfaces are added by hand first.

Problem-reported-by: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
sys/net/pf/pf_if.c