You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
1.6 KiB
88 lines
1.6 KiB
#include "bpfilter.h"
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/systm.h>
|
|
#include <sys/kernel.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/syslog.h>
|
|
//#include <sys/types.h>
|
|
|
|
#include <net/if.h>
|
|
#include <net/if_dl.h>
|
|
#include <net/if_media.h>
|
|
#include <net/if_types.h>
|
|
|
|
#ifdef INET
|
|
#include <netinet/in.h>
|
|
#include <netinet/in_systm.h>
|
|
#include <netinet/in_var.h>
|
|
#include <netinet/ip.h>
|
|
#endif
|
|
|
|
#ifdef IPX
|
|
#include <netipx/ipx.h>
|
|
#include <netipx/ipx_if.h>
|
|
#endif
|
|
|
|
#ifdef NS
|
|
#include <netns/ns.h>
|
|
#include <netns/ns_if.h>
|
|
#endif
|
|
|
|
#if NBPFILTER > 0
|
|
#include <net/bpf.h>
|
|
#include <net/bpfdesc.h>
|
|
#endif
|
|
|
|
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
|
|
|
#include <sys/ioctl.h>
|
|
#include <sys/errno.h>
|
|
#include <sys/device.h>
|
|
#include <sys/mbuf.h>
|
|
#include <sys/malloc.h>
|
|
|
|
#if defined(__NetBSD__)
|
|
#include <net/if_ether.h>
|
|
#include <netinet/if_inarp.h>
|
|
#endif
|
|
|
|
#if defined(__OpenBSD__)
|
|
#include <netinet/if_ether.h>
|
|
#endif
|
|
|
|
//#include <vm/vm.h>
|
|
|
|
#include <machine/cpu.h>
|
|
#include <machine/bus.h>
|
|
#include <machine/intr.h>
|
|
|
|
#include <dev/mii/miivar.h>
|
|
|
|
#include <dev/pci/pcivar.h>
|
|
#include <dev/pci/pcireg.h>
|
|
#include <dev/pci/pcidevs.h>
|
|
|
|
#include <dev/pci/if_fxpreg.h>
|
|
#include <dev/pci/if_fxpvar.h>
|
|
|
|
#else /* __FreeBSD__ */
|
|
|
|
#include <sys/sockio.h>
|
|
|
|
#include <netinet/if_ether.h>
|
|
|
|
#include <vm/vm.h> /* for vtophys */
|
|
#include <vm/vm_param.h> /* for vtophys */
|
|
#include <vm/pmap.h> /* for vtophys */
|
|
#include <machine/clock.h> /* for DELAY */
|
|
|
|
#include <pci/pcivar.h>
|
|
#include <pci/if_fxpreg.h>
|
|
#include <pci/if_fxpvar.h>
|
|
|
|
#endif /* __NetBSD__ || __OpenBSD__ */
|
|
|
|
#define RTLDBG printf("TRACE: %s, %d\n", __FUNCTION__, __LINE__);
|
|
|
|
|
|
|