Home | History | Annotate | Download | only in extensions

Lines Matching refs:reject

1 /* Shared library add-on to iptables to add customized REJECT support.
17 * reject. -- Maciej Soltysiak <solt@dns.toxicfilms.tv>
58 printf("Valid reject types:\n");
74 "REJECT options:\n"
75 "--reject-with type drop input packet and send back\n"
84 { "reject-with", 1, 0, '1' },
92 struct ipt_reject_info *reject = (struct ipt_reject_info *)t->data;
95 reject->with = IPT_ICMP_PORT_UNREACHABLE;
106 struct ipt_reject_info *reject = (struct ipt_reject_info *)(*target)->data;
114 "Unexpected `!' after --reject-with");
118 reject->with = reject_table[i].with;
125 fprintf(stderr, "--reject-with echo-reply no longer"
127 exit_error(PARAMETER_PROBLEM, "unknown reject type `%s'",optarg);
146 const struct ipt_reject_info *reject
151 if (reject_table[i].with == reject->with)
154 printf("reject-with %s ", reject_table[i].name);
160 const struct ipt_reject_info *reject
165 if (reject_table[i].with == reject->with)
168 printf("--reject-with %s ", reject_table[i].name);
171 static struct iptables_target reject = {
173 .name = "REJECT",
188 register_target(&reject);