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:
gechangwei 2019-09-27 11:24:20 +08:00
parent 10307e9f2a
commit 4e0442b2ab
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);