aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ipfw-grsec/ipfw-cgroup.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-02-13 19:37:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-02-14 18:50:08 +0000
commit2490b1a11bcac175094ae65a591cd3cb39b81d94 (patch)
tree5a33f317b653b311bfa3dfb2207e2653cfb59840 /unmaintained/ipfw-grsec/ipfw-cgroup.patch
parent80a1c92908e4cca0d7e78bde008822dd54f693c5 (diff)
downloadaports-2490b1a11bcac175094ae65a591cd3cb39b81d94.tar.bz2
aports-2490b1a11bcac175094ae65a591cd3cb39b81d94.tar.xz
unmaintained/ipfw-grsec: move from main
Diffstat (limited to 'unmaintained/ipfw-grsec/ipfw-cgroup.patch')
-rw-r--r--unmaintained/ipfw-grsec/ipfw-cgroup.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/unmaintained/ipfw-grsec/ipfw-cgroup.patch b/unmaintained/ipfw-grsec/ipfw-cgroup.patch
new file mode 100644
index 0000000000..23942e7a24
--- /dev/null
+++ b/unmaintained/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