X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-parse.h;h=a68796e5f489010ecc16201463a456f3de31b0b9;hb=c0a56d9fe1fdb57220b9c1e2f709ea2db5d6489d;hp=aa0489c0c6cf0670b91750866ad1af6770a19804;hpb=d295e8e97acae13552a5b220d3fbcff8201064a2;p=openvswitch diff --git a/lib/ofp-parse.h b/lib/ofp-parse.h index aa0489c0..a68796e5 100644 --- a/lib/ofp-parse.h +++ b/lib/ofp-parse.h @@ -20,14 +20,21 @@ #define OFP_PARSE_H 1 #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 *); #endif /* ofp-parse.h */