1 #include <pcap.h>
2 
3 void usage(char *);
4 inline RETSIGTYPE alarm_handler(int);
5 inline void handlepkt(const u_char *);
6 inline void eth_printer(u_char *, const struct pcap_pkthdr *, const u_char *);
7 inline void ppp_printer(u_char *, const struct pcap_pkthdr *, const u_char *);
8 inline pcap_handler lookup_printer(int);
9 
10 #define fatal(x)	{ fprintf(stderr, "%s\n", (x)); exit(1); }
11