if_pflog.c (130613) | if_pflog.c (130933) |
---|---|
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.c 130613 2004-06-16 23:24:02Z mlaier $ */ | 1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.c 130933 2004-06-22 20:13:25Z brooks $ */ |
2/* $OpenBSD: if_pflog.c,v 1.11 2003/12/31 11:18:25 cedric Exp $ */ 3/* 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * This code was written by John Ioannidis for BSD/OS in Athens, Greece, 9 * in November 1995. --- 48 unchanged lines hidden (view full) --- 58#include <sys/malloc.h> 59#include <sys/module.h> 60#include <sys/sockio.h> 61#else 62#include <sys/ioctl.h> 63#endif 64 65#include <net/if.h> | 2/* $OpenBSD: if_pflog.c,v 1.11 2003/12/31 11:18:25 cedric Exp $ */ 3/* 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * This code was written by John Ioannidis for BSD/OS in Athens, Greece, 9 * in November 1995. --- 48 unchanged lines hidden (view full) --- 58#include <sys/malloc.h> 59#include <sys/module.h> 60#include <sys/sockio.h> 61#else 62#include <sys/ioctl.h> 63#endif 64 65#include <net/if.h> |
66#if defined(__FreeBSD__) 67#include <net/if_clone.h> 68#endif |
|
66#include <net/if_types.h> 67#include <net/route.h> 68#include <net/bpf.h> 69 70#ifdef INET 71#include <netinet/in.h> 72#include <netinet/in_var.h> 73#include <netinet/in_systm.h> --- 44 unchanged lines hidden (view full) --- 118 119#ifndef __FreeBSD__ 120extern int ifqmaxlen; 121#endif 122 123#ifdef __FreeBSD__ 124static MALLOC_DEFINE(M_PFLOG, PFLOGNAME, "Packet Filter Logging Interface"); 125static LIST_HEAD(pflog_list, pflog_softc) pflog_list; | 69#include <net/if_types.h> 70#include <net/route.h> 71#include <net/bpf.h> 72 73#ifdef INET 74#include <netinet/in.h> 75#include <netinet/in_var.h> 76#include <netinet/in_systm.h> --- 44 unchanged lines hidden (view full) --- 121 122#ifndef __FreeBSD__ 123extern int ifqmaxlen; 124#endif 125 126#ifdef __FreeBSD__ 127static MALLOC_DEFINE(M_PFLOG, PFLOGNAME, "Packet Filter Logging Interface"); 128static LIST_HEAD(pflog_list, pflog_softc) pflog_list; |
126struct if_clone pflog_cloner = IF_CLONE_INITIALIZER(PFLOGNAME, 127 pflog_clone_create, pflog_clone_destroy, 1, IF_MAXUNIT); | 129IFC_SIMPLE_DECLARE(pflog, 1); |
128 129static void 130pflog_clone_destroy(struct ifnet *ifp) 131{ 132 struct pflog_softc *sc; 133 134 sc = ifp->if_softc; 135 --- 245 unchanged lines hidden --- | 130 131static void 132pflog_clone_destroy(struct ifnet *ifp) 133{ 134 struct pflog_softc *sc; 135 136 sc = ifp->if_softc; 137 --- 245 unchanged lines hidden --- |