aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kelsey <nickk@silicondust.com>2020-03-20 14:18:01 -0700
committerNick Kelsey <nickk@silicondust.com>2020-03-20 14:18:01 -0700
commitec3dbffc06847df1591c63d40584b17ec5fe0b72 (patch)
tree73aa90c797e92ff1af58fe7b46a880814a9f72ef
parent1547215cc05aee5932ac39dd5c069966ebeb3c41 (diff)
add linktype for ATSC ALP link protocol
-rw-r--r--pcap-common.c7
-rw-r--r--pcap/dlt.h7
2 files changed, 12 insertions, 2 deletions
diff --git a/pcap-common.c b/pcap-common.c
index d34b8b93..50be598f 100644
--- a/pcap-common.c
+++ b/pcap-common.c
@@ -1186,7 +1186,12 @@
*/
#define LINKTYPE_USB_2_0 288
-#define LINKTYPE_MATCHING_MAX 288 /* highest value in the "matching" range */
+/*
+ * ATSC Link-Layer Protocol (A/330) packets.
+ */
+#define LINKTYPE_ATSC_ALP 289
+
+#define LINKTYPE_MATCHING_MAX 289 /* highest value in the "matching" range */
/*
* The DLT_ and LINKTYPE_ values in the "matching" range should be the
diff --git a/pcap/dlt.h b/pcap/dlt.h
index f822bc79..ee657284 100644
--- a/pcap/dlt.h
+++ b/pcap/dlt.h
@@ -1473,6 +1473,11 @@
#define DLT_USB_2_0 288
/*
+ * ATSC Link-Layer Protocol (A/330) packets.
+ */
+#define DLT_ATSC_ALP 289
+
+/*
* In case the code that includes this file (directly or indirectly)
* has also included OS files that happen to define DLT_MATCHING_MAX,
* with a different value (perhaps because that OS hasn't picked up
@@ -1482,7 +1487,7 @@
#ifdef DLT_MATCHING_MAX
#undef DLT_MATCHING_MAX
#endif
-#define DLT_MATCHING_MAX 288 /* highest value in the "matching" range */
+#define DLT_MATCHING_MAX 289 /* highest value in the "matching" range */
/*
* DLT and savefile link type values are split into a class and