X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-parse.h;h=a68796e5f489010ecc16201463a456f3de31b0b9;hb=8321fb9c570bd25bb8925e7b5116ab90662113b5;hp=5ad7d20ffa7a5b46cf1f04868c10740384e51ede;hpb=049c8dc2128f3d336c4b791bb34ec806ddac6b4b;p=openvswitch diff --git a/lib/ofp-parse.h b/lib/ofp-parse.h index 5ad7d20f..a68796e5 100644 --- a/lib/ofp-parse.h +++ b/lib/ofp-parse.h @@ -22,14 +22,18 @@ #include #include -struct ofp_match; -struct ofpbuf; +#include "classifier.h" -void parse_ofp_str(char *string, struct ofp_match *match, - struct ofpbuf *actions, uint8_t *table_idx, - uint16_t *out_port, uint16_t *priority, - uint16_t *idle_timeout, uint16_t *hard_timeout, - uint64_t *cookie); +struct parsed_flow { + struct cls_rule rule; + uint8_t table_idx; + uint16_t out_port; + uint16_t idle_timeout; + uint16_t hard_timeout; + uint64_t cookie; +}; + +void parse_ofp_str(struct parsed_flow *, struct ofpbuf *actions, char *string); struct ofpbuf *parse_ofp_flow_mod_str(char *string, uint16_t command); struct ofpbuf *parse_ofp_add_flow_file(FILE *);