Skip to content

Commit 98c7406

Browse files
Bumped version to 1.3.1.post2
Updated vendor constant enumerations at Sat Jan 6 10:10:08 UTC 2024. The following files have been changed: pcapkit/const/reg/apptype.py pcapkit/const/reg/linktype.py
1 parent c970703 commit 98c7406

File tree

4 files changed

+35
-31
lines changed

4 files changed

+35
-31
lines changed

conda/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1
1+
0

pcapkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@
123123
]
124124

125125
#: version number
126-
__version__ = '1.3.1.post1'
126+
__version__ = '1.3.1.post2'

pcapkit/const/reg/apptype.py

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19186,6 +19186,12 @@ def __hash__(self) -> 'int':
1918619186
#: - [UDP] Matter Operational Discovery and Communi
1918719187
matter: 'AppType' = 5540, 'matter', TransportProtocol.get('tcp') | TransportProtocol.get('udp')
1918819188

19189+
#: [TCP] QF-Test License Server
19190+
qftest_licserve: 'AppType' = 5543, 'qftest-licserve', TransportProtocol.get('tcp')
19191+
19192+
#: [UDP] Reserved
19193+
reserved_5543: 'AppType' = 5543, 'reserved', TransportProtocol.get('udp')
19194+
1918919195
#: [TCP] Model Railway control using the CBUS message protocol
1919019196
cbus: 'AppType' = 5550, 'cbus', TransportProtocol.get('tcp')
1919119197

@@ -22456,13 +22462,9 @@ def __hash__(self) -> 'int':
2245622462
#: - [UDP] Gadu-Gadu
2245722463
gadugadu: 'AppType' = 8074, 'gadugadu', TransportProtocol.get('tcp') | TransportProtocol.get('udp')
2245822464

22459-
#: [TCP] Mles is a client-server data distribution protocol targeted to serve
22460-
#: as a lightweight and reliable distributed publish/subscribe database
22461-
#: service.
22462-
mles: 'AppType' = 8077, 'mles', TransportProtocol.get('tcp')
22463-
22464-
#: [UDP] Reserved
22465-
reserved_8077: 'AppType' = 8077, 'reserved', TransportProtocol.get('udp')
22465+
#: - [TCP] Reserved
22466+
#: - [UDP] Reserved
22467+
reserved_8077: 'AppType' = 8077, 'reserved', TransportProtocol.get('tcp') | TransportProtocol.get('udp')
2246622468

2246722469
#: - [TCP] HTTP Alternate (see port 80)
2246822470
#: - [UDP] HTTP Alternate (see port 80)
@@ -28921,6 +28923,11 @@ def __hash__(self) -> 'int':
2892128923
#: devices providing network interfaces.
2892228924
mist: 'AppType' = -1, 'mist', TransportProtocol.get('tcp')
2892328925

28926+
#: [TCP] Mles is a client-server data distribution protocol targeted to serve
28927+
#: as a lightweight and reliable distributed publish/subscribe database
28928+
#: service.
28929+
mles: 'AppType' = -1, 'mles', TransportProtocol.get('tcp')
28930+
2892428931
#: [TCP] Provides a client with access to the Mathematical Mesh, a user-focused
2892528932
#: PKI.
2892628933
mmm: 'AppType' = -1, 'mmm', TransportProtocol.get('tcp')
@@ -30671,7 +30678,10 @@ def _missing_(cls, value: 'int') -> 'AppType':
3067130678
if 5508 <= value <= 5539:
3067230679
#: [N/A] Unassigned
3067330680
return extend_enum(cls, 'unassigned_%d' % value, value, 'unassigned', TransportProtocol.get('undefined'))
30674-
if 5541 <= value <= 5549:
30681+
if 5541 <= value <= 5542:
30682+
#: [N/A] Unassigned
30683+
return extend_enum(cls, 'unassigned_%d' % value, value, 'unassigned', TransportProtocol.get('undefined'))
30684+
if 5544 <= value <= 5549:
3067530685
#: [N/A] Unassigned
3067630686
return extend_enum(cls, 'unassigned_%d' % value, value, 'unassigned', TransportProtocol.get('undefined'))
3067730687
if 5551 <= value <= 5552:

pcapkit/const/reg/linktype.py

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,7 @@
1818
class LinkType(IntEnum):
1919
"""[LinkType] Link-Layer Header Type Values"""
2020

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.
3122
NULL = 0
3223

3324
#: [``DLT_EN10MB``] IEEE 802.3 Ethernet (10Mb, 100Mb, 1000Mb, and up); the 10MB
@@ -112,11 +103,7 @@ class LinkType(IntEnum):
112103
#: without an FCS at the end of the frame.
113104
FRELAY = 107
114105

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.
120107
LOOP = 108
121108

122109
#: [``DLT_ENC``] Encapsulated packets for IPsec.
@@ -247,8 +234,7 @@ class LinkType(IntEnum):
247234

248235
#: [``DLT_LINUX_IRDA``] Linux-IrDA packets, with a LINKTYPE\_LINUX\_IRDA
249236
#: 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.
252238
LINUX_IRDA = 144
253239

254240
#: [``DLT_IBM_SP``] IBM SP switch.
@@ -663,15 +649,16 @@ class LinkType(IntEnum):
663649
NG40 = 244
664650

665651
#: [``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.
667654
NFC_LLCP = 245
668655

669656
#: Packet filter state syncing.
670657
PFSYNC = 246
671658

672659
#: [``DLT_INFINIBAND``] Raw InfiniBand frames, starting with the Local Routing
673660
#: 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.
675662
INFINIBAND = 247
676663

677664
#: [``DLT_SCTP``] SCTP packets, as defined by RFC 4960, with no lower-level
@@ -857,8 +844,8 @@ class LinkType(IntEnum):
857844
#: header.
858845
ETW = 290
859846

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.
862849
NETANALYZER_NG = 291
863850

864851
#: [``DLT_ZBOSS_NCP``] Serial NCP (Network Co-Processor) protocol for Zigbee
@@ -900,6 +887,13 @@ class LinkType(IntEnum):
900887
#: format specified by the PCAP format for MDB specification.
901888
MDB = 300
902889

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+
903897
@staticmethod
904898
def get(key: 'int | str', default: 'int' = -1) -> 'LinkType':
905899
"""Backport support for original codes.

0 commit comments

Comments
 (0)