if_pflog.c (153110) | if_pflog.c (155337) |
---|---|
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.c 153110 2005-12-05 11:58:35Z ru $ */ | 1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.c 155337 2006-02-05 17:17:32Z mlaier $ */ |
2/* $OpenBSD: if_pflog.c,v 1.12 2004/05/19 17:50:51 dhartmei Exp $ */ 3 4/* 5 * The authors of this code are John Ioannidis (ji@tla.org), 6 * Angelos D. Keromytis (kermit@csd.uch.gr) and 7 * Niels Provos (provos@physnet.uni-hamburg.de). 8 * 9 * This code was written by John Ioannidis for BSD/OS in Athens, Greece, --- 361 unchanged lines hidden (view full) --- 371pflog_modevent(module_t mod, int type, void *data) 372{ 373 int error = 0; 374 375 switch (type) { 376 case MOD_LOAD: 377 LIST_INIT(&pflog_list); 378 if_clone_attach(&pflog_cloner); | 2/* $OpenBSD: if_pflog.c,v 1.12 2004/05/19 17:50:51 dhartmei Exp $ */ 3 4/* 5 * The authors of this code are John Ioannidis (ji@tla.org), 6 * Angelos D. Keromytis (kermit@csd.uch.gr) and 7 * Niels Provos (provos@physnet.uni-hamburg.de). 8 * 9 * This code was written by John Ioannidis for BSD/OS in Athens, Greece, --- 361 unchanged lines hidden (view full) --- 371pflog_modevent(module_t mod, int type, void *data) 372{ 373 int error = 0; 374 375 switch (type) { 376 case MOD_LOAD: 377 LIST_INIT(&pflog_list); 378 if_clone_attach(&pflog_cloner); |
379 PF_LOCK(); 380 pflog_packet_ptr = pflog_packet; 381 PF_UNLOCK(); |
|
379 break; 380 381 case MOD_UNLOAD: | 382 break; 383 384 case MOD_UNLOAD: |
385 PF_LOCK(); 386 pflog_packet_ptr = NULL; 387 PF_UNLOCK(); |
|
382 if_clone_detach(&pflog_cloner); 383 break; 384 385 default: 386 error = EINVAL; 387 break; 388 } 389 --- 5 unchanged lines hidden (view full) --- 395 pflog_modevent, 396 0 397}; 398 399#define PFLOG_MODVER 1 400 401DECLARE_MODULE(pflog, pflog_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY); 402MODULE_VERSION(pflog, PFLOG_MODVER); | 388 if_clone_detach(&pflog_cloner); 389 break; 390 391 default: 392 error = EINVAL; 393 break; 394 } 395 --- 5 unchanged lines hidden (view full) --- 401 pflog_modevent, 402 0 403}; 404 405#define PFLOG_MODVER 1 406 407DECLARE_MODULE(pflog, pflog_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY); 408MODULE_VERSION(pflog, PFLOG_MODVER); |
409MODULE_DEPEND(pflog, pf, PF_MODVER, PF_MODVER, PF_MODVER); |
|
403#endif /* __FreeBSD__ */ | 410#endif /* __FreeBSD__ */ |