netfilter: move nf_bridge_frag_data struct definition to a more appropriate header.
There is a struct definition function in nf_conntrack_bridge.h which is not specific to conntrack and is used elswhere in netfilter. Move it into netfilter_bridge.h. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:

کامیت شده توسط
Pablo Neira Ayuso

والد
e2f1cbb165
کامیت
46705b070c
@@ -26,9 +26,9 @@
|
||||
*/
|
||||
static int nf_br_ip_fragment(struct net *net, struct sock *sk,
|
||||
struct sk_buff *skb,
|
||||
struct nf_ct_bridge_frag_data *data,
|
||||
struct nf_bridge_frag_data *data,
|
||||
int (*output)(struct net *, struct sock *sk,
|
||||
const struct nf_ct_bridge_frag_data *data,
|
||||
const struct nf_bridge_frag_data *data,
|
||||
struct sk_buff *))
|
||||
{
|
||||
int frag_max_size = BR_INPUT_SKB_CB(skb)->frag_max_size;
|
||||
@@ -278,7 +278,7 @@ static unsigned int nf_ct_bridge_pre(void *priv, struct sk_buff *skb,
|
||||
}
|
||||
|
||||
static void nf_ct_bridge_frag_save(struct sk_buff *skb,
|
||||
struct nf_ct_bridge_frag_data *data)
|
||||
struct nf_bridge_frag_data *data)
|
||||
{
|
||||
if (skb_vlan_tag_present(skb)) {
|
||||
data->vlan_present = true;
|
||||
@@ -293,10 +293,10 @@ static void nf_ct_bridge_frag_save(struct sk_buff *skb,
|
||||
static unsigned int
|
||||
nf_ct_bridge_refrag(struct sk_buff *skb, const struct nf_hook_state *state,
|
||||
int (*output)(struct net *, struct sock *sk,
|
||||
const struct nf_ct_bridge_frag_data *data,
|
||||
const struct nf_bridge_frag_data *data,
|
||||
struct sk_buff *))
|
||||
{
|
||||
struct nf_ct_bridge_frag_data data;
|
||||
struct nf_bridge_frag_data data;
|
||||
|
||||
if (!BR_INPUT_SKB_CB(skb)->frag_max_size)
|
||||
return NF_ACCEPT;
|
||||
@@ -319,7 +319,7 @@ nf_ct_bridge_refrag(struct sk_buff *skb, const struct nf_hook_state *state,
|
||||
|
||||
/* Actually only slow path refragmentation needs this. */
|
||||
static int nf_ct_bridge_frag_restore(struct sk_buff *skb,
|
||||
const struct nf_ct_bridge_frag_data *data)
|
||||
const struct nf_bridge_frag_data *data)
|
||||
{
|
||||
int err;
|
||||
|
||||
@@ -340,7 +340,7 @@ static int nf_ct_bridge_frag_restore(struct sk_buff *skb,
|
||||
}
|
||||
|
||||
static int nf_ct_bridge_refrag_post(struct net *net, struct sock *sk,
|
||||
const struct nf_ct_bridge_frag_data *data,
|
||||
const struct nf_bridge_frag_data *data,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
int err;
|
||||
|
مرجع در شماره جدید
Block a user