Skip to content

Commit 8c4bc03

Browse files
committed
Merge additions from libpcap-1.10.6
1 parent 71959e8 commit 8c4bc03

File tree

1 file changed

+102
-4
lines changed

1 file changed

+102
-4
lines changed

sys/net/dlt.h

Lines changed: 102 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dlt.h,v 1.25 2024/09/02 15:34:08 christos Exp $ */
1+
/* $NetBSD: dlt.h,v 1.26 2026/03/18 21:50:46 christos Exp $ */
22

33
/*-
44
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -78,7 +78,7 @@
7878
#define DLT_PPP 9 /* Point-to-point Protocol */
7979
#define DLT_FDDI 10 /* FDDI */
8080

81-
/*
81+
/*
8282
* In case the code that includes this file (directly or indirectly)
8383
* has also included OS files that happen to define DLT_LOW_MATCHING_MAX,
8484
* with a different value (perhaps because that OS hasn't picked up
@@ -392,7 +392,7 @@
392392
* 121 was reserved for Siemens HiPath HDLC on 2002-01-25, as
393393
* requested by Tomas Kukosa.
394394
*
395-
* On 2004-02-25, a FreeBSD checkin to sys/net/bpf.h was made that
395+
* On 2004-02-25, a FreeBSD check in to sys/net/bpf.h was made that
396396
* assigned 121 as DLT_PFSYNC. In current versions, its libpcap
397397
* does DLT_ <-> LINKTYPE_ mapping, mapping DLT_PFSYNC to a
398398
* LINKTYPE_PFSYNC value of 246, so it should write out DLT_PFSYNC
@@ -1572,6 +1572,8 @@
15721572

15731573
/*
15741574
* USB 2.0, 1.1, and 1.0 packets as transmitted over the cable.
1575+
* Deprecated in favor of speed specific DLTs: DLT_USB_2_0_LOW_SPEED,
1576+
* DLT_USB_2_0_FULL_SPEED and DLT_USB_2_0_HIGH_SPEED.
15751577
*/
15761578
#define DLT_USB_2_0 288
15771579

@@ -1580,6 +1582,102 @@
15801582
*/
15811583
#define DLT_ATSC_ALP 289
15821584

1585+
/*
1586+
* Event Tracing for Windows messages.
1587+
*/
1588+
#define DLT_ETW 290
1589+
1590+
/*
1591+
* Hilscher Gesellschaft fuer Systemautomation mbH
1592+
* netANALYZER NG hardware and software.
1593+
*
1594+
* The specification for this footer can be found at:
1595+
* https://kb.hilscher.com/x/brDJBw
1596+
*
1597+
* Requested by Jan Adam <jadam@hilscher.com>
1598+
*/
1599+
#define DLT_NETANALYZER_NG 291
1600+
1601+
/*
1602+
* Serial NCP (Network Co-Processor) protocol for Zigbee stack ZBOSS
1603+
* by DSR, https://dsr-iot.com/downloads
1604+
*/
1605+
#define DLT_ZBOSS_NCP 292
1606+
1607+
/*
1608+
* USB 2.0, 1.1, and 1.0 packets as transmitted over the cable.
1609+
*/
1610+
#define DLT_USB_2_0_LOW_SPEED 293
1611+
#define DLT_USB_2_0_FULL_SPEED 294
1612+
#define DLT_USB_2_0_HIGH_SPEED 295
1613+
1614+
/*
1615+
* Auerswald Logger Protocol
1616+
* description is provided on
1617+
* https://github.com/Auerswald-GmbH/auerlog/blob/master/auerlog.txt
1618+
*/
1619+
#define DLT_AUERSWALD_LOG 296
1620+
1621+
/*
1622+
* Z-Wave packets with a TAP meta-data header
1623+
* https://gitlab.com/exegin/zwave-g9959-tap
1624+
* requested on tcpdump-workers@
1625+
*/
1626+
#define DLT_ZWAVE_TAP 297
1627+
1628+
/*
1629+
* Silicon Labs debug channel protocol:
1630+
*/
1631+
#define DLT_SILABS_DEBUG_CHANNEL 298
1632+
1633+
/*
1634+
* Ultra-wideband (UWB) controller interface protocol (UCI).
1635+
* requested by Henri Chataing <henrichataing@google.com>
1636+
*/
1637+
#define DLT_FIRA_UCI 299
1638+
1639+
/*
1640+
* MDB (Multi-Drop Bus) protocol between a vending machine controller and
1641+
* peripherals inside the vending machine. See
1642+
*
1643+
* https://www.kaiser.cx/pcap-mdb.html
1644+
*
1645+
* for the specification.
1646+
*
1647+
* Requested by Martin Kaiser <martin@kaiser.cx>.
1648+
*/
1649+
#define DLT_MDB 300
1650+
1651+
/*
1652+
* DECT-2020 New Radio (NR) - ETSI TS 103 636.
1653+
* Requested by Stig Bjorlykke <stig@bjorlykke.org>.
1654+
*/
1655+
#define DLT_DECT_NR 301
1656+
1657+
/*
1658+
* Request serialization protocol used by edk2 firmware to communicate between
1659+
* normal mode and management mode ('MM' for short).
1660+
*
1661+
* The qemu uefi variable store implementation reuses the request serialization
1662+
* protocol for firmware <-> qemu communication.
1663+
*/
1664+
#define DLT_EDK2_MM 302
1665+
1666+
/*
1667+
* Unstructured data for manual debugging only. In other words, this DLT is
1668+
* suitable for expert interpretation of hex dumps, and that's it. Do not use
1669+
* this DLT for any other purpose. For any automated (identification, saving,
1670+
* loading, filtering, decoding) processing please either use another existing
1671+
* DLT that fits the use case or document, assign and implement a new, properly
1672+
* structured DLT.
1673+
*
1674+
* In this DLT do not assume any specification, any structure, any format, any
1675+
* version, any header, any payload, any byte order, any implementation, any
1676+
* software/firmware/hardware particulars, any source, any destination, any
1677+
* direction, any protocol or any data integrity/consistency whatsoever.
1678+
*/
1679+
#define DLT_DEBUG_ONLY 303
1680+
15831681
/*
15841682
* In case the code that includes this file (directly or indirectly)
15851683
* has also included OS files that happen to define DLT_HIGH_MATCHING_MAX,
@@ -1590,7 +1688,7 @@
15901688
#ifdef DLT_HIGH_MATCHING_MAX
15911689
#undef DLT_HIGH_MATCHING_MAX
15921690
#endif
1593-
#define DLT_HIGH_MATCHING_MAX 289 /* highest value in the "matching" range */
1691+
#define DLT_HIGH_MATCHING_MAX 303 /* highest value in the "matching" range */
15941692

15951693
/*
15961694
* DLT and savefile link type values are split into a class and

0 commit comments

Comments
 (0)