[PATCH] correct PID printing in print_header_content()

Thomas Graf tgraf at infradead.org
Wed Oct 13 08:25:51 EDT 2010


On Thu, Apr 22, 2010 at 02:16:10PM +0200, Jirka Klimes wrote:
> Hello,
> 
> I've found that a PID returned in an error message is not correct.
> After digging into it, found that PID created in generate_local_port() is
> put to output. However, this is not PID of the application, rather an enhanced 
> identifier in highest 10 bits.
> So the patch removes these additional bits when printing.

This is intentional. The traditional naming PID for this was a bad choice.
When debugging applications requiring multiple netlink sockets we still want
to be able to know which sockets produced/consumed a certain message.



More information about the libnl mailing list