Setting the netlink nl_pid to the pid is problematic if you want to use
multiple netlink connections in the same application or the application
runs in another pid namespace (nl_pid needs to to system-wide unique).
With nl_pid==0 the kernel automatically assigns a unique nl_pid.
Setting the netlink nl_pid to the pid is problematic if you want to use multiple netlink connections in the same application or the application runs in another pid namespace (nl_pid needs to to system-wide unique).
With nl_pid==0 the kernel automatically assigns a unique nl_pid.