Dmitry V. Levin 7bee462a64 net: decode setsockopt() multicast arguments
* configure.ac (AC_CHECK_FUNCS): Add inet_pton.
* net.c (print_mreq, print_mreq6): New functions.
(print_setsockopt): Use them to decode IP_ADD_MEMBERSHIP,
IP_DROP_MEMBERSHIP, IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP,
IPV6_JOIN_ANYCAST, and IPV6_LEAVE_ANYCAST.
* tests/ip_mreq.c: New file.
* tests/ip_mreq.expected: Likewise.
* tests/ip_mreq.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add ip_mreq.
(TESTS): Add ip_mreq.test.
(EXTRA_DIST): ip_mreq.expected.
* tests/.gitignore: Add ip_mreq.

Based on patch by Ben Noordhuis <info@bnoordhuis.nl>.
2015-06-08 23:02:27 +00:00
..
2015-03-18 22:41:17 +00:00
2015-03-18 22:41:17 +00:00
2015-02-23 22:26:06 +00:00
2015-03-16 14:26:58 +01:00
2015-03-16 14:26:58 +01:00
2015-03-18 22:41:17 +00:00
2015-01-13 00:33:56 +00:00
2015-01-13 00:33:56 +00:00
2015-03-03 01:13:10 +00:00
2013-06-18 17:07:37 +00:00
2015-01-26 19:05:40 +00:00
2015-03-18 22:41:17 +00:00
2015-03-05 05:42:30 +00:00
2014-06-18 15:18:47 +00:00
2014-06-18 15:18:47 +00:00
2014-06-18 15:18:47 +00:00
2014-06-18 15:18:47 +00:00
2014-06-18 15:18:47 +00:00
2015-03-31 20:52:41 +00:00
2015-03-31 20:52:41 +00:00
2015-03-31 20:52:41 +00:00
2015-01-13 00:33:56 +00:00