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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
---
 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        [email protected]
 Yongqiang Liu           [email protected]
 kk yap                  [email protected]
 likunyun                [email protected]
+love you                [email protected]
 冯全树(Crab)            [email protected]
 胡靖飞                  [email protected]
 
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
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to