Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ofp_type complete #634

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openflow_input/standard-1.0
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ enum macro_definitions {
OFPQ_MIN_RATE_UNCFG = 0xffff,
};

enum ofp_type(wire_type=uint8_t) {
enum ofp_type(wire_type=uint8_t, complete=True) {
OFPT_HELLO = 0,
OFPT_ERROR = 1,
OFPT_ECHO_REQUEST = 2,
Expand Down
4 changes: 2 additions & 2 deletions openflow_input/standard-1.1
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ enum ofp_port(wire_type=uint32_t) {
OFPP_ANY = 0xffffffff,
};

enum ofp_type(wire_type=uint8_t) {
enum ofp_type(wire_type=uint8_t, complete=True) {
OFPT_HELLO = 0,
OFPT_ERROR = 1,
OFPT_ECHO_REQUEST = 2,
Expand Down Expand Up @@ -257,7 +257,7 @@ enum ofp_group(wire_type=uint32_t, complete=False) {
OFPG_ANY = 0xffffffff,
};

enum ofp_group_type(wire_type=uint8_t) {
enum ofp_group_type(wire_type=uint8_t, complete=True) {
OFPGT_ALL = 0,
OFPGT_SELECT = 1,
OFPGT_INDIRECT = 2,
Expand Down
4 changes: 2 additions & 2 deletions openflow_input/standard-1.2
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ enum ofp_port(wire_type=uint32_t) {
OFPP_ANY = 0xffffffff,
};

enum ofp_type(wire_type=uint8_t) {
enum ofp_type(wire_type=uint8_t, complete=True) {
OFPT_HELLO = 0,
OFPT_ERROR = 1,
OFPT_ECHO_REQUEST = 2,
Expand Down Expand Up @@ -244,7 +244,7 @@ enum ofp_group_mod_command(wire_type=uint16_t) {
OFPGC_DELETE = 2,
};

enum ofp_group_type(wire_type=uint8_t) {
enum ofp_group_type(wire_type=uint8_t, complete=True) {
OFPGT_ALL = 0,
OFPGT_SELECT = 1,
OFPGT_INDIRECT = 2,
Expand Down
4 changes: 2 additions & 2 deletions openflow_input/standard-1.3
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ enum ofp_port(wire_type=uint32_t) {
OFPP_ANY = 0xffffffff,
};

enum ofp_type(wire_type=uint8_t) {
enum ofp_type(wire_type=uint8_t, complete=True) {
OFPT_HELLO = 0,
OFPT_ERROR = 1,
OFPT_ECHO_REQUEST = 2,
Expand Down Expand Up @@ -267,7 +267,7 @@ enum ofp_group_mod_command(wire_type=uint16_t) {
OFPGC_DELETE = 2,
};

enum ofp_group_type(wire_type=uint8_t) {
enum ofp_group_type(wire_type=uint8_t, complete=True) {
OFPGT_ALL = 0,
OFPGT_SELECT = 1,
OFPGT_INDIRECT = 2,
Expand Down
4 changes: 2 additions & 2 deletions openflow_input/standard-1.4
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ enum ofp_port(wire_type=uint32_t) {
OFPP_ANY = 0xffffffff,
};

enum ofp_type(wire_type=uint8_t) {
enum ofp_type(wire_type=uint8_t, complete=True) {
OFPT_HELLO = 0,
OFPT_ERROR = 1,
OFPT_ECHO_REQUEST = 2,
Expand Down Expand Up @@ -272,7 +272,7 @@ enum ofp_group_mod_command(wire_type=uint16_t) {
OFPGC_DELETE = 2,
};

enum ofp_group_type(wire_type=uint8_t) {
enum ofp_group_type(wire_type=uint8_t, complete=True) {
OFPGT_ALL = 0,
OFPGT_SELECT = 1,
OFPGT_INDIRECT = 2,
Expand Down
4 changes: 2 additions & 2 deletions openflow_input/standard-1.5
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct of_uint8 {
/* ------------------------------------------- HEADER ------------------------------------- */

/* Type for header */
enum ofp_type(wire_type=uint8_t) {
enum ofp_type(wire_type=uint8_t, complete=True) {
OFPT_HELLO = 0,
OFPT_ERROR = 1,
OFPT_ECHO_REQUEST = 2,
Expand Down Expand Up @@ -748,7 +748,7 @@ enum ofp_group_mod_command(wire_type=uint16_t) {
};

/* Group types */
enum ofp_group_type(wire_type=uint8_t) {
enum ofp_group_type(wire_type=uint8_t, complete=True) {
OFPGT_ALL = 0,
OFPGT_SELECT = 1,
OFPGT_INDIRECT = 2,
Expand Down