static void
str_to_flow(char *string, struct ofp_match *match, struct ofp_action *action,
- uint16_t *table_idx)
+ uint8_t *table_idx)
{
struct field {
const char *name;
bool got_action = false;
if (table_idx) {
- *table_idx = htons(0xffff);
+ *table_idx = 0xff;
}
memset(match, 0, sizeof *match);
wildcards = OFPFW_ALL;
}
if (table_idx && !strcmp(name, "table")) {
- *table_idx = htons(atoi(value));
+ *table_idx = atoi(value);
continue;
}