@@ -5284,7 +5284,7 @@ module MeterConfig = struct
5284
5284
5285
5285
end
5286
5286
5287
- module MeterFeaturesStats = struct
5287
+ module MeterFeatures = struct
5288
5288
5289
5289
cstruct ofp_meter_features {
5290
5290
uint32_t max_meter;
@@ -5313,20 +5313,20 @@ module MeterFeaturesStats = struct
5313
5313
5314
5314
end
5315
5315
5316
- type t = meterFeaturesStats
5316
+ type t = meterFeatures
5317
5317
5318
- let sizeof (mfs : meterFeaturesStats ) : int =
5318
+ let sizeof (mfs : t ) : int =
5319
5319
sizeof_ofp_meter_features
5320
5320
5321
- let to_string (mfs : meterFeaturesStats ) : string =
5321
+ let to_string (mfs : t ) : string =
5322
5322
Format. sprintf " { max_meter = %lu; band_typ = %s; capabilities = %s; max_band = %u; max_color = %u }"
5323
5323
mfs.max_meter
5324
5324
(Bands. to_string mfs.band_typ)
5325
5325
(MeterFlags. to_string mfs.capabilities)
5326
5326
mfs.max_band
5327
5327
mfs.max_color
5328
5328
5329
- let marshal (buf : Cstruct.t ) (mfs : meterFeaturesStats ) : int =
5329
+ let marshal (buf : Cstruct.t ) (mfs : t ) : int =
5330
5330
set_ofp_meter_features_max_meter buf mfs.max_meter;
5331
5331
set_ofp_meter_features_band_types buf (Bands. marshal mfs.band_typ);
5332
5332
(* int -> int32 fix, before release of OF1.3.5 *)
@@ -5335,7 +5335,7 @@ module MeterFeaturesStats = struct
5335
5335
set_ofp_meter_features_max_color buf mfs.max_color;
5336
5336
sizeof_ofp_meter_features
5337
5337
5338
- let parse (bits : Cstruct.t ) : meterFeaturesStats =
5338
+ let parse (bits : Cstruct.t ) : t =
5339
5339
{ max_meter = get_ofp_meter_features_max_meter bits
5340
5340
; band_typ = Bands. parse (get_ofp_meter_features_band_types bits)
5341
5341
(* int32 -> int fix, before release of OF1.3.5 *)
@@ -5365,7 +5365,7 @@ module MultipartReply = struct
5365
5365
| GroupFeaturesReply gf -> GroupFeatures. sizeof gf
5366
5366
| MeterReply mr -> sum (map MeterStats. sizeof mr)
5367
5367
| MeterConfig mc -> sum (map MeterConfig. sizeof mc)
5368
- | MeterFeaturesReply mf -> MeterFeaturesStats . sizeof mf
5368
+ | MeterFeaturesReply mf -> MeterFeatures . sizeof mf
5369
5369
5370
5370
let to_string (mpr : multipartReply ) =
5371
5371
match mpr.mpreply_typ with
@@ -5382,7 +5382,7 @@ module MultipartReply = struct
5382
5382
| GroupFeaturesReply gf -> Format. sprintf " GroupFeatures %s" (GroupFeatures. to_string gf)
5383
5383
| MeterReply mr -> Format. sprintf " MeterStats { %s }" (String. concat " ; " (map MeterStats. to_string mr))
5384
5384
| MeterConfig mc -> Format. sprintf " MeterConfig { %s }" (String. concat " ; " (map MeterConfig. to_string mc))
5385
- | MeterFeaturesReply mf -> Format. sprintf " MeterFeaturesStats %s" (MeterFeaturesStats . to_string mf)
5385
+ | MeterFeaturesReply mf -> Format. sprintf " MeterFeaturesStats %s" (MeterFeatures . to_string mf)
5386
5386
5387
5387
let marshal (buf : Cstruct.t ) (mpr : multipartReply ) : int =
5388
5388
let ofp_body_bits = Cstruct. shift buf sizeof_ofp_multipart_reply in
@@ -5432,7 +5432,7 @@ module MultipartReply = struct
5432
5432
marshal_fields ofp_body_bits mc MeterConfig. marshal
5433
5433
| MeterFeaturesReply mfr ->
5434
5434
set_ofp_multipart_reply_typ buf (ofp_multipart_types_to_int OFPMP_METER_FEATURES );
5435
- MeterFeaturesStats . marshal ofp_body_bits mfr
5435
+ MeterFeatures . marshal ofp_body_bits mfr
5436
5436
)
5437
5437
5438
5438
let parse (bits : Cstruct.t ) : multipartReply =
@@ -5465,7 +5465,7 @@ module MultipartReply = struct
5465
5465
| Some OFPMP_METER_CONFIG ->
5466
5466
MeterConfig (parse_fields ofp_body_bits MeterConfig. parse MeterConfig. length_func)
5467
5467
| Some OFPMP_METER_FEATURES ->
5468
- MeterFeaturesReply (MeterFeaturesStats . parse ofp_body_bits)
5468
+ MeterFeaturesReply (MeterFeatures . parse ofp_body_bits)
5469
5469
| _ -> raise (Unparsable (sprintf " NYI: can't parse this multipart reply" ))) in
5470
5470
let flags = (
5471
5471
match int_to_ofp_multipart_request_flags (get_ofp_multipart_request_flags bits) with
0 commit comments