Mod aaa-12 描述:增加pdeliv模块打印默认关闭。
RCA: SOL: 修改人:xusaiqun 检视人:xusaiqun Signed-off-by: xusaiqun <xusaiqun@cmhi.chinamobile.com>
This commit is contained in:
parent
2c78856566
commit
90fe0e98c9
|
@ -253,7 +253,7 @@ int nf_nlmsg_multicast(struct netlinkk_cfg *g_nlcfg, struct sk_buff *skb)
|
|||
if (ret < 0)
|
||||
{
|
||||
//g_nlcfg->dfs.send_fail ++;
|
||||
printk(KERN_ERR "Error while sending pkt to user, ret id: %d\n", ret);
|
||||
//printk(KERN_ERR "Error while sending pkt to user, ret id: %d\n", ret);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -205,12 +205,14 @@ unsigned int pdelivery_hook_func(void *priv,
|
|||
int payload_len; // with padding, but ok for echo
|
||||
struct iphdr *iph;
|
||||
int ret = -1;
|
||||
|
||||
|
||||
#if 0
|
||||
iph = ip_hdr(skb);
|
||||
printk(KERN_INFO "pdelivery_hook_func:pktlen=%d,mac_header = %d IP:",skb->len,skb->mac_len);
|
||||
printk_ipaddress(iph->saddr);
|
||||
printk(KERN_INFO "-->");
|
||||
printk_ipaddress(iph->daddr);
|
||||
#endif
|
||||
|
||||
payload = skb_mac_header(skb);
|
||||
payload_len = skb->len + skb->mac_len;/**/
|
||||
|
@ -235,7 +237,7 @@ unsigned int pdelivery_hook_func(void *priv,
|
|||
/*int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);*/
|
||||
/********************************************************************************/
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
printk(KERN_DEBUG "%02x %02x %02x %02x %02x %02x %02x %02x\r\n",
|
||||
*((char*)out_payload),*((char*)out_payload+1),
|
||||
*((char*)out_payload+2),*((char*)out_payload+3),
|
||||
|
@ -249,14 +251,14 @@ unsigned int pdelivery_hook_func(void *priv,
|
|||
goto failure;
|
||||
}
|
||||
|
||||
printk(KERN_INFO "pdelivery_hook_func() end.\n");
|
||||
//printk(KERN_INFO "pdelivery_hook_func() end.\n");
|
||||
g_nlcfg.dfs.send_succ ++;
|
||||
g_nlcfg.msg_processer[NLMSG_RECV_RAW_PKT].dfs.send_succ++;
|
||||
|
||||
return NF_ACCEPT;/*must return a value*/
|
||||
|
||||
failure:
|
||||
printk(KERN_INFO " failed in pdelivery_hook_func!\n");
|
||||
//printk(KERN_INFO " failed in pdelivery_hook_func!\n");
|
||||
g_nlcfg.dfs.send_fail ++;
|
||||
g_nlcfg.msg_processer[NLMSG_RECV_RAW_PKT].dfs.send_fail++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue