Skip to content

Commit 9d2493f

Browse files
cpaaschkaber
authored andcommitted
netfilter: remove IPvX specific parts from nf_conntrack_l4proto.h
Moving the structure definitions to the corresponding IPvX specific header files. Signed-off-by: Patrick McHardy <kaber@trash.net>
1 parent c7a913c commit 9d2493f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

include/net/netfilter/nf_conntrack_l4proto.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,7 @@ struct nf_conntrack_l4proto
9090
struct module *me;
9191
};
9292

93-
/* Existing built-in protocols */
94-
extern struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6;
95-
extern struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4;
96-
extern struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6;
93+
/* Existing built-in generic protocol */
9794
extern struct nf_conntrack_l4proto nf_conntrack_l4proto_generic;
9895

9996
#define MAX_NF_CT_PROTO 256

net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <net/netfilter/nf_conntrack_l4proto.h>
2727
#include <net/netfilter/nf_conntrack_l3proto.h>
2828
#include <net/netfilter/nf_conntrack_core.h>
29+
#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
2930

3031
static bool ipv6_pkt_to_tuple(const struct sk_buff *skb, unsigned int nhoff,
3132
struct nf_conntrack_tuple *tuple)

net/netfilter/nf_conntrack_proto_tcp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include <net/netfilter/nf_conntrack_l4proto.h>
2626
#include <net/netfilter/nf_conntrack_ecache.h>
2727
#include <net/netfilter/nf_log.h>
28+
#include <net/netfilter/ipv4/nf_conntrack_ipv4.h>
29+
#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
2830

2931
/* Protects ct->proto.tcp */
3032
static DEFINE_RWLOCK(tcp_lock);

net/netfilter/nf_conntrack_proto_udp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <net/netfilter/nf_conntrack_l4proto.h>
2323
#include <net/netfilter/nf_conntrack_ecache.h>
2424
#include <net/netfilter/nf_log.h>
25+
#include <net/netfilter/ipv4/nf_conntrack_ipv4.h>
26+
#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
2527

2628
static unsigned int nf_ct_udp_timeout __read_mostly = 30*HZ;
2729
static unsigned int nf_ct_udp_timeout_stream __read_mostly = 180*HZ;

0 commit comments

Comments
 (0)