Skip to content

Commit

Permalink
Add flow update events structures
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Apr 11, 2019
1 parent 230da96 commit 5baff7e
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 5 deletions.
56 changes: 56 additions & 0 deletions openflow_input/standard-1.4
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,62 @@ struct of_flow_monitor_reply : of_stats_reply {
list(of_flow_monitor_reply_entry_t) entries;
};

struct of_flow_update_full_initial : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 0;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

struct of_flow_update_full_added : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 1;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

struct of_flow_update_full_removed : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 2;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

struct of_flow_update_full_modified : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 3;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

struct of_group_desc_stats_request : of_stats_request {
uint8_t version;
uint8_t type == 18;
Expand Down
62 changes: 57 additions & 5 deletions openflow_input/standard-1.5
Original file line number Diff line number Diff line change
Expand Up @@ -2296,7 +2296,7 @@ enum ofp_flow_update_event(wire_type=uint16_t) {

struct of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event;
enum ofp_flow_update_event event == ?;
};

/* Body of OFPMP_FLOW_MONITOR reply */
Expand All @@ -2311,6 +2311,62 @@ struct of_flow_monitor_reply : of_stats_reply {
list(of_flow_monitor_reply_entry_t) entries;
};

struct of_flow_update_full_initial : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 0;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

struct of_flow_update_full_added : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 1;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

struct of_flow_update_full_removed : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 2;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

struct of_flow_update_full_modified : of_flow_monitor_reply_entry {
uint16_t length;
enum ofp_flow_update_event event == 3;
uint8_t table_id;
uint8_t reason;
uint16_t idle_timeout;
uint16_t hard_timeout;
uint16_t priority;
pad(4);
uint64_t cookie;
of_match_t match;
list(of_instruction_t) instructions;
};

/* Body of OFPMP_TABLE_DESC request. */
struct of_table_desc_stats_request : of_stats_request {
uint8_t version;
Expand Down Expand Up @@ -3604,7 +3660,3 @@ struct of_packet_queue {
pad(6);
list(of_queue_prop_t) properties;
};




0 comments on commit 5baff7e

Please sign in to comment.