diff options
author | Justin Pettit <jpettit@ovn.org> | 2017-12-04 23:22:40 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@ovn.org> | 2017-12-07 15:06:00 -0800 |
commit | 159cc1f4e55252b8d59e41eafb10518d226d914b (patch) | |
tree | 727e4e9143ef3655bc9042f58906fdd31dd5e654 /datapath-windows | |
parent | c43a133198667c3e3dbf356968d6c48a547f34ee (diff) | |
download | openvswitch-159cc1f4e55252b8d59e41eafb10518d226d914b.tar.gz |
datapath-windows: Correct endianness for deleting zone.
The zone Netlink attribute is supposed to be in network-byte order, but
the Windows code for deleting conntrack entries was treating it as
host-byte order.
Found by inspection.
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Sairam Venugopal <vsairam@vmware.com>
Diffstat (limited to 'datapath-windows')
-rw-r--r-- | datapath-windows/ovsext/Conntrack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Conntrack.c b/datapath-windows/ovsext/Conntrack.c index 3203411a8..edc0ec9c5 100644 --- a/datapath-windows/ovsext/Conntrack.c +++ b/datapath-windows/ovsext/Conntrack.c @@ -1076,7 +1076,7 @@ OvsCtDeleteCmdHandler(POVS_USER_PARAMS_CONTEXT usrParamsCtx, } if (ctAttrs[CTA_ZONE]) { - zone = NlAttrGetU16(ctAttrs[CTA_ZONE]); + zone = ntohs(NlAttrGetU16(ctAttrs[CTA_ZONE])); } status = OvsCtFlush(zone); |