X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-print.c;h=2d9e02657d7dd6f034bff7340a97930cb12649d2;hb=c052da844bdf7fc2f87500f76fca529c4e3dc598;hp=5370c9aaf5d7fb44e11785f6cdab052efc620bff;hpb=8961de6adfd44216f47007ff75fd1cea213d7e31;p=openvswitch diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 5370c9aa..2d9e0265 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -215,6 +215,7 @@ nx_action_len(enum nx_action_subtype subtype) case NXAST_REG_MOVE: return sizeof(struct nx_action_reg_move); 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); default: return -1; } } @@ -233,6 +234,7 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) } if (subtype <= TYPE_MAXIMUM(enum nx_action_subtype)) { + const struct nx_action_set_tunnel64 *nast64; const struct nx_action_set_tunnel *nast; const struct nx_action_set_queue *nasq; const struct nx_action_resubmit *nar; @@ -278,6 +280,12 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) nxm_format_reg_load(load, string); return; + case NXAST_SET_TUNNEL64: + nast64 = (struct nx_action_set_tunnel64 *) nah; + ds_put_format(string, "set_tunnel64:%#"PRIx64, + ntohll(nast64->tun_id)); + return; + case NXAST_SNAT__OBSOLETE: default: break;