Created
December 11, 2012 16:31
-
-
Save tcheneau/4260079 to your computer and use it in GitHub Desktop.
fix for libnl for building libnl3 with old kernel headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 25526cfd3af3513ae5fe527cb45688873e06f983 Mon Sep 17 00:00:00 2001 | |
From: Tony Cheneau <tony.cheneau@amnesiak.org> | |
Date: Mon, 10 Dec 2012 17:22:33 -0500 | |
Subject: [PATCH] Set three constants that are not defined in the old kernel header. | |
--- | |
lib/netfilter/exp_obj.c | 13 +++++++++++++ | |
1 files changed, 13 insertions(+), 0 deletions(-) | |
diff --git a/lib/netfilter/exp_obj.c b/lib/netfilter/exp_obj.c | |
index 182df23..7dfc6b0 100644 | |
--- a/lib/netfilter/exp_obj.c | |
+++ b/lib/netfilter/exp_obj.c | |
@@ -268,6 +268,19 @@ static void exp_dump_details(struct nl_object *a, struct nl_dump_params *p) | |
#define PRINT_FLAG(str) \ | |
{ nl_dump(p, "%s%s", fp++ ? "," : "", (str)); } | |
+/* expectation flags */ | |
+#ifndef NF_CT_EXPECT_PERMANENT | |
+#define NF_CT_EXPECT_PERMANENT 0x1 | |
+#endif | |
+ | |
+#ifndef NF_CT_EXPECT_INACTIVE | |
+#define NF_CT_EXPECT_INACTIVE 0x2 | |
+#endif | |
+ | |
+#ifndef NF_CT_EXPECT_USERSPACE | |
+#define NF_CT_EXPECT_USERSPACE 0x4 | |
+#endif | |
+ | |
if (exp->exp_flags & NF_CT_EXPECT_PERMANENT) | |
PRINT_FLAG("PERMANENT"); | |
if (exp->exp_flags & NF_CT_EXPECT_INACTIVE) | |
-- | |
1.7.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment