1 /* 2 * pcaputil.h 3 * 4 * Copyright (c) 2001 Dug Song <dugsong@monkey.org> 5 * 6 * $Id: pcaputil.h,v 1.1 2002/01/17 21:33:55 dugsong Exp $ 7 */ 8 9 #ifndef PCAPUTIL_H 10 #define PCAPUTIL_H 11 12 #ifndef BIOCIMMEDIATE 13 #define BIOCIMMEDIATE _IOW('B',112,u_int) 14 #endif 15 16 pcap_t *pcap_open1(char *device); 17 int pcap_dloff(pcap_t *pcap); 18 int pcap_filter(pcap_t *pcap, const char *fmt, ...); 19 20 #endif /* PCAPUTIL_H */ 21