netfilter: conntrack: remove unused code in nf_conntrack_proto_generic.c
authorDavide Caratti <dcaratti@redhat.com>
Mon, 28 Aug 2017 09:52:07 +0000 (11:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Aug 2017 16:14:29 +0000 (18:14 +0200)
L4 protocol helpers for DCCP, SCTP and UDPlite can't be built as kernel
modules anymore, so we can remove code enclosed in
 #ifdef CONFIG_NF_CT_PROTO_{DCCP,SCTP,UDPLITE}_MODULE

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_generic.c

index 2bc3d0c1a5bf4ab39a08dc33c8a42472b779c6a6..2993995b690db249e08fd6922ad9306126c0f27e 100644 (file)
@@ -17,21 +17,9 @@ static unsigned int nf_ct_generic_timeout __read_mostly = 600*HZ;
 static bool nf_generic_should_process(u8 proto)
 {
        switch (proto) {
-#ifdef CONFIG_NF_CT_PROTO_SCTP_MODULE
-       case IPPROTO_SCTP:
-               return false;
-#endif
-#ifdef CONFIG_NF_CT_PROTO_DCCP_MODULE
-       case IPPROTO_DCCP:
-               return false;
-#endif
 #ifdef CONFIG_NF_CT_PROTO_GRE_MODULE
        case IPPROTO_GRE:
                return false;
-#endif
-#ifdef CONFIG_NF_CT_PROTO_UDPLITE_MODULE
-       case IPPROTO_UDPLITE:
-               return false;
 #endif
        default:
                return true;