From 4e0442b2ab258b9ce2cc3f9106f16d859f71db83 Mon Sep 17 00:00:00 2001 From: gechangwei Date: Fri, 27 Sep 2019 11:24:20 +0800 Subject: [PATCH] =?UTF-8?q?Mod=20aaa-12=20modify=20netlink=20api=20for=20t?= =?UTF-8?q?race=20RCA=EF=BC=9A=20SOL=EF=BC=9A=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=BA:gechangwei=20=E6=A3=80=E8=A7=86=E4=BA=BA:gechangwei?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gechangwei --- Platform/modules/pdelivery/pdeliverynl_kinit.c | 4 ++-- Platform/user/netlink_uapi/libnetlinku.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Platform/modules/pdelivery/pdeliverynl_kinit.c b/Platform/modules/pdelivery/pdeliverynl_kinit.c index 88fa86f61..b17f9a27a 100644 --- a/Platform/modules/pdelivery/pdeliverynl_kinit.c +++ b/Platform/modules/pdelivery/pdeliverynl_kinit.c @@ -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); } diff --git a/Platform/user/netlink_uapi/libnetlinku.c b/Platform/user/netlink_uapi/libnetlinku.c index 0ce5f77c5..57bb6b2f6 100644 --- a/Platform/user/netlink_uapi/libnetlinku.c +++ b/Platform/user/netlink_uapi/libnetlinku.c @@ -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);