aboutsummaryrefslogtreecommitdiffstats
path: root/main/ipfw-grsec/ipfw-cgroup.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-01-24 10:17:01 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-01-24 10:17:01 +0000
commiteeccca281ddf09a5e6c514c7151915384d141a84 (patch)
treebf8d52b768ca434d63802fcf0c67578e5377f1a0 /main/ipfw-grsec/ipfw-cgroup.patch
parent4e6dc966c123cbbe50acc9353eac554e4ebec4fa (diff)
downloadaports-eeccca281ddf09a5e6c514c7151915384d141a84.tar.bz2
aports-eeccca281ddf09a5e6c514c7151915384d141a84.tar.xz
main/ipfw-grsec: new aport
Diffstat (limited to 'main/ipfw-grsec/ipfw-cgroup.patch')
-rw-r--r--main/ipfw-grsec/ipfw-cgroup.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/ipfw-grsec/ipfw-cgroup.patch b/main/ipfw-grsec/ipfw-cgroup.patch
new file mode 100644
index 0000000000..23942e7a24
--- /dev/null
+++ b/main/ipfw-grsec/ipfw-cgroup.patch
@@ -0,0 +1,34 @@
+--- ipfw3-2012.orig/glue.h
++++ ipfw3-2012/glue.h
+@@ -377,13 +377,29 @@
+ #define flow_daddr fl.nl_u.ip4_u
+ #endif
+
+-#endif /* __linux__ */
+-
+ /*
+ * Do not load prio_heap.h header because of conflicting names
+ * with our heap functions defined in include/netinet/ipfw/dn_heap.h
+ */
+ #define _LINUX_PRIO_HEAP_H
++
++/* Do however declare the structure... */
++/**
++ * struct ptr_heap - simple static-sized priority heap
++ * @ptrs - pointer to data area
++ * @max - max number of elements that can be stored in @ptrs
++ * @size - current number of valid elements in @ptrs (in the range 0..@size-1
++ * @gt: comparison operator, which should implement "greater than"
++ */
++struct ptr_heap {
++ void **ptrs;
++ int max;
++ int size;
++ int (*gt)(void *, void *);
++};
++
++#endif /* __linux__ */
++
+ /*
+ * The following define prevent the ipv6.h header to be loaded.
+ * Starting from the 2.6.38 kernel the ipv6.h file, which is included