Fix wrong netlink port id check
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Mon, 31 Jul 2017 11:20:55 +0000 (20:20 +0900)
committerBrenden Blanco <bblanco@gmail.com>
Tue, 1 Aug 2017 16:36:43 +0000 (09:36 -0700)
commitbb9b92ab1ade08f12956004d19016f2b4aeb5bd6
tree0b709b59692ba53972a530d9516896ac55fb930b
parent861102b4372cadef3d7ee9a03fe46bdbdcf37565
Fix wrong netlink port id check

As per man netlink, nlmsg_pid is not process id and in fact a value
different from process id can be used.

  bpf: Wrong pid -1615084642, expected 24407

This problem can be triggered by using pyroute2 with bcc.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
src/cc/libbpf.c