1 /* $NetBSD: pcap-dag.h,v 1.2 2014/11/19 19:33:30 christos Exp $ */
4 * pcap-dag.c: Packet capture interface for Endace DAG card.
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.
10 * Author: Richard Littin, Sean Irvine ({richard,sean}@reeltwo.com)
13 pcap_t
*dag_create(const char *, char *, int *);
14 int dag_findalldevs(pcap_if_t
**devlistp
, char *errbuf
);
21 #define TYPE_MC_HDLC 5
32 #ifndef TYPE_MC_RAW_CHANNEL
33 #define TYPE_MC_RAW_CHANNEL 8
37 #define TYPE_MC_AAL5 9
40 #ifndef TYPE_COLOR_HDLC_POS
41 #define TYPE_COLOR_HDLC_POS 10
44 #ifndef TYPE_COLOR_ETH
45 #define TYPE_COLOR_ETH 11
49 #define TYPE_MC_AAL2 12
52 #ifndef TYPE_IP_COUNTER
53 #define TYPE_IP_COUNTER 13
56 #ifndef TYPE_TCP_FLOW_COUNTER
57 #define TYPE_TCP_FLOW_COUNTER 14
60 #ifndef TYPE_DSM_COLOR_HDLC_POS
61 #define TYPE_DSM_COLOR_HDLC_POS 15
64 #ifndef TYPE_DSM_COLOR_ETH
65 #define TYPE_DSM_COLOR_ETH 16
68 #ifndef TYPE_COLOR_MC_HDLC_POS
69 #define TYPE_COLOR_MC_HDLC_POS 17
76 #ifndef TYPE_COLOR_HASH_POS
77 #define TYPE_COLOR_HASH_POS 19
80 #ifndef TYPE_COLOR_HASH_ETH
81 #define TYPE_COLOR_HASH_ETH 20
84 #ifndef TYPE_INFINIBAND
85 #define TYPE_INFINIBAND 21
97 #define TYPE_RAW_LINK 24
100 #ifndef TYPE_INFINIBAND_LINK
101 #define TYPE_INFINIBAND_LINK 25