openflow_input: add type values
diff --git a/openflow_input/standard-1.0 b/openflow_input/standard-1.0
index c436655..5d4405c 100644
--- a/openflow_input/standard-1.0
+++ b/openflow_input/standard-1.0
@@ -305,14 +305,14 @@
struct of_hello {
uint8_t version;
- uint8_t type;
+ uint8_t type == 0;
uint16_t length;
uint32_t xid;
};
struct of_echo_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 2;
uint16_t length;
uint32_t xid;
of_octets_t data;
@@ -320,7 +320,7 @@
struct of_echo_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 3;
uint16_t length;
uint32_t xid;
of_octets_t data;
@@ -328,7 +328,7 @@
struct of_experimenter {
uint8_t version;
- uint8_t type;
+ uint8_t type == 4;
uint16_t length;
uint32_t xid;
uint32_t experimenter;
@@ -338,28 +338,28 @@
struct of_barrier_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 18;
uint16_t length;
uint32_t xid;
};
struct of_barrier_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 19;
uint16_t length;
uint32_t xid;
};
struct of_get_config_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 7;
uint16_t length;
uint32_t xid;
};
struct of_get_config_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 8;
uint16_t length;
uint32_t xid;
uint16_t flags;
@@ -368,7 +368,7 @@
struct of_set_config {
uint8_t version;
- uint8_t type;
+ uint8_t type == 9;
uint16_t length;
uint32_t xid;
uint16_t flags;
@@ -389,14 +389,14 @@
struct of_features_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 5;
uint16_t length;
uint32_t xid;
};
struct of_features_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 6;
uint16_t length;
uint32_t xid;
uint64_t datapath_id;
@@ -410,7 +410,7 @@
struct of_port_status {
uint8_t version;
- uint8_t type;
+ uint8_t type == 12;
uint16_t length;
uint32_t xid;
uint8_t reason;
@@ -420,7 +420,7 @@
struct of_port_mod {
uint8_t version;
- uint8_t type;
+ uint8_t type == 15;
uint16_t length;
uint32_t xid;
of_port_no_t port_no;
@@ -433,7 +433,7 @@
struct of_packet_in {
uint8_t version;
- uint8_t type;
+ uint8_t type == 10;
uint16_t length;
uint32_t xid;
uint32_t buffer_id;
@@ -445,88 +445,88 @@
};
struct of_action_output {
- uint16_t type;
+ uint16_t type == 0;
uint16_t len;
of_port_no_t port;
uint16_t max_len;
};
struct of_action_set_vlan_vid {
- uint16_t type;
+ uint16_t type == 1;
uint16_t len;
uint16_t vlan_vid;
pad(2);
};
struct of_action_strip_vlan {
- uint16_t type;
+ uint16_t type == 3;
uint16_t len;
pad(4);
};
struct of_action_set_vlan_pcp {
- uint16_t type;
+ uint16_t type == 2;
uint16_t len;
uint8_t vlan_pcp;
pad(3);
};
struct of_action_set_dl_src {
- uint16_t type;
+ uint16_t type == 4;
uint16_t len;
of_mac_addr_t dl_addr;
pad(6);
};
struct of_action_set_dl_dst {
- uint16_t type;
+ uint16_t type == 5;
uint16_t len;
of_mac_addr_t dl_addr;
pad(6);
};
struct of_action_set_nw_src {
- uint16_t type;
+ uint16_t type == 6;
uint16_t len;
uint32_t nw_addr;
};
struct of_action_set_nw_dst {
- uint16_t type;
+ uint16_t type == 7;
uint16_t len;
uint32_t nw_addr;
};
struct of_action_set_tp_src {
- uint16_t type;
+ uint16_t type == 9;
uint16_t len;
uint16_t tp_port;
pad(2);
};
struct of_action_set_tp_dst {
- uint16_t type;
+ uint16_t type == 10;
uint16_t len;
uint16_t tp_port;
pad(2);
};
struct of_action_set_nw_tos {
- uint16_t type;
+ uint16_t type == 8;
uint16_t len;
uint8_t nw_tos;
pad(3);
};
struct of_action_experimenter {
- uint16_t type;
+ uint16_t type == 65535;
uint16_t len;
uint32_t experimenter;
of_octets_t data;
};
struct of_action_enqueue {
- uint16_t type;
+ uint16_t type == 11;
uint16_t len;
of_port_no_t port;
pad(6);
@@ -541,7 +541,7 @@
struct of_packet_out {
uint8_t version;
- uint8_t type;
+ uint8_t type == 13;
uint16_t length;
uint32_t xid;
uint32_t buffer_id;
@@ -571,12 +571,12 @@
struct of_flow_add {
uint8_t version;
- uint8_t type;
+ uint8_t type == 14;
uint16_t length;
uint32_t xid;
of_match_t match;
uint64_t cookie;
- of_fm_cmd_t _command;
+ of_fm_cmd_t _command == 0;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
@@ -588,12 +588,12 @@
struct of_flow_modify {
uint8_t version;
- uint8_t type;
+ uint8_t type == 14;
uint16_t length;
uint32_t xid;
of_match_t match;
uint64_t cookie;
- of_fm_cmd_t _command;
+ of_fm_cmd_t _command == 1;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
@@ -605,12 +605,12 @@
struct of_flow_modify_strict {
uint8_t version;
- uint8_t type;
+ uint8_t type == 14;
uint16_t length;
uint32_t xid;
of_match_t match;
uint64_t cookie;
- of_fm_cmd_t _command;
+ of_fm_cmd_t _command == 2;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
@@ -622,12 +622,12 @@
struct of_flow_delete {
uint8_t version;
- uint8_t type;
+ uint8_t type == 14;
uint16_t length;
uint32_t xid;
of_match_t match;
uint64_t cookie;
- of_fm_cmd_t _command;
+ of_fm_cmd_t _command == 3;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
@@ -639,12 +639,12 @@
struct of_flow_delete_strict {
uint8_t version;
- uint8_t type;
+ uint8_t type == 14;
uint16_t length;
uint32_t xid;
of_match_t match;
uint64_t cookie;
- of_fm_cmd_t _command;
+ of_fm_cmd_t _command == 4;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
@@ -656,7 +656,7 @@
struct of_flow_removed {
uint8_t version;
- uint8_t type;
+ uint8_t type == 11;
uint16_t length;
uint32_t xid;
of_match_t match;
@@ -674,7 +674,7 @@
struct of_error_msg {
uint8_t version;
- uint8_t type;
+ uint8_t type == 1;
uint16_t length;
uint32_t xid;
uint16_t err_type;
@@ -741,19 +741,19 @@
struct of_desc_stats_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 16;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 0;
uint16_t flags;
};
struct of_desc_stats_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 17;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 0;
uint16_t flags;
of_desc_str_t mfr_desc;
of_desc_str_t hw_desc;
@@ -764,10 +764,10 @@
struct of_flow_stats_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 16;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 1;
uint16_t flags;
of_match_t match;
uint8_t table_id;
@@ -777,20 +777,20 @@
struct of_flow_stats_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 17;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 1;
uint16_t flags;
list(of_flow_stats_entry_t) entries;
};
struct of_aggregate_stats_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 16;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 2;
uint16_t flags;
of_match_t match;
uint8_t table_id;
@@ -800,10 +800,10 @@
struct of_aggregate_stats_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 17;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 2;
uint16_t flags;
uint64_t packet_count;
uint64_t byte_count;
@@ -813,29 +813,29 @@
struct of_table_stats_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 16;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 3;
uint16_t flags;
};
struct of_table_stats_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 17;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 3;
uint16_t flags;
list(of_table_stats_entry_t) entries;
};
struct of_port_stats_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 16;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 4;
uint16_t flags;
of_port_no_t port_no;
pad(6);
@@ -843,20 +843,20 @@
struct of_port_stats_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 17;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 4;
uint16_t flags;
list(of_port_stats_entry_t) entries;
};
struct of_queue_stats_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 16;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 5;
uint16_t flags;
of_port_no_t port_no;
pad(2);
@@ -865,20 +865,20 @@
struct of_queue_stats_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 17;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 5;
uint16_t flags;
list(of_queue_stats_entry_t) entries;
};
struct of_experimenter_stats_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 16;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 0xffff;
uint16_t flags;
uint32_t experimenter;
of_octets_t data;
@@ -886,10 +886,10 @@
struct of_experimenter_stats_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 17;
uint16_t length;
uint32_t xid;
- uint16_t stats_type;
+ uint16_t stats_type == 0xffff;
uint16_t flags;
uint32_t experimenter;
of_octets_t data;
@@ -904,7 +904,7 @@
};
struct of_queue_prop_min_rate {
- uint16_t type;
+ uint16_t type == 1;
uint16_t len;
pad(4);
uint16_t rate;
@@ -920,7 +920,7 @@
struct of_queue_get_config_request {
uint8_t version;
- uint8_t type;
+ uint8_t type == 20;
uint16_t length;
uint32_t xid;
of_port_no_t port;
@@ -929,7 +929,7 @@
struct of_queue_get_config_reply {
uint8_t version;
- uint8_t type;
+ uint8_t type == 21;
uint16_t length;
uint32_t xid;
of_port_no_t port;