Adapt to netlink changes introduced in kernel v3.8

The kernel assigns nt_pid(portid) the process ID to the first netlink socket.
For subsequent netlink socket that the process creates, it assigns value
between 0xFFFFFFFFFFFFEFFF(-4097) and 0x8000000000000000(-2147483648).

pre-v3.8 netlink presents portid in procfs as signed int.
v3.8 changes presentation of portid to unsigned.
This change has no impact for the portid which was assigned the process id.
But in other cases, it causes trouble for Java Integer to decode these values,
because they are larger than the Integer.MAX_VALUE.
To decode these unsigned int values, we have to use Java Long type.

Change-Id: If49f9f394ee4a09e8cd3aa7ccd639c22707bbace
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
1 file changed