summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorrusty <rusty>2000-12-19 04:45:23 +0000
committerrusty <rusty>2000-12-19 04:45:23 +0000
commitb7339c8d06b386955f9acec33b6969b40c996d32 (patch)
tree9680caa1c7023e9356a824032d95802e99899a0d /iptables.c
parent917547328c7bca27c7c096e60755b5b2dfdfcf8b (diff)
Define IPPROTO_ESP and IPPROTO_AH in case of primitive headers.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/iptables.c b/iptables.c
index 73f400b..eb679df 100644
--- a/iptables.c
+++ b/iptables.c
@@ -196,6 +196,14 @@ struct pprot {
u_int8_t num;
};
+/* Primitive headers... */
+#ifndef IPPROTO_ESP
+#define IPPROTO_ESP 50
+#endif
+#ifndef IPPROTO_AH
+#define IPPROTO_AH 51
+#endif
+
static const struct pprot chain_protos[] = {
{ "tcp", IPPROTO_TCP },
{ "udp", IPPROTO_UDP },