]> The Tcpdump Group git mirrors - libpcap/commitdiff
Move the private-to-DAG-cards definitions to pcap-dag.c.
authorGuy Harris <[email protected]>
Thu, 30 Jun 2016 03:18:37 +0000 (20:18 -0700)
committerGuy Harris <[email protected]>
Thu, 30 Jun 2016 03:18:37 +0000 (20:18 -0700)
Have pcap-dag.h just declare the functions called from pcap.c, as is the
case with the header files for other pcap modules.

pcap-dag.c
pcap-dag.h

index 77c03b363423920af8f714e80406ef6d6af96ff1..50e0cfc5ca79e17a35c2e3c64be437d54fa2c4e8 100644 (file)
@@ -53,6 +53,99 @@ struct rtentry;              /* declarations in <net/if.h> */
 #define DAG_MAX_BOARDS 32
 #endif
 
 #define DAG_MAX_BOARDS 32
 #endif
 
+
+#ifndef TYPE_AAL5
+#define TYPE_AAL5               4
+#endif
+
+#ifndef TYPE_MC_HDLC
+#define TYPE_MC_HDLC            5
+#endif
+
+#ifndef TYPE_MC_RAW
+#define TYPE_MC_RAW             6
+#endif
+
+#ifndef TYPE_MC_ATM
+#define TYPE_MC_ATM             7
+#endif
+
+#ifndef TYPE_MC_RAW_CHANNEL
+#define TYPE_MC_RAW_CHANNEL     8
+#endif
+
+#ifndef TYPE_MC_AAL5
+#define TYPE_MC_AAL5            9
+#endif
+
+#ifndef TYPE_COLOR_HDLC_POS
+#define TYPE_COLOR_HDLC_POS     10
+#endif
+
+#ifndef TYPE_COLOR_ETH
+#define TYPE_COLOR_ETH          11
+#endif
+
+#ifndef TYPE_MC_AAL2
+#define TYPE_MC_AAL2            12
+#endif
+
+#ifndef TYPE_IP_COUNTER
+#define TYPE_IP_COUNTER         13
+#endif
+
+#ifndef TYPE_TCP_FLOW_COUNTER
+#define TYPE_TCP_FLOW_COUNTER   14
+#endif
+
+#ifndef TYPE_DSM_COLOR_HDLC_POS
+#define TYPE_DSM_COLOR_HDLC_POS 15
+#endif
+
+#ifndef TYPE_DSM_COLOR_ETH
+#define TYPE_DSM_COLOR_ETH      16
+#endif
+
+#ifndef TYPE_COLOR_MC_HDLC_POS
+#define TYPE_COLOR_MC_HDLC_POS  17
+#endif
+
+#ifndef TYPE_AAL2
+#define TYPE_AAL2               18
+#endif
+
+#ifndef TYPE_COLOR_HASH_POS
+#define TYPE_COLOR_HASH_POS     19
+#endif
+
+#ifndef TYPE_COLOR_HASH_ETH
+#define TYPE_COLOR_HASH_ETH     20
+#endif
+
+#ifndef TYPE_INFINIBAND
+#define TYPE_INFINIBAND         21
+#endif
+
+#ifndef TYPE_IPV4
+#define TYPE_IPV4               22
+#endif
+
+#ifndef TYPE_IPV6
+#define TYPE_IPV6               23
+#endif
+
+#ifndef TYPE_RAW_LINK
+#define TYPE_RAW_LINK           24
+#endif
+
+#ifndef TYPE_INFINIBAND_LINK
+#define TYPE_INFINIBAND_LINK    25
+#endif
+
+#ifndef TYPE_PAD
+#define TYPE_PAD                48
+#endif
+
 #define ATM_CELL_SIZE          52
 #define ATM_HDR_SIZE           4
 
 #define ATM_CELL_SIZE          52
 #define ATM_HDR_SIZE           4
 
index 68520dc8214d423ea4a374205e9a3161c13c7da0..dfeccd8b71169e8c75221bf0043b5ae2c1782164 100644 (file)
 
 pcap_t *dag_create(const char *, char *, int *);
 int dag_findalldevs(pcap_if_t **devlistp, char *errbuf);
 
 pcap_t *dag_create(const char *, char *, int *);
 int dag_findalldevs(pcap_if_t **devlistp, char *errbuf);
-
-#ifndef TYPE_AAL5
-#define TYPE_AAL5               4
-#endif
-
-#ifndef TYPE_MC_HDLC
-#define TYPE_MC_HDLC            5
-#endif
-
-#ifndef TYPE_MC_RAW
-#define TYPE_MC_RAW             6
-#endif
-
-#ifndef TYPE_MC_ATM
-#define TYPE_MC_ATM             7
-#endif
-
-#ifndef TYPE_MC_RAW_CHANNEL
-#define TYPE_MC_RAW_CHANNEL     8
-#endif
-
-#ifndef TYPE_MC_AAL5
-#define TYPE_MC_AAL5            9
-#endif
-
-#ifndef TYPE_COLOR_HDLC_POS
-#define TYPE_COLOR_HDLC_POS     10
-#endif
-
-#ifndef TYPE_COLOR_ETH
-#define TYPE_COLOR_ETH          11
-#endif
-
-#ifndef TYPE_MC_AAL2
-#define TYPE_MC_AAL2            12
-#endif
-
-#ifndef TYPE_IP_COUNTER
-#define TYPE_IP_COUNTER         13
-#endif
-
-#ifndef TYPE_TCP_FLOW_COUNTER
-#define TYPE_TCP_FLOW_COUNTER   14
-#endif
-
-#ifndef TYPE_DSM_COLOR_HDLC_POS
-#define TYPE_DSM_COLOR_HDLC_POS 15
-#endif
-
-#ifndef TYPE_DSM_COLOR_ETH
-#define TYPE_DSM_COLOR_ETH      16
-#endif
-
-#ifndef TYPE_COLOR_MC_HDLC_POS
-#define TYPE_COLOR_MC_HDLC_POS  17
-#endif
-
-#ifndef TYPE_AAL2
-#define TYPE_AAL2               18
-#endif
-
-#ifndef TYPE_COLOR_HASH_POS
-#define TYPE_COLOR_HASH_POS     19
-#endif
-
-#ifndef TYPE_COLOR_HASH_ETH
-#define TYPE_COLOR_HASH_ETH     20
-#endif
-
-#ifndef TYPE_INFINIBAND
-#define TYPE_INFINIBAND         21
-#endif
-
-#ifndef TYPE_IPV4
-#define TYPE_IPV4               22
-#endif
-
-#ifndef TYPE_IPV6
-#define TYPE_IPV6               23
-#endif
-
-#ifndef TYPE_RAW_LINK
-#define TYPE_RAW_LINK           24
-#endif
-
-#ifndef TYPE_INFINIBAND_LINK
-#define TYPE_INFINIBAND_LINK    25
-#endif
-
-
-
-#ifndef TYPE_PAD
-#define TYPE_PAD                48
-#endif