mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
xt_ECHO: compile fix
This commit is contained in:
@@ -32,6 +32,8 @@ echo_tg4(struct sk_buff **poldskb, const struct xt_target_param *par)
|
|||||||
unsigned int addr_type, data_len;
|
unsigned int addr_type, data_len;
|
||||||
void *payload;
|
void *payload;
|
||||||
|
|
||||||
|
printk(KERN_INFO "dst_out=%p\n", (*poldskb)->dst->output);
|
||||||
|
|
||||||
/* This allows us to do the copy operation in fewer lines of code. */
|
/* This allows us to do the copy operation in fewer lines of code. */
|
||||||
if (skb_linearize(*poldskb) < 0)
|
if (skb_linearize(*poldskb) < 0)
|
||||||
return NF_DROP;
|
return NF_DROP;
|
||||||
@@ -75,10 +77,10 @@ echo_tg4(struct sk_buff **poldskb, const struct xt_target_param *par)
|
|||||||
|
|
||||||
addr_type = RTN_UNSPEC;
|
addr_type = RTN_UNSPEC;
|
||||||
#ifdef CONFIG_BRIDGE_NETFILTER
|
#ifdef CONFIG_BRIDGE_NETFILTER
|
||||||
if (hooknum != NF_INET_FORWARD || (newskb->nf_bridge != NULL &&
|
if (par->hooknum != NF_INET_FORWARD || (newskb->nf_bridge != NULL &&
|
||||||
newskb->nf_bridge->mask & BRNF_BRIDGED))
|
newskb->nf_bridge->mask & BRNF_BRIDGED))
|
||||||
#else
|
#else
|
||||||
if (hooknum != NF_INET_FORWARD)
|
if (par->hooknum != NF_INET_FORWARD)
|
||||||
#endif
|
#endif
|
||||||
addr_type = RTN_LOCAL;
|
addr_type = RTN_LOCAL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user