]> granicus.if.org Git - strace/commit
net: fix decoding of optval argument of [gs]etsockopt SOL_NETLINK
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Nov 2017 00:12:46 +0000 (00:12 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Nov 2017 00:12:46 +0000 (00:12 +0000)
commit8a7030f20a79dd8368defb03fd8b74aff210ac1d
tree85cd9cbd96d03bec36e6b01b1a66f730918f030f
parent15f502c78a76d86ae23d727d01fe9c8f8d53f962
net: fix decoding of optval argument of [gs]etsockopt SOL_NETLINK

Tweak the parser to follow the kernel behaviour.

* net.c (print_getsockopt, print_setsockopt) <SOL_NETLINK>: Fetch and
print returned value as integer iff the length is >= sizeof(int),
otherwise print the address.
* NEWS: Mention this.
NEWS
net.c