[NETFILTER]: Kill nf_debug
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committad av
David S. Miller

förälder
e45b1be8bc
incheckning
18b8afc771
@@ -200,10 +200,6 @@ static inline int ip_local_deliver_finish(struct sk_buff *skb)
|
||||
{
|
||||
int ihl = skb->nh.iph->ihl*4;
|
||||
|
||||
#ifdef CONFIG_NETFILTER_DEBUG
|
||||
nf_debug_ip_local_deliver(skb);
|
||||
#endif /*CONFIG_NETFILTER_DEBUG*/
|
||||
|
||||
__skb_pull(skb, ihl);
|
||||
|
||||
/* Free reference early: we don't need it any more, and it may
|
||||
|
@@ -107,10 +107,6 @@ static int ip_dev_loopback_xmit(struct sk_buff *newskb)
|
||||
newskb->pkt_type = PACKET_LOOPBACK;
|
||||
newskb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||
BUG_TRAP(newskb->dst);
|
||||
|
||||
#ifdef CONFIG_NETFILTER_DEBUG
|
||||
nf_debug_ip_loopback_xmit(newskb);
|
||||
#endif
|
||||
nf_reset(newskb);
|
||||
netif_rx(newskb);
|
||||
return 0;
|
||||
@@ -192,10 +188,6 @@ static inline int ip_finish_output2(struct sk_buff *skb)
|
||||
skb = skb2;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NETFILTER_DEBUG
|
||||
nf_debug_ip_finish_output2(skb);
|
||||
#endif /*CONFIG_NETFILTER_DEBUG*/
|
||||
|
||||
nf_reset(skb);
|
||||
|
||||
if (hh) {
|
||||
@@ -415,9 +407,6 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from)
|
||||
to->nf_bridge = from->nf_bridge;
|
||||
nf_bridge_get(to->nf_bridge);
|
||||
#endif
|
||||
#ifdef CONFIG_NETFILTER_DEBUG
|
||||
to->nf_debug = from->nf_debug;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -127,7 +127,6 @@ ip_vs_dst_reset(struct ip_vs_dest *dest)
|
||||
|
||||
#define IP_VS_XMIT(skb, rt) \
|
||||
do { \
|
||||
nf_reset_debug(skb); \
|
||||
(skb)->nfcache |= NFC_IPVS_PROPERTY; \
|
||||
(skb)->ip_summed = CHECKSUM_NONE; \
|
||||
NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, (skb), NULL, \
|
||||
|
@@ -940,10 +940,6 @@ void ip_ct_refresh_acct(struct ip_conntrack *ct,
|
||||
struct sk_buff *
|
||||
ip_ct_gather_frags(struct sk_buff *skb, u_int32_t user)
|
||||
{
|
||||
#ifdef CONFIG_NETFILTER_DEBUG
|
||||
unsigned int olddebug = skb->nf_debug;
|
||||
#endif
|
||||
|
||||
skb_orphan(skb);
|
||||
|
||||
local_bh_disable();
|
||||
@@ -953,12 +949,7 @@ ip_ct_gather_frags(struct sk_buff *skb, u_int32_t user)
|
||||
if (skb) {
|
||||
ip_send_check(skb->nh.iph);
|
||||
skb->nfcache |= NFC_ALTERED;
|
||||
#ifdef CONFIG_NETFILTER_DEBUG
|
||||
/* Packet path as if nothing had happened. */
|
||||
skb->nf_debug = olddebug;
|
||||
#endif
|
||||
}
|
||||
|
||||
return skb;
|
||||
}
|
||||
|
||||
|
@@ -142,9 +142,6 @@ static int enlarge_skb(struct sk_buff **pskb, unsigned int extra)
|
||||
/* Transfer socket to new skb. */
|
||||
if ((*pskb)->sk)
|
||||
skb_set_owner_w(nskb, (*pskb)->sk);
|
||||
#ifdef CONFIG_NETFILTER_DEBUG
|
||||
nskb->nf_debug = (*pskb)->nf_debug;
|
||||
#endif
|
||||
kfree_skb(*pskb);
|
||||
*pskb = nskb;
|
||||
return 1;
|
||||
|
Referens i nytt ärende
Block a user