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>
}
if (ctAttrs[CTA_ZONE]) {
- zone = NlAttrGetU16(ctAttrs[CTA_ZONE]);
+ zone = ntohs(NlAttrGetU16(ctAttrs[CTA_ZONE]));
}
status = OvsCtFlush(zone);
nl_msg_put_nfgenmsg(&buf, 0, AF_UNSPEC, NFNL_SUBSYS_CTNETLINK,
IPCTNL_MSG_CT_DELETE, NLM_F_REQUEST);
- nl_msg_put_be16(&buf, CTA_ZONE, flush_zone);
+ nl_msg_put_be16(&buf, CTA_ZONE, htons(flush_zone));
err = nl_transact(NETLINK_NETFILTER, &buf, NULL);
ofpbuf_uninit(&buf);