X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnx-match.h;h=bd4fea27e092b79478d7a50468fe538a2a5865b0;hb=1452b28ca636521b6e16f76787524f83205ec7a3;hp=d0e1c653e48e7f3296acf545b6d2ad8b4b2a8e46;hpb=c979df0569a8e3a5e923f569b8302d1cbdf7610c;p=openvswitch diff --git a/lib/nx-match.h b/lib/nx-match.h index d0e1c653..bd4fea27 100644 --- a/lib/nx-match.h +++ b/lib/nx-match.h @@ -53,6 +53,13 @@ int nxm_check_reg_load(const struct nx_action_reg_load *, const struct flow *); void nxm_execute_reg_move(const struct nx_action_reg_move *, struct flow *); void nxm_execute_reg_load(const struct nx_action_reg_load *, struct flow *); +int nxm_field_bytes(uint32_t header); +int nxm_field_bits(uint32_t header); + +const char *nxm_parse_field_bits(const char *s, + uint32_t *headerp, int *ofsp, int *n_bitsp); +void nxm_format_field_bits(struct ds *, uint32_t header, int ofs, int n_bits); + /* Dealing with the 'ofs_nbits' members of struct nx_action_reg_load and struct * nx_action_multipath. */