X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fofp-parse.c;h=06d5bd11d6cf61dc62aa952d6b5f0d60f2116407;hb=b14c5fe9bd85b440d1727934c84d5f7fded051f7;hp=cc1419a0eb2ad9e34df0818d34e7f974151f759b;hpb=5682f723319241223baa7250ed215e1359dd6d8c;p=openvswitch diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index cc1419a0..06d5bd11 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -263,6 +263,11 @@ str_to_action(char *str, struct ofpbuf *b) nast->vendor = htonl(NX_VENDOR_ID); nast->subtype = htons(NXAST_SET_TUNNEL); nast->tun_id = htonl(str_to_u32(arg)); + } else if (!strcasecmp(act, "drop_spoofed_arp")) { + struct nx_action_header *nah; + nah = put_action(b, sizeof *nah, OFPAT_VENDOR); + nah->vendor = htonl(NX_VENDOR_ID); + nah->subtype = htons(NXAST_DROP_SPOOFED_ARP); } else if (!strcasecmp(act, "output")) { put_output_action(b, str_to_u32(arg)); } else if (!strcasecmp(act, "enqueue")) {