X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofp-actions.c;h=b774a61e00e15860ecaafc2bbad351ba10194281;hb=8e61c1104eddbe737a67cbf559fcb48971f59569;hp=0d1a2acdda193ce7b32d647a1c8575487ef123fd;hpb=e3432ee978b4fd740aa4db785742a28a573e2cde;p=openvswitch diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 0d1a2acd..b774a61e 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -685,6 +685,10 @@ ofpact_from_openflow11(const union ofp_action *a, struct ofpbuf *out) ofpact_put_SET_VLAN_PCP(out)->vlan_pcp = a->vlan_pcp.vlan_pcp; break; + case OFPUTIL_OFPAT11_POP_VLAN: + ofpact_put_STRIP_VLAN(out); + break; + case OFPUTIL_OFPAT11_SET_DL_SRC: memcpy(ofpact_put_SET_ETH_SRC(out)->mac, ((const struct ofp_action_dl_addr *) a)->dl_addr, ETH_ADDR_LEN); @@ -1443,7 +1447,7 @@ ofpact_to_openflow11(const struct ofpact *a, struct ofpbuf *out) break; case OFPACT_STRIP_VLAN: - /* XXX */ + ofputil_put_OFPAT11_POP_VLAN(out); break; case OFPACT_SET_ETH_SRC: