summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_ip.c
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2015-01-30 12:47:16 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-01-30 19:11:56 +0100
commit1bad0c75aa5696590d5cc7279ae6a6830f761d16 (patch)
tree8ba3bbec7f1f08447fbf8eeae0b59cede754aa28 /extensions/libebt_ip.c
parent535ede97cd78a10ea4aaad249a6576fbf37aebc3 (diff)
extensions: cleanup commented code in ebtables-compat extensions
This code can be cleaned up. No need for validation from userspace, the kernel will reject incorrect options. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libebt_ip.c')
-rw-r--r--extensions/libebt_ip.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/extensions/libebt_ip.c b/extensions/libebt_ip.c
index ffb7ed66..a85810bc 100644
--- a/extensions/libebt_ip.c
+++ b/extensions/libebt_ip.c
@@ -219,22 +219,6 @@ brip_parse(int c, char **argv, int invert, unsigned int *flags,
static void brip_final_check(unsigned int flags)
{
-/* struct ebt_ip_info *ipinfo = (struct ebt_ip_info *)match->data;
-
- if (entry->ethproto != ETH_P_IP || entry->invflags & EBT_IPROTO) {
- ebt_print_error("For IP filtering the protocol must be "
- "specified as IPv4");
- } else if (info->bitmask & (EBT_IP_SPORT|EBT_IP_DPORT) &&
- (!(info->bitmask & EBT_IP_PROTO) ||
- info->invflags & EBT_IP_PROTO ||
- (info->protocol!=IPPROTO_TCP &&
- info->protocol!=IPPROTO_UDP &&
- info->protocol!=IPPROTO_SCTP &&
- info->protocol!=IPPROTO_DCCP)))
- ebt_print_error("For port filtering the IP protocol must be "
- "either 6 (tcp), 17 (udp), 33 (dccp) or "
- "132 (sctp)");
-*/
if (!flags)
xtables_error(PARAMETER_PROBLEM,
"You must specify proper arguments");