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 * @(#) $Header: /tcpdump/master/libpcap/pcap-dag.h,v 1.7 2008-04-04 19:37:45 guy Exp $ (LBL) 11 */ 12 13pcap_t *dag_create(const char *, char *, int *); 14int dag_findalldevs(pcap_if_t **devlistp, char *errbuf); 15 16#ifndef TYPE_AAL5 17#define TYPE_AAL5 4 18#endif 19 20#ifndef TYPE_MC_HDLC 21#define TYPE_MC_HDLC 5 22#endif 23 24#ifndef TYPE_MC_RAW 25#define TYPE_MC_RAW 6 26#endif 27 28#ifndef TYPE_MC_ATM 29#define TYPE_MC_ATM 7 30#endif 31 32#ifndef TYPE_MC_RAW_CHANNEL 33#define TYPE_MC_RAW_CHANNEL 8 34#endif 35 36#ifndef TYPE_MC_AAL5 37#define TYPE_MC_AAL5 9 38#endif 39 40#ifndef TYPE_COLOR_HDLC_POS 41#define TYPE_COLOR_HDLC_POS 10 42#endif 43 44#ifndef TYPE_COLOR_ETH 45#define TYPE_COLOR_ETH 11 46#endif 47 48#ifndef TYPE_MC_AAL2 49#define TYPE_MC_AAL2 12 50#endif 51 52#ifndef TYPE_IP_COUNTER 53#define TYPE_IP_COUNTER 13 54#endif 55 56#ifndef TYPE_TCP_FLOW_COUNTER 57#define TYPE_TCP_FLOW_COUNTER 14 58#endif 59 60#ifndef TYPE_DSM_COLOR_HDLC_POS 61#define TYPE_DSM_COLOR_HDLC_POS 15 62#endif 63 64#ifndef TYPE_DSM_COLOR_ETH 65#define TYPE_DSM_COLOR_ETH 16 66#endif 67 68#ifndef TYPE_COLOR_MC_HDLC_POS 69#define TYPE_COLOR_MC_HDLC_POS 17 70#endif 71 72#ifndef TYPE_AAL2 73#define TYPE_AAL2 18 74#endif 75 76#ifndef TYPE_COLOR_HASH_POS 77#define TYPE_COLOR_HASH_POS 19 78#endif 79 80#ifndef TYPE_COLOR_HASH_ETH 81#define TYPE_COLOR_HASH_ETH 20 82#endif 83 84#ifndef TYPE_INFINIBAND 85#define TYPE_INFINIBAND 21 86#endif 87 88#ifndef TYPE_IPV4 89#define TYPE_IPV4 22 90#endif 91 92#ifndef TYPE_IPV6 93#define TYPE_IPV6 23 94#endif 95 96#ifndef TYPE_RAW_LINK 97#define TYPE_RAW_LINK 24 98#endif 99 100#ifndef TYPE_INFINIBAND_LINK 101#define TYPE_INFINIBAND_LINK 25 102#endif 103 104 105 106#ifndef TYPE_PAD 107#define TYPE_PAD 48 108#endif 109