X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-print.c;h=d88a574cbb8eac69c42e25f340725082fcf8fd58;hb=406e37ecf554529e9380ef06863d85ccc94009d1;hp=63edb79c41c520de5618ef2dbfb9fdf9717ef44c;hpb=49ad0403a79ed166fad156dd649f8f9d63fc9dc3;p=openvswitch diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 63edb79c..d88a574c 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -30,6 +30,7 @@ #include "compiler.h" #include "dynamic-string.h" #include "flow.h" +#include "multipath.h" #include "nx-match.h" #include "ofp-util.h" #include "ofpbuf.h" @@ -216,6 +217,7 @@ nx_action_len(enum nx_action_subtype subtype) case NXAST_REG_LOAD: return sizeof(struct nx_action_reg_load); case NXAST_NOTE: return -1; case NXAST_SET_TUNNEL64: return sizeof(struct nx_action_set_tunnel64); + case NXAST_MULTIPATH: return sizeof(struct nx_action_multipath); default: return -1; } } @@ -240,6 +242,7 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) const struct nx_action_resubmit *nar; const struct nx_action_reg_move *move; const struct nx_action_reg_load *load; + const struct nx_action_multipath *nam; switch ((enum nx_action_subtype) subtype) { case NXAST_RESUBMIT: @@ -281,11 +284,16 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) return; case NXAST_SET_TUNNEL64: - nast64 = (struct nx_action_set_tunnel64 *) nah; + nast64 = (const struct nx_action_set_tunnel64 *) nah; ds_put_format(string, "set_tunnel64:%#"PRIx64, ntohll(nast64->tun_id)); return; + case NXAST_MULTIPATH: + nam = (const struct nx_action_multipath *) nah; + multipath_format(nam, string); + return; + case NXAST_SNAT__OBSOLETE: default: break;