Fix handling of IP but non-TCP, non-UDP packets in kernel flow_extract().
authorBen Pfaff <blp@nicira.com>
Fri, 8 Aug 2008 18:43:41 +0000 (11:43 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 8 Aug 2008 18:43:41 +0000 (11:43 -0700)
In particular, ICMP was broken.

datapath/flow.c

index 9b5a87ab3c46c0b716d372a51084e4104c57a040..36316a934d5c01bc66c6b7dd95d126782ba8160c 100644 (file)
@@ -307,6 +307,8 @@ int flow_extract(struct sk_buff *skb, uint16_t in_port,
                                         * header. */
                                        goto no_proto;
                                }
+                       } else {
+                               goto no_th;
                        }
                } else {
                        retval = 1;