Skip to content

Commit db243b3

Browse files
Bumped version to 1.0.2.post9
Updated vendor constant enumerations at Sat Sep 2 10:06:57 UTC 2023. The following files have been changed: pcapkit/const/reg/ethertype.py
1 parent 1b7e991 commit db243b3

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

pcapkit/__init__.py

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

126126
#: version number
127-
__version__ = '1.0.2.post8'
127+
__version__ = '1.0.2.post9'

pcapkit/const/reg/ethertype.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@
1818
class EtherType(IntEnum):
1919
"""[EtherType] Ethertype IEEE 802 Numbers"""
2020

21-
#: XEROX PUP (see 0A00) [Boggs, D., J. Shoch, E. Taft, and R. Metcalfe, "PUP:
22-
#: An Internetwork Architecture", XEROX Palo Alto Research Center, CSL-79-10,
23-
#: July 1979; also in IEEE Transactions on Communication, Volume COM-28, Number
24-
#: 4, April 1980.][Neil Sembower]
25-
XEROX_PUP = 0x0200
21+
#: Formerly XEROX PUP. Invalid as an Ethertype since 1983. Use 0x0A00. [Boggs,
22+
#: D., J. Shoch, E. Taft, and R. Metcalfe, "PUP: An Internetwork Architecture",
23+
#: XEROX Palo Alto Research Center, CSL-79-10, July 1979; also in IEEE
24+
#: Transactions on Communication, Volume COM-28, Number 4, April 1980.][Neil
25+
#: Sembower]
26+
Formerly_XEROX_PUP_Invalid_as_an_Ethertype_since_1983_Use_0x0A00 = 0x0200
2627

27-
#: PUP Addr Trans (see 0A01) [Neil Sembower]
28-
PUP_Addr_Trans_0x0201 = 0x0201
28+
#: Formerly PUP Addr Trans. Invalid as an Ethertype since 1983. Use 0x0A01.
29+
#: [Neil Sembower]
30+
Formerly_PUP_Addr_Trans_Invalid_as_an_Ethertype_since_1983_Use_0x0A01 = 0x0201
2931

30-
#: Nixdorf [Neil Sembower]
31-
Nixdorf = 0x0400
32+
#: Old Nixdorf private protocol. Invalid as an Ethertype since 1983. [Neil
33+
#: Sembower]
34+
Old_Nixdorf_private_protocol_Invalid_as_an_Ethertype_since_1983 = 0x0400
3235

3336
#: XEROX NS IDP ["The Ethernet, A Local Area Network: Data Link Layer and
3437
#: Physical Layer Specification", AA-K759B-TK, Digital Equipment Corporation,
@@ -84,7 +87,7 @@ class EtherType(IntEnum):
8487
Xerox_IEEE802_3_PUP = 0x0A00
8588

8689
#: PUP Addr Trans [Neil Sembower]
87-
PUP_Addr_Trans_0x0A01 = 0x0A01
90+
PUP_Addr_Trans = 0x0A01
8891

8992
#: Banyan VINES [Neil Sembower]
9093
Banyan_VINES = 0x0BAD
@@ -507,8 +510,8 @@ class EtherType(IntEnum):
507510
#: processor for processing. [:rfc:`8157`]
508511
The_Ethertype_will_be_used_to_identify_a_Channel_in_which_control_messages_are_encapsulated_as_payload_of_GRE_packets_When_a_GRE_packet_tagged_with_the_Ethertype_is_received_the_payload_will_be_handed_to_the_network_processor_for_processing = 0xB7EA
509512

510-
#: BBN VITAL-LanBridge cache [Neil Sembower]
511-
BBN_VITAL_LanBridge_cache = 0xFF00
513+
#: BBN VITAL-LanBridge cache private protocol. [Neil Sembower]
514+
BBN_VITAL_LanBridge_cache_private_protocol = 0xFF00
512515

513516
#: Reserved [:rfc:`1701`]
514517
Reserved = 0xFFFF
@@ -540,11 +543,12 @@ def _missing_(cls, value: 'int') -> 'EtherType':
540543
if not (isinstance(value, int) and 0x0000 <= value <= 0xFFFF):
541544
raise ValueError('%r is not a valid %s' % (value, cls.__name__))
542545
if 0x0000 <= value <= 0x05DC:
543-
#: IEEE802.3 Length Field [Neil Sembower]
546+
#: IEEE802.3 Length Field [IEEE Std 802.3]
544547
return extend_enum(cls, 'IEEE802_3_Length_Field_0x%s' % hex(value)[2:].upper().zfill(4), value)
545548
if 0x0101 <= value <= 0x01FF:
546-
#: Experimental [Neil Sembower]
547-
return extend_enum(cls, 'Experimental_0x%s' % hex(value)[2:].upper().zfill(4), value)
549+
#: Old Xerox Experimental values. Invalid as an Ethertype since 1983. [Neil
550+
#: Sembower]
551+
return extend_enum(cls, 'Old_Xerox_Experimental_values_Invalid_as_an_Ethertype_since_1983_0x%s' % hex(value)[2:].upper().zfill(4), value)
548552
if 0x0888 <= value <= 0x088A:
549553
#: Xyplex [Neil Sembower]
550554
return extend_enum(cls, 'Xyplex_0x%s' % hex(value)[2:].upper().zfill(4), value)
@@ -705,6 +709,6 @@ def _missing_(cls, value: 'int') -> 'EtherType':
705709
#: Invisible Software [Neil Sembower]
706710
return extend_enum(cls, 'Invisible_Software_0x%s' % hex(value)[2:].upper().zfill(4), value)
707711
if 0xFF00 <= value <= 0xFF0F:
708-
#: ISC Bunker Ramo [Neil Sembower]
709-
return extend_enum(cls, 'ISC_Bunker_Ramo_0x%s' % hex(value)[2:].upper().zfill(4), value)
712+
#: ISC Bunker Ramo private protocol. [Neil Sembower]
713+
return extend_enum(cls, 'ISC_Bunker_Ramo_private_protocol_0x%s' % hex(value)[2:].upper().zfill(4), value)
710714
return super()._missing_(value)

0 commit comments

Comments
 (0)