Mod aaa-12 modify netlink api for trace
RCA: SOL: 修改人:gechangwei 检视人:gechangwei Signed-off-by: gechangwei <gechangwei@cmhi.chinamobile.com>
This commit is contained in:
parent
10307e9f2a
commit
4e0442b2ab
|
@ -307,7 +307,7 @@ int pdeliv_unicast(struct sk_buff *skb, u32 portid)
|
|||
int msgtype = 0;
|
||||
|
||||
ret = commnl_unicast(g_nlcfg.sk, skb, portid);
|
||||
|
||||
/*
|
||||
if(ret < 0)
|
||||
{
|
||||
g_nlcfg.dfs.send_fail++;
|
||||
|
@ -337,7 +337,7 @@ int pdeliv_unicast(struct sk_buff *skb, u32 portid)
|
|||
pdelivnl_msg_handlers[msgtype].dfs.send_succ++;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
return(ret);
|
||||
}
|
||||
|
|
|
@ -312,6 +312,7 @@ int commnl_send(struct upmnl_handle *nl, struct nlmsghdr *n)
|
|||
int ret = -1;
|
||||
|
||||
//if(n->nlmsg_flags |NLM_F_ACK)
|
||||
n->nlmsg_pid = nl->local.nl_pid;
|
||||
|
||||
|
||||
ret = send(nl->fd, n, n->nlmsg_len, 0);
|
||||
|
|
Loading…
Reference in New Issue