Skip to content

Commit 906535b

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: conntrack: move helper struct to nf_conntrack_helper.h
its definition is not needed in nf_conntrack.h. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 694a005 commit 906535b

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

include/net/netfilter/nf_conntrack.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,6 @@ union nf_conntrack_expect_proto {
5050
#define NF_CT_ASSERT(x)
5151
#endif
5252

53-
struct nf_conntrack_helper;
54-
55-
/* Must be kept in sync with the classes defined by helpers */
56-
#define NF_CT_MAX_EXPECT_CLASSES 4
57-
58-
/* nf_conn feature for connections that have a helper */
59-
struct nf_conn_help {
60-
/* Helper. if any */
61-
struct nf_conntrack_helper __rcu *helper;
62-
63-
struct hlist_head expectations;
64-
65-
/* Current number of expected connections */
66-
u8 expecting[NF_CT_MAX_EXPECT_CLASSES];
67-
68-
/* private helper information. */
69-
char data[];
70-
};
71-
7253
#include <net/netfilter/ipv4/nf_conntrack_ipv4.h>
7354
#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
7455

include/net/netfilter/nf_conntrack_helper.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,23 @@ struct nf_conntrack_helper {
5252
unsigned int queue_num; /* For user-space helpers. */
5353
};
5454

55+
/* Must be kept in sync with the classes defined by helpers */
56+
#define NF_CT_MAX_EXPECT_CLASSES 4
57+
58+
/* nf_conn feature for connections that have a helper */
59+
struct nf_conn_help {
60+
/* Helper. if any */
61+
struct nf_conntrack_helper __rcu *helper;
62+
63+
struct hlist_head expectations;
64+
65+
/* Current number of expected connections */
66+
u8 expecting[NF_CT_MAX_EXPECT_CLASSES];
67+
68+
/* private helper information. */
69+
char data[];
70+
};
71+
5572
struct nf_conntrack_helper *__nf_conntrack_helper_find(const char *name,
5673
u16 l3num, u8 protonum);
5774

0 commit comments

Comments
 (0)