Fixes behavior of
    utilities/ovs-ofctl parse-flow 'ip,ip_frag=any,actions=drop'
and other cases that invoke this function on the ip_frag field.

Reported-by: love you <thunder.lov...@gmail.com>
Signed-off-by: Ben Pfaff <b...@nicira.com>
---
 AUTHORS         |    1 +
 lib/meta-flow.c |    6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index d718038..5a5d1e6 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -160,6 +160,7 @@ YAMAMOTO Takashi        yamam...@valinux.co.jp
 Yongqiang Liu           liuyq7...@gmail.com
 kk yap                  yap...@stanford.edu
 likunyun                kunyu...@hotmail.com
+love you                thunder.lov...@gmail.com
 冯全树(Crab)            fqs...@126.com
 胡靖飞                  hujingfei...@msn.com
 
diff --git a/lib/meta-flow.c b/lib/meta-flow.c
index 7a63922..29f0b0d 100644
--- a/lib/meta-flow.c
+++ b/lib/meta-flow.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2012 Nicira, Inc.
+ * Copyright (c) 2011, 2012, 2013 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -1604,8 +1604,8 @@ mf_set_wild(const struct mf_field *mf, struct cls_rule 
*rule)
         break;
 
     case MFF_IP_FRAG:
-        rule->wc.nw_frag_mask |= FLOW_NW_FRAG_MASK;
-        rule->flow.nw_frag &= ~FLOW_NW_FRAG_MASK;
+        rule->wc.nw_frag_mask = 0;
+        rule->flow.nw_frag = 0;
         break;
 
     case MFF_ARP_OP:
-- 
1.7.10.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to