From 9ffc60af006d711a63a289956c056519209d0a07 Mon Sep 17 00:00:00 2001 From: Christian Deacon Date: Sat, 25 Jul 2020 15:58:30 +0000 Subject: [PATCH] Allow only layer 3 filtering. --- src/xdpfw_kern.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/xdpfw_kern.c b/src/xdpfw_kern.c index b0b9f89..4e4d99c 100644 --- a/src/xdpfw_kern.c +++ b/src/xdpfw_kern.c @@ -319,20 +319,6 @@ int xdp_prog_main(struct xdp_md *ctx) continue; } - // Check layer 4 filters. - if (iph->protocol == IPPROTO_TCP && !filter[i]->tcpopts.enabled) - { - continue; - } - else if (iph->protocol == IPPROTO_UDP && !filter[i]->udpopts.enabled) - { - continue; - } - else if (iph->protocol == IPPROTO_ICMP && !filter[i]->icmpopts.enabled) - { - continue; - } - // Do TCP options. if (iph->protocol == IPPROTO_TCP && filter[i]->tcpopts.enabled) {