From 7ac0f8dbf41c185e3e8d3cc9d033467575c99542 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 20 May 2010 15:43:13 -0700 Subject: [PATCH] ofproto: Fix byte order for OFP_VLAN_NONE to dl_vlan in struct flow. This is not a bug, since OFP_VLAN_NONE is all-1-bits, but it is still best to get it correct. --- ofproto/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 050b4df1a..aaf4ad6ee 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2490,7 +2490,7 @@ do_xlate_actions(const union ofp_action *in, size_t n_in, case OFPAT_STRIP_VLAN: odp_actions_add(ctx->out, ODPAT_STRIP_VLAN); - ctx->flow.dl_vlan = OFP_VLAN_NONE; + ctx->flow.dl_vlan = htons(OFP_VLAN_NONE); ctx->flow.dl_vlan_pcp = 0; break; -- 2.43.0