]> granicus.if.org Git - strace/commit
net: enhance decoding of IP_ADD_MEMBERSHIP et al socket options
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 9 Jul 2017 18:43:34 +0000 (18:43 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 9 Jul 2017 18:43:34 +0000 (18:43 +0000)
commit492517e35f7a73d9e352710324bd0ca3f6583b05
treeb678036ed42974998268048c4cb55c9ea793dcab
parentb5f7cde8a58e1215f4379dd4b2b1b9e366275cb4
net: enhance decoding of IP_ADD_MEMBERSHIP et al socket options

* net.c (print_mreq, print_mreq6): Treat negative option length
as invalid to match the kernel behaviour.  When the option length
is invalid, print the address.
* NEWS: Mention it.
* tests/ip_mreq.c (main): Check it.  Update expected output.
NEWS
net.c
tests/ip_mreq.c