/******************************************************************************** # $FreeBSD: sniffer.h,v 1.0 2003/01/20 00:00:00 artis Exp # see 'sniffer.c' ********************************************************************************/ #define PCAP_SNAPLEN 1518 pcap_t *pcap = NULL; void do_pcap(u_char *, const struct pcap_pkthdr *, const u_char *); int do_ethernet(const u_char *, int); int do_ip(const struct ip *, int); int do_tcp(const struct tcphdr *, int); int do_udp(const struct udphdr *, int); int do_icmp(const struct icmp *, int);