aboutsummaryrefslogtreecommitdiff
path: root/pcap.h
diff options
context:
space:
mode:
authorguy <guy>2005-07-07 01:57:00 +0000
committerguy <guy>2005-07-07 01:57:00 +0000
commit75b14d240d2b093c8e1441e564fb00128a9cbddb (patch)
treee167475b8700817c1989f4c2f5090cbffaa9e849 /pcap.h
parent5e92dec08841585eaca3c5e6cd90590dcba8f576 (diff)
OK, we'll be putting out 0.9.2 soon, so add the API changes back in
again.
Diffstat (limited to 'pcap.h')
-rw-r--r--pcap.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/pcap.h b/pcap.h
index aecaa2eb..9a5aafa4 100644
--- a/pcap.h
+++ b/pcap.h
@@ -31,7 +31,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.56 2005-07-05 22:31:58 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/pcap.h,v 1.57 2005-07-07 01:57:03 guy Exp $ (LBL)
*/
#ifndef lib_pcap_h
@@ -121,10 +121,10 @@ struct pcap_file_header {
};
typedef enum {
- D_INOUT = 0,
- D_IN,
- D_OUT
-} direction_t;
+ PCAP_D_INOUT = 0,
+ PCAP_D_IN,
+ PCAP_D_OUT
+} pcap_direction_t;
/*
* Each packet in the dump file is prepended with this generic header.
@@ -224,7 +224,7 @@ int pcap_next_ex(pcap_t *, struct pcap_pkthdr **, const u_char **);
void pcap_breakloop(pcap_t *);
int pcap_stats(pcap_t *, struct pcap_stat *);
int pcap_setfilter(pcap_t *, struct bpf_program *);
-int pcap_setdirection(pcap_t *, direction_t);
+int pcap_setdirection(pcap_t *, pcap_direction_t);
int pcap_getnonblock(pcap_t *, char *);
int pcap_setnonblock(pcap_t *, int, char *);
void pcap_perror(pcap_t *, char *);