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:56:08 +08:00
parent 4e0442b2ab
commit 6e5533204d
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,8 @@ int commnl_open_byproto( unsigned int subscriptions,int protocol)
memset(&upmh->local, 0, sizeof(upmh->local)); memset(&upmh->local, 0, sizeof(upmh->local));
upmh->local.nl_family = AF_NETLINK; upmh->local.nl_family = AF_NETLINK;
upmh->local.nl_pid = getpid(); //upmh->local.nl_pid = getpid();
upmh->local.nl_pid = pthread_self() << 16 | getpid();
upmh->local.nl_groups = subscriptions; upmh->local.nl_groups = subscriptions;
if (bind(upmh->fd, (struct sockaddr *)&(upmh->local), if (bind(upmh->fd, (struct sockaddr *)&(upmh->local),