summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/netlink-conntrack.c8
-rw-r--r--lib/netlink-protocol.h1
2 files changed, 1 insertions, 8 deletions
diff --git a/lib/netlink-conntrack.c b/lib/netlink-conntrack.c
index 5132bf283..d83b09a4f 100644
--- a/lib/netlink-conntrack.c
+++ b/lib/netlink-conntrack.c
@@ -75,14 +75,6 @@ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
#define IPS_UNTRACKED_BIT 12
#define IPS_UNTRACKED (1 << IPS_UNTRACKED_BIT)
-#ifdef _WIN32
-#ifdef NETLINK_NETFILTER
-#undef NETLINK_NETFILTER
-#endif
-/* Reuse same socket for nfgenmsg and genlmsghdr in Windows*/
-#define NETLINK_NETFILTER NETLINK_GENERIC
-#endif
-
static const struct nl_policy nfnlgrp_conntrack_policy[] = {
[CTA_TUPLE_ORIG] = { .type = NL_A_NESTED, .optional = false },
[CTA_TUPLE_REPLY] = { .type = NL_A_NESTED, .optional = false },
diff --git a/lib/netlink-protocol.h b/lib/netlink-protocol.h
index 893805576..a7b9a65fa 100644
--- a/lib/netlink-protocol.h
+++ b/lib/netlink-protocol.h
@@ -38,6 +38,7 @@
#include <linux/genetlink.h>
#else
+#define NETLINK_NETFILTER 12
#define NETLINK_GENERIC 16
/* nlmsg_flags bits. */