]> granicus.if.org Git - strace/commit
Change unix_diag requests to use exact match instead of full dump
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 31 Jan 2016 00:35:29 +0000 (00:35 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 3 Feb 2016 12:43:22 +0000 (12:43 +0000)
commit69bfc89770152033d4aa0bc5673fc46e65d89838
treedd76cb24776ba0b8f2ad051d3bad5cc153254076
parent3c86e0ea5d2c1a528d91d76d27c8ae83c02cf2b9
Change unix_diag requests to use exact match instead of full dump

* socketutils.c (unix_send_query): Remove NLM_F_DUMP from nlmsg_flags,
initialize udiag_cookie.
* tests/netlink_unix_diag.c (send_query): Remove "family" and "proto"
arguments, add "inode" argument, remove NLM_F_DUMP from nlmsg_flags,
initialize udiag_ino and udiag_cookie.
(check_responses): Add "inode" argument, check inode match.
(main): Pass listening socket inode to send_query and check_responses.
socketutils.c
tests/netlink_unix_diag.c