Skip to content

Commit c6ed369

Browse files
committed
bugfix in MH vendor crawler links & regenerated MH const
1 parent 689bd26 commit c6ed369

File tree

5 files changed

+207
-22
lines changed

5 files changed

+207
-22
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
"mesg",
173173
"mflg",
174174
"micv",
175+
"mngt",
175176
"MNID",
176177
"MODL",
177178
"mpbuf",

pcapkit/const/mh/revocation_status_code.py

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,35 @@
1818
class RevocationStatusCode(IntEnum):
1919
"""[RevocationStatusCode] Binding Revocation Acknowledgement Status Codes"""
2020

21-
#: DNS update performed [:rfc:`5026`]
22-
DNS_update_performed = 0
21+
#: success [:rfc:`5846`]
22+
success = 0
2323

24-
#: Reason unspecified [:rfc:`5026`]
25-
Reason_unspecified = 128
24+
#: partial success [:rfc:`5846`]
25+
partial_success = 1
2626

27-
#: Administratively prohibited [:rfc:`5026`]
28-
Administratively_prohibited = 129
27+
#: Binding Does NOT Exist [:rfc:`5846`]
28+
Binding_Does_NOT_Exist = 128
2929

30-
#: DNS Update Failed [:rfc:`5026`]
31-
DNS_Update_Failed = 130
30+
#: IPv4 Home Address Option Required [:rfc:`5846`]
31+
IPv4_Home_Address_Option_Required = 129
32+
33+
#: Global Revocation NOT Authorized [:rfc:`5846`]
34+
Global_Revocation_NOT_Authorized = 130
35+
36+
#: Revoked Mobile Nodes Identity Required [:rfc:`5846`]
37+
Revoked_Mobile_Nodes_Identity_Required = 131
38+
39+
#: Revocation Failed - MN is Attached [:rfc:`5846`]
40+
Revocation_Failed_MN_is_Attached = 132
41+
42+
#: Revocation Trigger NOT Supported [:rfc:`5846`]
43+
Revocation_Trigger_NOT_Supported = 133
44+
45+
#: Revocation Function NOT Supported [:rfc:`5846`]
46+
Revocation_Function_NOT_Supported = 134
47+
48+
#: Proxy Binding Revocation NOT Supported [:rfc:`5846`]
49+
Proxy_Binding_Revocation_NOT_Supported = 135
3250

