pcap-dag.h revision 190225
150276Speter/* 250276Speter * pcap-dag.c: Packet capture interface for Endace DAG card. 3184989Srafan * 450276Speter * The functionality of this code attempts to mimic that of pcap-linux as much 550276Speter * as possible. This code is only needed when compiling in the DAG card code 650276Speter * at the same time as another type of device. 750276Speter * 850276Speter * Author: Richard Littin, Sean Irvine ({richard,sean}@reeltwo.com) 950276Speter * 1050276Speter * @(#) $Header: /tcpdump/master/libpcap/pcap-dag.h,v 1.4.2.3 2008-04-04 19:39:06 guy Exp $ (LBL) 1150276Speter */ 1250276Speter 1350276Speterpcap_t *dag_create(const char *, char *); 1450276Speterint dag_platform_finddevs(pcap_if_t **devlistp, char *errbuf); 1550276Speter 1650276Speter#ifndef TYPE_AAL5 1750276Speter#define TYPE_AAL5 4 1850276Speter#endif 1950276Speter 2050276Speter#ifndef TYPE_MC_HDLC 2150276Speter#define TYPE_MC_HDLC 5 2250276Speter#endif 2350276Speter 2450276Speter#ifndef TYPE_MC_RAW 2550276Speter#define TYPE_MC_RAW 6 2650276Speter#endif 2750276Speter 2850276Speter#ifndef TYPE_MC_ATM 2950276Speter#define TYPE_MC_ATM 7 30184989Srafan#endif 3150276Speter 3250276Speter#ifndef TYPE_MC_RAW_CHANNEL 3350276Speter#define TYPE_MC_RAW_CHANNEL 8 3466963Speter#endif 3550276Speter 3650276Speter#ifndef TYPE_MC_AAL5 3750276Speter#define TYPE_MC_AAL5 9 3850276Speter#endif 3950276Speter 4050276Speter#ifndef TYPE_COLOR_HDLC_POS 4150276Speter#define TYPE_COLOR_HDLC_POS 10 42174993Srafan#endif 43174993Srafan 44174993Srafan#ifndef TYPE_COLOR_ETH 4550276Speter#define TYPE_COLOR_ETH 11 46166124Srafan#endif 47166124Srafan 48166124Srafan#ifndef TYPE_MC_AAL2 49174993Srafan#define TYPE_MC_AAL2 12 50174993Srafan#endif 51174993Srafan 52174993Srafan#ifndef TYPE_IP_COUNTER 53174993Srafan#define TYPE_IP_COUNTER 13 54174993Srafan#endif 55166124Srafan 56166124Srafan#ifndef TYPE_TCP_FLOW_COUNTER 57166124Srafan#define TYPE_TCP_FLOW_COUNTER 14 58166124Srafan#endif 59174993Srafan 60174993Srafan#ifndef TYPE_DSM_COLOR_HDLC_POS 61174993Srafan#define TYPE_DSM_COLOR_HDLC_POS 15 62174993Srafan#endif 6350276Speter 6450276Speter#ifndef TYPE_DSM_COLOR_ETH 6550276Speter#define TYPE_DSM_COLOR_ETH 16 6650276Speter#endif 6750276Speter 6850276Speter#ifndef TYPE_COLOR_MC_HDLC_POS 69166124Srafan#define TYPE_COLOR_MC_HDLC_POS 17 70166124Srafan#endif 7150276Speter 7250276Speter#ifndef TYPE_AAL2 7350276Speter#define TYPE_AAL2 18 7450276Speter#endif 7550276Speter 76166124Srafan#ifndef TYPE_COLOR_HASH_POS 77184989Srafan#define TYPE_COLOR_HASH_POS 19 78184989Srafan#endif 79184989Srafan 80184989Srafan#ifndef TYPE_COLOR_HASH_ETH 81184989Srafan#define TYPE_COLOR_HASH_ETH 20 82184989Srafan#endif 83184989Srafan 84184989Srafan#ifndef TYPE_INFINIBAND 85184989Srafan#define TYPE_INFINIBAND 21 86184989Srafan#endif 87184989Srafan 88184989Srafan#ifndef TYPE_IPV4 89184989Srafan#define TYPE_IPV4 22 90184989Srafan#endif 91174993Srafan 92174993Srafan#ifndef TYPE_IPV6 93184989Srafan#define TYPE_IPV6 23 94174993Srafan#endif 9550276Speter 9650276Speter 97166124Srafan 9850276Speter#ifndef TYPE_PAD 99166124Srafan#define TYPE_PAD 48 10050276Speter#endif 101166124Srafan