diff --git a/Platform/modules/netlink_api/libnetlink_k.c b/Platform/modules/netlink_api/libnetlink_k.c index 0344330c5..ad3f5e40c 100755 --- a/Platform/modules/netlink_api/libnetlink_k.c +++ b/Platform/modules/netlink_api/libnetlink_k.c @@ -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 { diff --git a/Platform/modules/pdelivery/pdeliverynl_kinit.c b/Platform/modules/pdelivery/pdeliverynl_kinit.c index ebfc692c9..c3cfb0c83 100644 --- a/Platform/modules/pdelivery/pdeliverynl_kinit.c +++ b/Platform/modules/pdelivery/pdeliverynl_kinit.c @@ -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++;