xref: /netbsd-src/external/bsd/libpcap/dist/pcap-dag.h (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
1 /*	$NetBSD: pcap-dag.h,v 1.1.1.4 2013/12/31 16:57:22 christos Exp $	*/
2 
3 /*
4  * pcap-dag.c: Packet capture interface for Endace DAG card.
5  *
6  * The functionality of this code attempts to mimic that of pcap-linux as much
7  * as possible.  This code is only needed when compiling in the DAG card code
8  * at the same time as another type of device.
9  *
10  * Author: Richard Littin, Sean Irvine ({richard,sean}@reeltwo.com)
11  *
12  * @(#) Header: /tcpdump/master/libpcap/pcap-dag.h,v 1.7 2008-04-04 19:37:45 guy Exp  (LBL)
13  */
14 
15 pcap_t *dag_create(const char *, char *, int *);
16 int dag_findalldevs(pcap_if_t **devlistp, char *errbuf);
17 
18 #ifndef TYPE_AAL5
19 #define TYPE_AAL5               4
20 #endif
21 
22 #ifndef TYPE_MC_HDLC
23 #define TYPE_MC_HDLC            5
24 #endif
25 
26 #ifndef TYPE_MC_RAW
27 #define TYPE_MC_RAW             6
28 #endif
29 
30 #ifndef TYPE_MC_ATM
31 #define TYPE_MC_ATM             7
32 #endif
33 
34 #ifndef TYPE_MC_RAW_CHANNEL
35 #define TYPE_MC_RAW_CHANNEL     8
36 #endif
37 
38 #ifndef TYPE_MC_AAL5
39 #define TYPE_MC_AAL5            9
40 #endif
41 
42 #ifndef TYPE_COLOR_HDLC_POS
43 #define TYPE_COLOR_HDLC_POS     10
44 #endif
45 
46 #ifndef TYPE_COLOR_ETH
47 #define TYPE_COLOR_ETH          11
48 #endif
49 
50 #ifndef TYPE_MC_AAL2
51 #define TYPE_MC_AAL2            12
52 #endif
53 
54 #ifndef TYPE_IP_COUNTER
55 #define TYPE_IP_COUNTER         13
56 #endif
57 
58 #ifndef TYPE_TCP_FLOW_COUNTER
59 #define TYPE_TCP_FLOW_COUNTER   14
60 #endif
61 
62 #ifndef TYPE_DSM_COLOR_HDLC_POS
63 #define TYPE_DSM_COLOR_HDLC_POS 15
64 #endif
65 
66 #ifndef TYPE_DSM_COLOR_ETH
67 #define TYPE_DSM_COLOR_ETH      16
68 #endif
69 
70 #ifndef TYPE_COLOR_MC_HDLC_POS
71 #define TYPE_COLOR_MC_HDLC_POS  17
72 #endif
73 
74 #ifndef TYPE_AAL2
75 #define TYPE_AAL2               18
76 #endif
77 
78 #ifndef TYPE_COLOR_HASH_POS
79 #define TYPE_COLOR_HASH_POS     19
80 #endif
81 
82 #ifndef TYPE_COLOR_HASH_ETH
83 #define TYPE_COLOR_HASH_ETH     20
84 #endif
85 
86 #ifndef TYPE_INFINIBAND
87 #define TYPE_INFINIBAND         21
88 #endif
89 
90 #ifndef TYPE_IPV4
91 #define TYPE_IPV4               22
92 #endif
93 
94 #ifndef TYPE_IPV6
95 #define TYPE_IPV6               23
96 #endif
97 
98 #ifndef TYPE_RAW_LINK
99 #define TYPE_RAW_LINK           24
100 #endif
101 
102 #ifndef TYPE_INFINIBAND_LINK
103 #define TYPE_INFINIBAND_LINK    25
104 #endif
105 
106 
107 
108 #ifndef TYPE_PAD
109 #define TYPE_PAD                48
110 #endif
111