3351
@staticmethod
3452
def get(key: 'int | str', default: 'int' = -1) -> 'RevocationStatusCode':
@@ -56,10 +74,10 @@ def _missing_(cls, value: 'int') -> 'RevocationStatusCode':
5674
"""
5775
if not (isinstance(value, int) and 0 <= value <= 255):
5876
raise ValueError('%r is not a valid %s' % (value, cls.__name__))
59-
if 1 <= value <= 127:
77+
if 2 <= value <= 127:
6078
#: Unassigned
6179
return extend_enum(cls, 'Unassigned_%d' % value, value)
62-
if 131 <= value <= 255:
80+
if 136 <= value <= 255:
6381
#: Unassigned
6482
return extend_enum(cls, 'Unassigned_%d' % value, value)
6583
return super()._missing_(value)

pcapkit/const/mh/status_code.py

Lines changed: 176 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,186 @@
1818
class StatusCode(IntEnum):
1919
"""[StatusCode] Status Codes"""
2020

21-
#: DNS update performed [:rfc:`5026`]
22-
DNS_update_performed = 0
21+
#: Binding Update accepted/Proxy Binding Update accepted
22+
#: [:rfc:`6275`][:rfc:`5213`]
23+
Binding_Update_accepted_Proxy_Binding_Update_accepted = 0
2324

24-
#: Reason unspecified [:rfc:`5026`]
25+
#: Accepted but prefix discovery necessary [:rfc:`6275`]
26+
Accepted_but_prefix_discovery_necessary = 1
27+
28+
#: GRE_KEY_OPTION_NOT_REQUIRED [:rfc:`5845`]
29+
GRE_KEY_OPTION_NOT_REQUIRED = 2
30+
31+
#: GRE_TUNNELING_BUT_TLV_HEADER_NOT_SUPPORTED [:rfc:`5845`]
32+
GRE_TUNNELING_BUT_TLV_HEADER_NOT_SUPPORTED = 3
33+
34+
#: MCOA NOTCOMPLETE [:rfc:`5648`]
35+
MCOA_NOTCOMPLETE = 4
36+
37+
#: MCOA RETURNHOME WO/NDP [:rfc:`5648`]
38+
MCOA_RETURNHOME_WO_NDP = 5
39+
40+
#: PBU_ACCEPTED_TB_IGNORED_SETTINGSMISMATCH [:rfc:`6058`]
41+
PBU_ACCEPTED_TB_IGNORED_SETTINGSMISMATCH = 6
42+
43+
#: Reason unspecified [:rfc:`6275`]
2544
Reason_unspecified = 128
2645

27-
#: Administratively prohibited [:rfc:`5026`]
46+
#: Administratively prohibited [:rfc:`6275`]
2847
Administratively_prohibited = 129
2948

30-
#: DNS Update Failed [:rfc:`5026`]
31-
DNS_Update_Failed = 130
49+
#: Insufficient resources [:rfc:`6275`]
50+
Insufficient_resources = 130
51+
52+
#: Home registration not supported [:rfc:`6275`]
53+
Home_registration_not_supported = 131
54+
55+
#: Not home subnet [:rfc:`6275`]
56+
Not_home_subnet = 132
57+
58+
#: Not home agent for this mobile node [:rfc:`6275`]
59+
Not_home_agent_for_this_mobile_node = 133
60+
61+
#: Duplicate Address Detection failed [:rfc:`6275`]
62+
Duplicate_Address_Detection_failed = 134
63+
64+
#: Sequence number out of window [:rfc:`6275`]
65+
Sequence_number_out_of_window = 135
66+
67+
#: Expired home nonce index [:rfc:`6275`]
68+
Expired_home_nonce_index = 136
69+
70+
#: Expired care-of nonce index [:rfc:`6275`]
71+
Expired_care_of_nonce_index = 137
72+
73+
#: Expired nonces [:rfc:`6275`]
74+
Expired_nonces = 138
75+
76+
#: Registration type change disallowed [:rfc:`6275`]
77+
Registration_type_change_disallowed = 139
78+
79+
#: Mobile Router Operation not permitted [:rfc:`3963`]
80+
Mobile_Router_Operation_not_permitted = 140
81+
82+
#: Invalid Prefix [:rfc:`3963`]
83+
Invalid_Prefix = 141
84+
85+
#: Not Authorized for Prefix [:rfc:`3963`]
86+
Not_Authorized_for_Prefix = 142
87+
88+
#: Forwarding Setup failed [:rfc:`3963`]
89+
Forwarding_Setup_failed = 143
90+
91+
#: MIPV6-ID-MISMATCH [:rfc:`4285`]
92+
MIPV6_ID_MISMATCH = 144
93+
94+
#: MIPV6-MESG-ID-REQD [:rfc:`4285`]
95+
MIPV6_MESG_ID_REQD = 145
96+
97+
#: MIPV6-AUTH-FAIL [:rfc:`4285`]
98+
MIPV6_AUTH_FAIL = 146
99+
100+
#: Permanent home keygen token unavailable [:rfc:`4866`]
101+
Permanent_home_keygen_token_unavailable = 147
102+
103+
#: CGA and signature verification failed [:rfc:`4866`]
104+
CGA_and_signature_verification_failed = 148
105+
106+
#: Permanent home keygen token exists [:rfc:`4866`]
107+
Permanent_home_keygen_token_exists = 149
108+
109+
#: Non-null home nonce index expected [:rfc:`4866`]
110+
Non_null_home_nonce_index_expected = 150
111+
112+
#: SERVICE_AUTHORIZATION_FAILED [:rfc:`5149`]
113+
SERVICE_AUTHORIZATION_FAILED = 151
114+
115+
#: PROXY_REG_NOT_ENABLED [:rfc:`5213`]
116+
PROXY_REG_NOT_ENABLED = 152
117+
118+
#: NOT_LMA_FOR_THIS_MOBILE_NODE [:rfc:`5213`]
119+
NOT_LMA_FOR_THIS_MOBILE_NODE = 153
120+
121+
#: MAG_NOT_AUTHORIZED_FOR_PROXY_REG [:rfc:`5213`]
122+
MAG_NOT_AUTHORIZED_FOR_PROXY_REG = 154
123+
124+
#: NOT_AUTHORIZED_FOR_HOME_NETWORK_PREFIX [:rfc:`5213`]
125+
NOT_AUTHORIZED_FOR_HOME_NETWORK_PREFIX = 155
126+
127+
#: TIMESTAMP_MISMATCH [:rfc:`5213`]
128+
TIMESTAMP_MISMATCH = 156
129+
130+
#: TIMESTAMP_LOWER_THAN_PREV_ACCEPTED [:rfc:`5213`]
131+
TIMESTAMP_LOWER_THAN_PREV_ACCEPTED = 157
132+
133+
#: MISSING_HOME_NETWORK_PREFIX_OPTION [:rfc:`5213`]
134+
MISSING_HOME_NETWORK_PREFIX_OPTION = 158
135+
136+
#: BCE_PBU_PREFIX_SET_DO_NOT_MATCH [:rfc:`5213`]
137+
BCE_PBU_PREFIX_SET_DO_NOT_MATCH = 159
138+
139+
#: MISSING_MN_IDENTIFIER_OPTION [:rfc:`5213`]
140+
MISSING_MN_IDENTIFIER_OPTION = 160
141+
142+
#: MISSING_HANDOFF_INDICATOR_OPTION [:rfc:`5213`]
143+
MISSING_HANDOFF_INDICATOR_OPTION = 161
144+
145+
#: MISSING_ACCESS_TECH_TYPE_OPTION [:rfc:`5213`]
146+
MISSING_ACCESS_TECH_TYPE_OPTION = 162
147+
148+
#: GRE_KEY_OPTION_REQUIRED [:rfc:`5845`]
149+
GRE_KEY_OPTION_REQUIRED = 163
150+
151+
#: MCOA MALFORMED [:rfc:`5648`]
152+
MCOA_MALFORMED = 164
153+
154+
#: MCOA NON-MCOA BINDING EXISTS [:rfc:`5648`]
155+
MCOA_NON_MCOA_BINDING_EXISTS = 165
156+
157+
#: MCOA PROHIBITED [:rfc:`5648`]
158+
MCOA_PROHIBITED = 166
159+
160+
#: MCOA UNKNOWN COA [:rfc:`5648`]
161+
MCOA_UNKNOWN_COA = 167
162+
163+
#: MCOA BULK REGISTRATION PROHIBITED [:rfc:`5648`]
164+
MCOA_BULK_REGISTRATION_PROHIBITED = 168
165+
166+
#: MCOA SIMULTANEOUS HOME AND FOREIGN PROHIBITED [:rfc:`5648`]
167+
MCOA_SIMULTANEOUS_HOME_AND_FOREIGN_PROHIBITED = 169
168+
169+
#: NOT_AUTHORIZED_FOR_IPV4_MOBILITY_SERVICE [:rfc:`5844`]
170+
NOT_AUTHORIZED_FOR_IPV4_MOBILITY_SERVICE = 170
171+
172+
#: NOT_AUTHORIZED_FOR_IPV4_HOME_ADDRESS [:rfc:`5844`]
173+
NOT_AUTHORIZED_FOR_IPV4_HOME_ADDRESS = 171
174+
175+
#: NOT_AUTHORIZED_FOR_IPV6_MOBILITY_SERVICE [:rfc:`5844`]
176+
NOT_AUTHORIZED_FOR_IPV6_MOBILITY_SERVICE = 172
177+
178+
#: MULTIPLE_IPV4_HOME_ADDRESS_ASSIGNMENT_NOT_SUPPORTED [:rfc:`5844`]
179+
MULTIPLE_IPV4_HOME_ADDRESS_ASSIGNMENT_NOT_SUPPORTED = 173
180+
181+
#: Invalid Care-of Address [:rfc:`6275`]
182+
Invalid_Care_of_Address = 174
183+
184+
#: INVALID_MOBILE_NODE_GROUP_IDENTIFIER [:rfc:`6602`]
185+
INVALID_MOBILE_NODE_GROUP_IDENTIFIER = 175
186+
187+
#: REINIT_SA_WITH_HAC [:rfc:`6618`]
188+
REINIT_SA_WITH_HAC = 176
189+
190+
#: NOT_AUTHORIZED_FOR_DELEGATED_MNP [:rfc:`7148`]
191+
NOT_AUTHORIZED_FOR_DELEGATED_MNP = 177
192+
193+
#: REQUESTED_DMNP_IN_USE [:rfc:`7148`]
194+
REQUESTED_DMNP_IN_USE = 178
195+
196+
#: CANNOT_MEET_QOS_SERVICE_REQUEST [:rfc:`7222`]
197+
CANNOT_MEET_QOS_SERVICE_REQUEST = 179
198+
199+
#: CANNOT_SUPPORT_MULTIPATH_BINDING [:rfc:`8278`]
200+
CANNOT_SUPPORT_MULTIPATH_BINDING = 180
32201

33202
@staticmethod
34203
def get(key: 'int | str', default: 'int' = -1) -> 'StatusCode':
@@ -56,10 +225,7 @@ def _missing_(cls, value: 'int') -> 'StatusCode':
56225
"""
57226
if not (isinstance(value, int) and 0 <= value <= 255):
58227
raise ValueError('%r is not a valid %s' % (value, cls.__name__))
59-
if 1 <= value <= 127:
60-
#: Unassigned
61-
return extend_enum(cls, 'Unassigned_%d' % value, value)
62-
if 131 <= value <= 255:
228+
if 7 <= value <= 127:
63229
#: Unassigned
64230
return extend_enum(cls, 'Unassigned_%d' % value, value)
65231
#: Unspecified in the IANA registry

pcapkit/vendor/mh/revocation_status_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RevocationStatusCode(Vendor):
2424
#: Value limit checker.
2525
FLAG = 'isinstance(value, int) and 0 <= value <= 255'
2626
#: Link to registry.
27-
LINK = 'https://www.iana.org/assignments/mobility-parameters/mobility-parameters-3.csv'
27+
LINK = 'https://www.iana.org/assignments/mobility-parameters/binding-revocation-status-codes.csv'
2828

2929
def process(self, data: 'list[str]') -> 'tuple[list[str], list[str]]':
3030
"""Process CSV data.

pcapkit/vendor/mh/status_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class StatusCode(Vendor):
2424
#: Value limit checker.
2525
FLAG = 'isinstance(value, int) and 0 <= value <= 255'
2626
#: Link to registry.
27-
LINK = 'https://www.iana.org/assignments/mobility-parameters/mobility-parameters-3.csv'
27+
LINK = 'https://www.iana.org/assignments/mobility-parameters/mobility-parameters-6.csv'
2828

2929
def process(self, data: 'list[str]') -> 'tuple[list[str], list[str]]':
3030
"""Process CSV data.

0 commit comments

Comments
 (0)