From a77d89b84ad05d880f9ad7c5b5bd3f7d221d76f3 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 15 Sep 2010 13:26:08 -0700 Subject: [PATCH] Properly print drop_spoofed_arp actions when decoding OpenFlow and ODP. Also fix formatting of unknown Nicira actions in OpenFlow. --- lib/odp-util.c | 3 +++ lib/ofp-print.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 442c939a7..798e42540 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -95,6 +95,9 @@ format_odp_action(struct ds *ds, const union odp_action *a) case ODPAT_POP_PRIORITY: ds_put_cstr(ds, "pop_priority"); break; + case ODPAT_DROP_SPOOFED_ARP: + ds_put_cstr(ds, "drop_spoofed_arp"); + break; default: ds_put_format(ds, "***bad action 0x%"PRIx16"***", a->type); break; diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 870487816..78f3649ba 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -200,8 +200,12 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) break; } + case NXAST_DROP_SPOOFED_ARP: + ds_put_cstr(string, "drop_spoofed_arp"); + break; + default: - ds_put_format(string, "***unknown Nicira action:%d***\n", + ds_put_format(string, "***unknown Nicira action:%d***", ntohs(nah->subtype)); } } -- 2.39.5