8080from pcapkit .protocols .data .internet .mh import \
8181 BindingAcknowledgementMessage as Data_BindingAcknowledgementMessage
8282from pcapkit .protocols .data .internet .mh import \
83- BindingAuthorizationDataOption as Data_BindingAuthorizationDataOption
83+ AuthorizationDataOption as Data_AuthorizationDataOption
8484from pcapkit .protocols .data .internet .mh import BindingErrorMessage as Data_BindingErrorMessage
8585from pcapkit .protocols .data .internet .mh import \
8686 BindingRefreshRequestMessage as Data_BindingRefreshRequestMessage
8787from pcapkit .protocols .data .internet .mh import BindingUpdateMessage as Data_BindingUpdateMessage
8888from pcapkit .protocols .data .internet .mh import \
89- BindRefreshAdviceOption as Data_BindRefreshAdviceOption
89+ BindingRefreshAdviceOption as Data_BindingRefreshAdviceOption
9090from pcapkit .protocols .data .internet .mh import CareofTestInitMessage as Data_CareofTestInitMessage
9191from pcapkit .protocols .data .internet .mh import CareofTestInitOption as Data_CareofTestInitOption
9292from pcapkit .protocols .data .internet .mh import CareofTestMessage as Data_CareofTestMessage
120120from pcapkit .protocols .schema .internet .mh import \
121121 BindingAcknowledgementMessage as Schema_BindingAcknowledgementMessage
122122from pcapkit .protocols .schema .internet .mh import \
123- BindingAuthorizationDataOption as Schema_BindingAuthorizationDataOption
123+ AuthorizationDataOption as Schema_AuthorizationDataOption
124124from pcapkit .protocols .schema .internet .mh import BindingErrorMessage as Schema_BindingErrorMessage
125125from pcapkit .protocols .schema .internet .mh import \
126126 BindingRefreshRequestMessage as Schema_BindingRefreshRequestMessage
127127from pcapkit .protocols .schema .internet .mh import BindingUpdateMessage as Schema_BindingUpdateMessage
128128from pcapkit .protocols .schema .internet .mh import \
129- BindRefreshAdviceOption as Schema_BindRefreshAdviceOption
129+ BindingRefreshAdviceOption as Schema_BindingRefreshAdviceOption
130130from pcapkit .protocols .schema .internet .mh import \
131131 CareofTestInitMessage as Schema_CareofTestInitMessage
132132from pcapkit .protocols .schema .internet .mh import CareofTestInitOption as Schema_CareofTestInitOption
@@ -1125,8 +1125,8 @@ def _read_opt_pad(self, schema: 'Schema_PadOption', *,
11251125 )
11261126 return data
11271127
1128- def _read_opt_bra (self , schema : 'Schema_BindRefreshAdviceOption ' , * ,
1129- options : 'Option' ) -> 'Data_BindRefreshAdviceOption ' :
1128+ def _read_opt_bra (self , schema : 'Schema_BindingRefreshAdviceOption ' , * ,
1129+ options : 'Option' ) -> 'Data_BindingRefreshAdviceOption ' :
11301130 """Read MH binding refresh advice option.
11311131
11321132 Structure of MH Binding Refresh Advice option [:rfc:`6275`]:
@@ -1152,7 +1152,7 @@ def _read_opt_bra(self, schema: 'Schema_BindRefreshAdviceOption', *,
11521152 if schema .length != 2 :
11531153 raise ProtocolError (f'{ self .alias } : [Opt { schema .type } ] invalid format' )
11541154
1155- data = Data_BindRefreshAdviceOption (
1155+ data = Data_BindingRefreshAdviceOption (
11561156 type = schema .type ,
11571157 length = schema .length + 2 ,
11581158 interval = schema .interval ,
@@ -1234,8 +1234,8 @@ def _read_opt_ni(self, schema: 'Schema_NonceIndicesOption', *,
12341234 )
12351235 return data
12361236
1237- def _read_opt_bad (self , schema : 'Schema_BindingAuthorizationDataOption ' , * ,
1238- options : 'Option' ) -> 'Data_BindingAuthorizationDataOption ' :
1237+ def _read_opt_bad (self , schema : 'Schema_AuthorizationDataOption ' , * ,
1238+ options : 'Option' ) -> 'Data_AuthorizationDataOption ' :
12391239 """Read MH binding authorization data option.
12401240
12411241 Structure of MH Binding Authorization Data option [:rfc:`6275`]:
@@ -1265,7 +1265,7 @@ def _read_opt_bad(self, schema: 'Schema_BindingAuthorizationDataOption', *,
12651265 if schema .length % 8 != 0 :
12661266 raise ProtocolError (f'{ self .alias } : [Opt { schema .type } ] invalid format' )
12671267
1268- data = Data_BindingAuthorizationDataOption (
1268+ data = Data_AuthorizationDataOption (
12691269 type = schema .type ,
12701270 length = schema .length + 2 ,
12711271 data = schema .data ,
@@ -2196,9 +2196,9 @@ def _make_opt_pad(self, type: 'Enum_Option', option: 'Optional[Data_PadOption]'
21962196 length = length ,
21972197 )
21982198
2199- def _make_opt_bra (self , type : 'Enum_Option' , option : 'Optional[Data_BindRefreshAdviceOption ]' = None , * ,
2199+ def _make_opt_bra (self , type : 'Enum_Option' , option : 'Optional[Data_BindingRefreshAdviceOption ]' = None , * ,
22002200 interval : 'int' = 0 ,
2201- ** kwargs : 'Any' ) -> 'Schema_BindRefreshAdviceOption ' :
2201+ ** kwargs : 'Any' ) -> 'Schema_BindingRefreshAdviceOption ' :
22022202 """Make MH binding refresh advice option.
22032203
22042204 Args:
@@ -2214,7 +2214,7 @@ def _make_opt_bra(self, type: 'Enum_Option', option: 'Optional[Data_BindRefreshA
22142214 if option is not None :
22152215 interval = option .interval
22162216
2217- return Schema_BindRefreshAdviceOption (
2217+ return Schema_BindingRefreshAdviceOption (
22182218 type = type ,
22192219 length = 2 ,
22202220 interval = interval ,
@@ -2272,9 +2272,9 @@ def _make_opt_ni(self, type: 'Enum_Option', option: 'Optional[Data_NonceIndicesO
22722272 careof = careof ,
22732273 )
22742274
2275- def _make_opt_bad (self , type : 'Enum_Option' , option : 'Optional[Data_BindingAuthorizationDataOption ]' = None , * ,
2275+ def _make_opt_bad (self , type : 'Enum_Option' , option : 'Optional[Data_AuthorizationDataOption ]' = None , * ,
22762276 data : 'bytes' = b'' ,
2277- ** kwargs : 'Any' ) -> 'Schema_BindingAuthorizationDataOption ' :
2277+ ** kwargs : 'Any' ) -> 'Schema_AuthorizationDataOption ' :
22782278 """Make MH binding authorization data option.
22792279
22802280 Args:
@@ -2293,7 +2293,7 @@ def _make_opt_bad(self, type: 'Enum_Option', option: 'Optional[Data_BindingAutho
22932293 if len (data ) % 8 != 0 :
22942294 raise ProtocolError (f'{ self .alias } : [OptNo { type } ] invalid format' )
22952295
2296- return Schema_BindingAuthorizationDataOption (
2296+ return Schema_AuthorizationDataOption (
22972297 type = type ,
22982298 length = len (data ),
22992299 data = data ,
0 commit comments