]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Define IPPROTO_ESP and IPPROTO_AH in case of primitive headers.
authorRusty Russell <rusty@linuxcare.com.au>
Tue, 19 Dec 2000 04:45:23 +0000 (04:45 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 19 Dec 2000 04:45:23 +0000 (04:45 +0000)
iptables.c

index 73f400b5330e8b84a945c10758fb9e506fc70aa6..eb679df841900a18a6f1535013bd77bcb31fec85 100644 (file)
@@ -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 },