X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-print.c;h=f5eb9ad06f6f6b62b463d9a3f2098e48fe7096ed;hb=d4da3acc2a788d1c1b78c0bea6399660c7851f4a;hp=1cd946260ff2b8cfcbf3a3b20458f3da84a5770c;hpb=9b45d7f5db91cdb41eb0a2124d92885d3b3edcc9;p=openvswitch diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 1cd94626..f5eb9ad0 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -219,6 +219,7 @@ nx_action_len(enum nx_action_subtype subtype) 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); + case NXAST_AUTOPATH: return sizeof (struct nx_action_autopath); default: return -1; } } @@ -244,6 +245,7 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) const struct nx_action_reg_move *move; const struct nx_action_reg_load *load; const struct nx_action_multipath *nam; + const struct nx_action_autopath *naa; switch ((enum nx_action_subtype) subtype) { case NXAST_RESUBMIT: @@ -295,6 +297,15 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) multipath_format(nam, string); return; + case NXAST_AUTOPATH: + naa = (const struct nx_action_autopath *)nah; + ds_put_format(string, "autopath(%u,", ntohl(naa->id)); + nxm_format_field_bits(string, ntohl(naa->dst), + nxm_decode_ofs(naa->ofs_nbits), + nxm_decode_n_bits(naa->ofs_nbits)); + ds_put_char(string, ')'); + return; + case NXAST_SNAT__OBSOLETE: default: break;