summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/NetProto.h
diff options
context:
space:
mode:
authorSairam Venugopal <vsairam@vmware.com>2016-06-24 18:14:34 -0700
committerGurucharan Shetty <guru@ovn.org>2016-07-01 14:07:33 -0700
commit58e1f97be2e01dbddee6e7987472c2134d61b419 (patch)
tree75dab7087df30200010db4f86aac8f1a4ce0e49d /datapath-windows/ovsext/NetProto.h
parent184bc3cae8c8c63e6d5d1634f71ea24414ac7ea2 (diff)
downloadopenvswitch-58e1f97be2e01dbddee6e7987472c2134d61b419.tar.gz
datapath-windows: Cleanup conntrack-tcp.c
Update the code to use tcp->flags. This keeps the kernel conntrack-tcp.c file in sync with userspace version. This patch also addresses an warning - 'Comparison of a boolean expression with an integer other than 0 or 1' - (tcp_flags & (TCP_ACK|TCP_RST)) == (TCP_ACK|TCP_RST)) Signed-off-by: Sairam Venugopal <vsairam@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/NetProto.h')
-rw-r--r--datapath-windows/ovsext/NetProto.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/datapath-windows/ovsext/NetProto.h b/datapath-windows/ovsext/NetProto.h
index 6cf6d8ef2..92d6611a2 100644
--- a/datapath-windows/ovsext/NetProto.h
+++ b/datapath-windows/ovsext/NetProto.h
@@ -339,16 +339,21 @@ typedef struct TCPHdr {
UINT16 dest;
UINT32 seq;
UINT32 ack_seq;
- UINT16 res1:4,
- doff:4,
- fin:1,
- syn:1,
- rst:1,
- psh:1,
- ack:1,
- urg:1,
- ece:1,
- cwr:1;
+ union {
+ struct {
+ UINT16 res1:4,
+ doff:4,
+ fin:1,
+ syn:1,
+ rst:1,
+ psh:1,
+ ack:1,
+ urg:1,
+ ece:1,
+ cwr:1;
+ };
+ UINT16 flags;
+ };
UINT16 window;
UINT16 check;
UINT16 urg_ptr;