From: Rusty Russell Date: Tue, 19 Dec 2000 04:45:23 +0000 (+0000) Subject: Define IPPROTO_ESP and IPPROTO_AH in case of primitive headers. X-Git-Tag: v1.2.1~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3e6aaa5371937420dd44949d840d19726998abc;p=thirdparty%2Fiptables.git Define IPPROTO_ESP and IPPROTO_AH in case of primitive headers. --- diff --git a/iptables.c b/iptables.c index 73f400b5..eb679df8 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 },