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