Skip to content

Commit 9303de8

Browse files
committed
fix(vendor): render both IANA citation spellings as :rfc: roles (#1664)
IANA's CSV exports now spell a reference cell `[RFC 1072]; [RFC 6247]` where they wrote `[RFC1072][RFC6247]`. The crawlers matched only the old spelling, so Vendor Update's 1.5.0b10 and 1.5.0b11 bumps rewrote 73 const files and dropped 1147 of the 1432 `:rfc:` roles under pcapkit/const, leaving lists such as `[RFC 1072][; ][RFC 6247]`. - New `Vendor.split_references()` drops `;`/whitespace-only separator segments and spells `RFC 1072` as `RFC1072`; all 64 reference loops use it. - ESP cipher/integrity and TLS key label accept `[RFC 9395]`; FTP renders `[RFC 6384, Section 11]` as `:rfc:`6384#section-11``. - Regenerate the 73 files with `pcapkit-vendor`: 67 match c338013 byte for byte; AppType regains the roles 1.5.0b6 dropped from 670 lines when the port registry switched spelling first. New test_vendor_reference_formats_1664_unit.py feeds old and new cells through each crawler variant; 11 tests fail on origin/main, pass here.
1 parent 1024109 commit 9303de8

141 files changed

Lines changed: 2305 additions & 1924 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎pcapkit/const/arp/hardware.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class Hardware(EnumRegistry, IntEnum):
2121
"""[Hardware] Hardware Types [:rfc:`826`][:rfc:`5494`]"""
2222

23-
#: Reserved [RFC 5494]
23+
#: Reserved [:rfc:`5494`]
2424
Reserved_0 = 0
2525

2626
#: Ethernet (10Mb) [Jon Postel]
@@ -41,7 +41,7 @@ class Hardware(EnumRegistry, IntEnum):
4141
#: IEEE 802 Networks [Jon Postel]
4242
IEEE_802_Networks = 6
4343

44-
#: ARCNET [RFC 1201]
44+
#: ARCNET [:rfc:`1201`]
4545
ARCNET = 7
4646

4747
#: Hyperchannel [Jon Postel]
@@ -74,10 +74,10 @@ class Hardware(EnumRegistry, IntEnum):
7474
#: HDLC [Jon Postel]
7575
HDLC = 17
7676

77-
#: Fibre Channel [RFC 4338]
77+
#: Fibre Channel [:rfc:`4338`]
7878
Fibre_Channel = 18
7979

80-
#: Asynchronous Transmission Mode (ATM) [RFC 2225]
80+
#: Asynchronous Transmission Mode (ATM) [:rfc:`2225`]
8181
Asynchronous_Transmission_Mode_19 = 19
8282

8383
#: Serial Line [Jon Postel]
@@ -95,7 +95,7 @@ class Hardware(EnumRegistry, IntEnum):
9595
#: IEEE 1394.1995 [Myron Hattig]
9696
IEEE_1394_1995 = 24
9797

98-
#: MAPOS [Mitsuru Maruyama][; ][RFC 2176]
98+
#: MAPOS [Mitsuru Maruyama][:rfc:`2176`]
9999
MAPOS = 25
100100

101101
#: Twinaxial [Marion Pitts]
@@ -113,10 +113,10 @@ class Hardware(EnumRegistry, IntEnum):
113113
#: ARPSec [Jerome Etienne]
114114
ARPSec = 30
115115

116-
#: IPsec tunnel [RFC 3456]
116+
#: IPsec tunnel [:rfc:`3456`]
117117
IPsec_tunnel = 31
118118

119-
#: InfiniBand (TM) [RFC 4391]
119+
#: InfiniBand (TM) [:rfc:`4391`]
120120
InfiniBand = 32
121121

122122
#: TIA-102 Project 25 Common Air Interface (CAI) [Jeff Anderson,
@@ -130,7 +130,7 @@ class Hardware(EnumRegistry, IntEnum):
130130
#: Pure IP [Inaky Perez-Gonzalez]
131131
Pure_IP = 35
132132

133-
#: HW_EXP1 [RFC 5494]
133+
#: HW_EXP1 [:rfc:`5494`]
134134
HW_EXP1 = 36
135135

136136
#: HFI [Tseng-Hui Lin]
@@ -139,13 +139,13 @@ class Hardware(EnumRegistry, IntEnum):
139139
#: Unified Bus (UB) [Wei Pan]
140140
Unified_Bus = 38
141141

142-
#: HW_EXP2 [RFC 5494]
142+
#: HW_EXP2 [:rfc:`5494`]
143143
HW_EXP2 = 256
144144

145145
#: AEthernet [Geoffroy Gramaize]
146146
AEthernet = 257
147147

148-
#: Reserved [RFC 5494]
148+
#: Reserved [:rfc:`5494`]
149149
Reserved_65535 = 65535
150150

151151
@classmethod

‎pcapkit/const/arp/operation.py‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,37 @@
2020
class Operation(EnumRegistry, IntEnum):
2121
"""[Operation] Operation Codes [:rfc:`826`][:rfc:`5494`]"""
2222

23-
#: Reserved [RFC 5494]
23+
#: Reserved [:rfc:`5494`]
2424
Reserved_0 = 0
2525

26-
#: REQUEST [RFC 826][; ][RFC 5227]
26+
#: REQUEST [:rfc:`826`][:rfc:`5227`]
2727
REQUEST = 1
2828

29-
#: REPLY [RFC 826][; ][RFC 5227]
29+
#: REPLY [:rfc:`826`][:rfc:`5227`]
3030
REPLY = 2
3131

32-
#: request Reverse [RFC 903]
32+
#: request Reverse [:rfc:`903`]
3333
request_Reverse = 3
3434

35-
#: reply Reverse [RFC 903]
35+
#: reply Reverse [:rfc:`903`]
3636
reply_Reverse = 4
3737

38-
#: DRARP-Request [RFC 1931]
38+
#: DRARP-Request [:rfc:`1931`]
3939
DRARP_Request = 5
4040

41-
#: DRARP-Reply [RFC 1931]
41+
#: DRARP-Reply [:rfc:`1931`]
4242
DRARP_Reply = 6
4343

44-
#: DRARP-Error [RFC 1931]
44+
#: DRARP-Error [:rfc:`1931`]
4545
DRARP_Error = 7
4646

47-
#: InARP-Request [RFC 2390]
47+
#: InARP-Request [:rfc:`2390`]
4848
InARP_Request = 8
4949

50-
#: InARP-Reply [RFC 2390]
50+
#: InARP-Reply [:rfc:`2390`]
5151
InARP_Reply = 9
5252

53-
#: ARP-NAK [RFC 1577]
53+
#: ARP-NAK [:rfc:`1577`]
5454
ARP_NAK = 10
5555

5656
#: MARS-Request [Grenville Armitage]
@@ -89,16 +89,16 @@ class Operation(EnumRegistry, IntEnum):
8989
#: MARS-Redirect-Map [Grenville Armitage]
9090
MARS_Redirect_Map = 22
9191

92-
#: MAPOS-UNARP [Mitsuru Maruyama][; ][RFC 2176]
92+
#: MAPOS-UNARP [Mitsuru Maruyama][:rfc:`2176`]
9393
MAPOS_UNARP = 23
9494

95-
#: OP_EXP1 [RFC 5494]
95+
#: OP_EXP1 [:rfc:`5494`]
9696
OP_EXP1 = 24
9797

98-
#: OP_EXP2 [RFC 5494]
98+
#: OP_EXP2 [:rfc:`5494`]
9999
OP_EXP2 = 25
100100

101-
#: Reserved [RFC 5494]
101+
#: Reserved [:rfc:`5494`]
102102
Reserved_65535 = 65535
103103

104104
@classmethod

‎pcapkit/const/esp/cipher.py‎

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -20,91 +20,91 @@
2020
class Cipher(EnumRegistry, IntEnum):
2121
"""[Cipher] Transform Type 1 - Encryption Algorithm Transform IDs"""
2222

23-
#: Reserved [RFC 7296]
23+
#: Reserved [:rfc:`7296`]
2424
Reserved_0 = 0
2525

26-
#: ENCR_DES_IV64 (DEPRECATED [RFC 9395])
26+
#: ENCR_DES_IV64 (DEPRECATED [:rfc:`9395`])
2727
ENCR_DES_IV64 = 1
2828

2929
#: Alias of :attr:`Cipher.ENCR_DES_IV64`.
3030
DES_IV64 = 1
3131

32-
#: ENCR_DES [RFC 2405] (DEPRECATED [RFC 8247])
32+
#: ENCR_DES [:rfc:`2405`] (DEPRECATED [:rfc:`8247`])
3333
ENCR_DES = 2
3434

3535
#: Alias of :attr:`Cipher.ENCR_DES`.
3636
DES = 2
3737

38-
#: ENCR_3DES [RFC 2451]
38+
#: ENCR_3DES [:rfc:`2451`]
3939
ENCR_3DES = 3
4040

41-
#: ENCR_RC5 [RFC 2451] (DEPRECATED [RFC 9395])
41+
#: ENCR_RC5 [:rfc:`2451`] (DEPRECATED [:rfc:`9395`])
4242
ENCR_RC5 = 4
4343

4444
#: Alias of :attr:`Cipher.ENCR_RC5`.
4545
RC5 = 4
4646

47-
#: ENCR_IDEA [RFC 2451] (DEPRECATED [RFC 9395])
47+
#: ENCR_IDEA [:rfc:`2451`] (DEPRECATED [:rfc:`9395`])
4848
ENCR_IDEA = 5
4949

5050
#: Alias of :attr:`Cipher.ENCR_IDEA`.
5151
IDEA = 5
5252

53-
#: ENCR_CAST [RFC 2451] (DEPRECATED [RFC 9395])
53+
#: ENCR_CAST [:rfc:`2451`] (DEPRECATED [:rfc:`9395`])
5454
ENCR_CAST = 6
5555

5656
#: Alias of :attr:`Cipher.ENCR_CAST`.
5757
CAST = 6
5858

59-
#: ENCR_BLOWFISH [RFC 2451] (DEPRECATED [RFC 9395])
59+
#: ENCR_BLOWFISH [:rfc:`2451`] (DEPRECATED [:rfc:`9395`])
6060
ENCR_BLOWFISH = 7
6161

6262
#: Alias of :attr:`Cipher.ENCR_BLOWFISH`.
6363
BLOWFISH = 7
6464

65-
#: ENCR_3IDEA (DEPRECATED [RFC 9395])
65+
#: ENCR_3IDEA (DEPRECATED [:rfc:`9395`])
6666
ENCR_3IDEA = 8
6767

68-
#: ENCR_DES_IV32 (DEPRECATED [RFC 9395])
68+
#: ENCR_DES_IV32 (DEPRECATED [:rfc:`9395`])
6969
ENCR_DES_IV32 = 9
7070

7171
#: Alias of :attr:`Cipher.ENCR_DES_IV32`.
7272
DES_IV32 = 9
7373

74-
#: Reserved [RFC 7296]
74+
#: Reserved [:rfc:`7296`]
7575
Reserved_10 = 10
7676

77-
#: ENCR_NULL [RFC 2410]
77+
#: ENCR_NULL [:rfc:`2410`]
7878
ENCR_NULL = 11
7979

8080
#: Alias of :attr:`Cipher.ENCR_NULL`.
8181
NULL = 11
8282

83-
#: ENCR_AES_CBC [RFC 3602]
83+
#: ENCR_AES_CBC [:rfc:`3602`]
8484
ENCR_AES_CBC = 12
8585

8686
#: Alias of :attr:`Cipher.ENCR_AES_CBC`.
8787
AES_CBC = 12
8888

89-
#: ENCR_AES_CTR [RFC 3686]
89+
#: ENCR_AES_CTR [:rfc:`3686`]
9090
ENCR_AES_CTR = 13
9191

9292
#: Alias of :attr:`Cipher.ENCR_AES_CTR`.
9393
AES_CTR = 13
9494

95-
#: ENCR_AES_CCM_8 [RFC 4309]
95+
#: ENCR_AES_CCM_8 [:rfc:`4309`]
9696
ENCR_AES_CCM_8 = 14
9797

9898
#: Alias of :attr:`Cipher.ENCR_AES_CCM_8`.
9999
AES_CCM_8 = 14
100100

101-
#: ENCR_AES_CCM_12 [RFC 4309]
101+
#: ENCR_AES_CCM_12 [:rfc:`4309`]
102102
ENCR_AES_CCM_12 = 15
103103

104104
#: Alias of :attr:`Cipher.ENCR_AES_CCM_12`.
105105
AES_CCM_12 = 15
106106

107-
#: ENCR_AES_CCM_16 [RFC 4309]
107+
#: ENCR_AES_CCM_16 [:rfc:`4309`]
108108
ENCR_AES_CCM_16 = 16
109109

110110
#: Alias of :attr:`Cipher.ENCR_AES_CCM_16`.
@@ -113,25 +113,25 @@ class Cipher(EnumRegistry, IntEnum):
113113
#: Unassigned
114114
Unassigned_17 = 17
115115

116-
#: ENCR_AES_GCM_8 [RFC 4106]; [RFC 8247]
116+
#: ENCR_AES_GCM_8 [:rfc:`4106`][:rfc:`8247`]
117117
ENCR_AES_GCM_8 = 18
118118

119119
#: Alias of :attr:`Cipher.ENCR_AES_GCM_8`.
120120
AES_GCM_8 = 18
121121

122-
#: ENCR_AES_GCM_12 [RFC 4106]; [RFC 8247]
122+
#: ENCR_AES_GCM_12 [:rfc:`4106`][:rfc:`8247`]
123123
ENCR_AES_GCM_12 = 19
124124

125125
#: Alias of :attr:`Cipher.ENCR_AES_GCM_12`.
126126
AES_GCM_12 = 19
127127

128-
#: ENCR_AES_GCM_16 [RFC 4106]; [RFC 8247]
128+
#: ENCR_AES_GCM_16 [:rfc:`4106`][:rfc:`8247`]
129129
ENCR_AES_GCM_16 = 20
130130

131131
#: Alias of :attr:`Cipher.ENCR_AES_GCM_16`.
132132
AES_GCM_16 = 20
133133

134-
#: ENCR_NULL_AUTH_AES_GMAC [RFC 4543]
134+
#: ENCR_NULL_AUTH_AES_GMAC [:rfc:`4543`]
135135
ENCR_NULL_AUTH_AES_GMAC = 21
136136

137137
#: Alias of :attr:`Cipher.ENCR_NULL_AUTH_AES_GMAC`.
@@ -140,79 +140,79 @@ class Cipher(EnumRegistry, IntEnum):
140140
#: Reserved for IEEE P1619 XTS-AES [Matt Ball]
141141
Reserved_for_IEEE_P1619_XTS_AES = 22
142142

143-
#: ENCR_CAMELLIA_CBC [RFC 5529]
143+
#: ENCR_CAMELLIA_CBC [:rfc:`5529`]
144144
ENCR_CAMELLIA_CBC = 23
145145

146146
#: Alias of :attr:`Cipher.ENCR_CAMELLIA_CBC`.
147147
CAMELLIA_CBC = 23
148148

149-
#: ENCR_CAMELLIA_CTR [RFC 5529]
149+
#: ENCR_CAMELLIA_CTR [:rfc:`5529`]
150150
ENCR_CAMELLIA_CTR = 24
151151

152152
#: Alias of :attr:`Cipher.ENCR_CAMELLIA_CTR`.
153153
CAMELLIA_CTR = 24
154154

155-
#: ENCR_CAMELLIA_CCM_8 [RFC 5529]; [RFC 8247]
155+
#: ENCR_CAMELLIA_CCM_8 [:rfc:`5529`][:rfc:`8247`]
156156
ENCR_CAMELLIA_CCM_8 = 25
157157

158158
#: Alias of :attr:`Cipher.ENCR_CAMELLIA_CCM_8`.
159159
CAMELLIA_CCM_8 = 25
160160

161-
#: ENCR_CAMELLIA_CCM_12 [RFC 5529]; [RFC 8247]
161+
#: ENCR_CAMELLIA_CCM_12 [:rfc:`5529`][:rfc:`8247`]
162162
ENCR_CAMELLIA_CCM_12 = 26
163163

164164
#: Alias of :attr:`Cipher.ENCR_CAMELLIA_CCM_12`.
165165
CAMELLIA_CCM_12 = 26
166166

167-
#: ENCR_CAMELLIA_CCM_16 [RFC 5529]; [RFC 8247]
167+
#: ENCR_CAMELLIA_CCM_16 [:rfc:`5529`][:rfc:`8247`]
168168
ENCR_CAMELLIA_CCM_16 = 27
169169

170170
#: Alias of :attr:`Cipher.ENCR_CAMELLIA_CCM_16`.
171171
CAMELLIA_CCM_16 = 27
172172

173-
#: ENCR_CHACHA20_POLY1305 [RFC 7634]
173+
#: ENCR_CHACHA20_POLY1305 [:rfc:`7634`]
174174
ENCR_CHACHA20_POLY1305 = 28
175175

176176
#: Alias of :attr:`Cipher.ENCR_CHACHA20_POLY1305`.
177177
CHACHA20_POLY1305 = 28
178178

179-
#: ENCR_AES_CCM_8_IIV [RFC 8750]
179+
#: ENCR_AES_CCM_8_IIV [:rfc:`8750`]
180180
ENCR_AES_CCM_8_IIV = 29
181181

182182
#: Alias of :attr:`Cipher.ENCR_AES_CCM_8_IIV`.
183183
AES_CCM_8_IIV = 29
184184

185-
#: ENCR_AES_GCM_16_IIV [RFC 8750]
185+
#: ENCR_AES_GCM_16_IIV [:rfc:`8750`]
186186
ENCR_AES_GCM_16_IIV = 30
187187

188188
#: Alias of :attr:`Cipher.ENCR_AES_GCM_16_IIV`.
189189
AES_GCM_16_IIV = 30
190190

191-
#: ENCR_CHACHA20_POLY1305_IIV [RFC 8750]
191+
#: ENCR_CHACHA20_POLY1305_IIV [:rfc:`8750`]
192192
ENCR_CHACHA20_POLY1305_IIV = 31
193193

194194
#: Alias of :attr:`Cipher.ENCR_CHACHA20_POLY1305_IIV`.
195195
CHACHA20_POLY1305_IIV = 31
196196

197-
#: ENCR_KUZNYECHIK_MGM_KTREE [RFC 9227]
197+
#: ENCR_KUZNYECHIK_MGM_KTREE [:rfc:`9227`]
198198
ENCR_KUZNYECHIK_MGM_KTREE = 32
199199

200200
#: Alias of :attr:`Cipher.ENCR_KUZNYECHIK_MGM_KTREE`.
201201
KUZNYECHIK_MGM_KTREE = 32
202202

203-
#: ENCR_MAGMA_MGM_KTREE [RFC 9227]
203+
#: ENCR_MAGMA_MGM_KTREE [:rfc:`9227`]
204204
ENCR_MAGMA_MGM_KTREE = 33
205205

206206
#: Alias of :attr:`Cipher.ENCR_MAGMA_MGM_KTREE`.
207207
MAGMA_MGM_KTREE = 33
208208

209-
#: ENCR_KUZNYECHIK_MGM_MAC_KTREE [RFC 9227]
209+
#: ENCR_KUZNYECHIK_MGM_MAC_KTREE [:rfc:`9227`]
210210
ENCR_KUZNYECHIK_MGM_MAC_KTREE = 34
211211

212212
#: Alias of :attr:`Cipher.ENCR_KUZNYECHIK_MGM_MAC_KTREE`.
213213
KUZNYECHIK_MGM_MAC_KTREE = 34
214214

215-
#: ENCR_MAGMA_MGM_MAC_KTREE [RFC 9227]
215+
#: ENCR_MAGMA_MGM_MAC_KTREE [:rfc:`9227`]
216216
ENCR_MAGMA_MGM_MAC_KTREE = 35
217217

218218
#: Alias of :attr:`Cipher.ENCR_MAGMA_MGM_MAC_KTREE`.
@@ -232,6 +232,6 @@ def _missing_(cls, value: 'int') -> 'Cipher':
232232
#: Unassigned
233233
return cls._unregistered_member(value, 'Unassigned')
234234
if 1024 <= value <= 65535:
235-
#: Reserved for Private Use [RFC 7296]
235+
#: Reserved for Private Use [:rfc:`7296`]
236236
return cls._unregistered_member(value, 'Reserved_for_Private_Use')
237237
return super()._missing_(value)

0 commit comments

Comments
 (0)