|
18 | 18 | class LinkType(IntEnum): |
19 | 19 | """[LinkType] Link-Layer Header Type Values""" |
20 | 20 |
|
21 | | - #: [``DLT_NULL``] BSD loopback encapsulation; the link layer header is a 4-byte |
22 | | - #: field, in host byte order, containing a value of 2 for IPv4 packets, a value |
23 | | - #: of either 24, 28, or 30 for IPv6 packets, a value of 7 for OSI packets, or a |
24 | | - #: value of 23 for IPX packets. All of the IPv6 values correspond to IPv6 |
25 | | - #: packets; code reading files should check for all of them. Note that ``host |
26 | | - #: byte order`` is the byte order of the machine on that the packets are |
27 | | - #: captured; if a live capture is being done, ``host byte order`` is the byte |
28 | | - #: order of the machine capturing the packets, but if a ``savefile`` is being |
29 | | - #: read, the byte order is not necessarily that of the machine reading the |
30 | | - #: capture file. |
| 21 | + #: [``DLT_NULL``] BSD loopback encapsulation. |
31 | 22 | NULL = 0 |
32 | 23 |
|
33 | 24 | #: [``DLT_EN10MB``] IEEE 802.3 Ethernet (10Mb, 100Mb, 1000Mb, and up); the 10MB |
@@ -112,11 +103,7 @@ class LinkType(IntEnum): |
112 | 103 | #: without an FCS at the end of the frame. |
113 | 104 | FRELAY = 107 |
114 | 105 |
|
115 | | - #: [``DLT_LOOP``] OpenBSD loopback encapsulation; the link-layer header is a |
116 | | - #: 4-byte field, in network byte order, containing a value of 2 for IPv4 |
117 | | - #: packets, a value of either 24, 28, or 30 for IPv6 packets, a value of 7 for |
118 | | - #: OSI packets, or a value of 23 for IPX packets. All of the IPv6 values |
119 | | - #: correspond to IPv6 packets; code reading files should check for all of them. |
| 106 | + #: [``DLT_LOOP``] OpenBSD loopback encapsulation. |
120 | 107 | LOOP = 108 |
121 | 108 |
|
122 | 109 | #: [``DLT_ENC``] Encapsulated packets for IPsec. |
@@ -247,8 +234,7 @@ class LinkType(IntEnum): |
247 | 234 |
|
248 | 235 | #: [``DLT_LINUX_IRDA``] Linux-IrDA packets, with a LINKTYPE\_LINUX\_IRDA |
249 | 236 | #: header, with the payload for IrDA frames beginning with by the IrLAP header |
250 | | - #: as defined by IrDA Data Specifications, including the IrDA Link Access |
251 | | - #: Protocol specification. |
| 237 | + #: as defined by the IrDA Link Access Protocol specification. |
252 | 238 | LINUX_IRDA = 144 |
253 | 239 |
|
254 | 240 | #: [``DLT_IBM_SP``] IBM SP switch. |
@@ -663,15 +649,16 @@ class LinkType(IntEnum): |
663 | 649 | NG40 = 244 |
664 | 650 |
|
665 | 651 | #: [``DLT_NFC_LLCP``] Pseudo-header for NFC LLCP packet captures, followed by |
666 | | - #: frame data for the LLCP Protocol as specified by NFCForum-TS-LLCP\_1.1. |
| 652 | + #: frame data for the LLCP Protocol as specified by the Logical Link Control |
| 653 | + #: Protocol Technical Specification. |
667 | 654 | NFC_LLCP = 245 |
668 | 655 |
|
669 | 656 | #: Packet filter state syncing. |
670 | 657 | PFSYNC = 246 |
671 | 658 |
|
672 | 659 | #: [``DLT_INFINIBAND``] Raw InfiniBand frames, starting with the Local Routing |
673 | 660 | #: Header, as specified in Chapter 5 "Data packet format" of InfiniBand™ |
674 | | - #: Architectural Specification Release 1.2.1 Volume 1 - General Specifications. |
| 661 | + #: Architecture Specification Release 1.2.1 Volume 1 - General Specifications. |
675 | 662 | INFINIBAND = 247 |
676 | 663 |
|
677 | 664 | #: [``DLT_SCTP``] SCTP packets, as defined by RFC 4960, with no lower-level |
@@ -857,8 +844,8 @@ class LinkType(IntEnum): |
857 | 844 | #: header. |
858 | 845 | ETW = 290 |
859 | 846 |
|
860 | | - #: [``DLT_NETANALYZER_NG``] Hilscher Gesellschaft fuer Systemautomation mbH |
861 | | - #: netANALYZER NG hardware and software (specification). |
| 847 | + #: [``DLT_NETANALYZER_NG``] Reserved for Hilscher Gesellschaft fuer |
| 848 | + #: Systemautomation mbH netANALYZER NG hardware and software. |
862 | 849 | NETANALYZER_NG = 291 |
863 | 850 |
|
864 | 851 | #: [``DLT_ZBOSS_NCP``] Serial NCP (Network Co-Processor) protocol for Zigbee |
@@ -900,6 +887,13 @@ class LinkType(IntEnum): |
900 | 887 | #: format specified by the PCAP format for MDB specification. |
901 | 888 | MDB = 300 |
902 | 889 |
|
| 890 | + #: [``DLT_DECT_NR``] DECT-2020 New Radio (NR) MAC layer specified in ETSI TS |
| 891 | + #: 103 636-4. The Physical Header Field is always encoded using 80 bits (10 |
| 892 | + #: bytes). Broadcast transmissions using 40 bits (5 bytes) is padded with 40 |
| 893 | + #: zero bits (5 bytes). When padding is used the Receiver Identity value 0x0000 |
| 894 | + #: (reserved address) is used to detect broadcast transmissions. |
| 895 | + DECT_NR = 301 |
| 896 | + |
903 | 897 | @staticmethod |
904 | 898 | def get(key: 'int | str', default: 'int' = -1) -> 'LinkType': |
905 | 899 | """Backport support for original codes. |
|
0 commit comments