]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipnetns.c
ipnetns: treat NETNSA_NSID and NETNSA_CURRENT_NSID as signed
authorGuillaume Nault <gnault@redhat.com>
Fri, 8 Nov 2019 17:00:12 +0000 (18:00 +0100)
committerDavid Ahern <dsahern@gmail.com>
Sat, 9 Nov 2019 01:33:00 +0000 (01:33 +0000)
commitf19966efeedf5292f003aaccecc3ac3a8a069b28
treec8662836e6dcf50f52556fdca143ff9f5e0d5154
parentc3f69bf923dea50e48564fd520fec6314ddbcf5f
ipnetns: treat NETNSA_NSID and NETNSA_CURRENT_NSID as signed

These attributes are signed (with -1 meaning NETNSA_NSID_NOT_ASSIGNED).
So let's use rta_getattr_s32() and print_int() instead of their
unsigned counterpart to avoid confusion.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipnetns.c