commit | a3e6aaa5371937420dd44949d840d19726998abc | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@linuxcare.com.au> | Tue Dec 19 04:45:23 2000 +0000 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Tue Dec 19 04:45:23 2000 +0000 |
tree | 9680caa1c7023e9356a824032d95802e99899a0d | |
parent | 8e07bd78ade5e2b4636d410a897119e111ea3e6c [diff] [blame] |
Define IPPROTO_ESP and IPPROTO_AH in case of primitive headers.
diff --git a/iptables.c b/iptables.c index 73f400b..eb679df 100644 --- a/iptables.c +++ b/iptables.c
@@ -196,6 +196,14 @@ 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 },