diff options
author | Rusty Russell <rusty@linuxcare.com.au> | 2000-12-18 05:09:52 +0000 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2000-12-18 05:09:52 +0000 |
commit | bd8382bb9aa4963fde2b58550cffe190fad02ddc (patch) | |
tree | d581d2bb79fccfb833a35e716dbdad33652f9a6a /extensions/libipt_REJECT.c | |
parent | c45c3154a61ea9bb23d905dc251068758b46941b (diff) |
Stop --reject-with echo-reply (won't be supported soon).
Diffstat (limited to 'extensions/libipt_REJECT.c')
-rw-r--r-- | extensions/libipt_REJECT.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c index 19fe6988..84b0b917 100644 --- a/extensions/libipt_REJECT.c +++ b/extensions/libipt_REJECT.c @@ -26,8 +26,10 @@ static const struct reject_names reject_table[] = { IPT_ICMP_PORT_UNREACHABLE, "ICMP port unreachable (default)"}, {"icmp-proto-unreachable", "proto-unreach", IPT_ICMP_PROT_UNREACHABLE, "ICMP protocol unreachable"}, +#if 0 {"echo-reply", "echoreply", IPT_ICMP_ECHOREPLY, "for ICMP echo only: faked ICMP echo reply"}, +#endif {"icmp-net-prohibited", "net-prohib", IPT_ICMP_NET_PROHIBITED, "ICMP network prohibited"}, {"icmp-host-prohibited", "host-prohib", @@ -105,6 +107,11 @@ parse(int c, char **argv, int invert, unsigned int *flags, return 1; } } + /* This due to be dropped late in 2.4 pre-release cycle --RR */ + if (strncasecmp("echo-reply", optarg, strlen(optarg)) == 0 + || strncasecmp("echoreply", optarg, strlen(optarg)) == 0) + fprintf(stderr, "--reject-with echo-reply no longer" + " supported\n"); exit_error(PARAMETER_PROBLEM, "unknown reject type `%s'",optarg); default: /* Fall through */ |