Skip to content

Commit

Permalink
netfilter: conntrack: move helper struct to nf_conntrack_helper.h
Browse files Browse the repository at this point in the history
its definition is not needed in nf_conntrack.h.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Florian Westphal authored and ummakynes committed Apr 19, 2017
1 parent 694a005 commit 906535b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
19 changes: 0 additions & 19 deletions include/net/netfilter/nf_conntrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,6 @@ union nf_conntrack_expect_proto {
#define NF_CT_ASSERT(x)
#endif

struct nf_conntrack_helper;

/* Must be kept in sync with the classes defined by helpers */
#define NF_CT_MAX_EXPECT_CLASSES 4

/* nf_conn feature for connections that have a helper */
struct nf_conn_help {
/* Helper. if any */
struct nf_conntrack_helper __rcu *helper;

struct hlist_head expectations;

/* Current number of expected connections */
u8 expecting[NF_CT_MAX_EXPECT_CLASSES];

/* private helper information. */
char data[];
};

#include <net/netfilter/ipv4/nf_conntrack_ipv4.h>
#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>

Expand Down
17 changes: 17 additions & 0 deletions include/net/netfilter/nf_conntrack_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,23 @@ struct nf_conntrack_helper {
unsigned int queue_num; /* For user-space helpers. */
};

/* Must be kept in sync with the classes defined by helpers */
#define NF_CT_MAX_EXPECT_CLASSES 4

/* nf_conn feature for connections that have a helper */
struct nf_conn_help {
/* Helper. if any */
struct nf_conntrack_helper __rcu *helper;

struct hlist_head expectations;

/* Current number of expected connections */
u8 expecting[NF_CT_MAX_EXPECT_CLASSES];

/* private helper information. */
char data[];
};

struct nf_conntrack_helper *__nf_conntrack_helper_find(const char *name,
u16 l3num, u8 protonum);

Expand Down

0 comments on commit 906535b

Please sign in to comment.