]> granicus.if.org Git - strace/commit
Change unix_diag requests back to use full dump instead of exact match
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 19 Feb 2016 01:30:34 +0000 (01:30 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 19 Feb 2016 01:44:33 +0000 (01:44 +0000)
commit10c61e3b2213a63f3b5ada623cd17968d22f99b3
tree64067b9e9c89d5fa20ed2b18b3581699e514b01f
parentf20304b6aea91e48fb41f2fb9e19bfcf05e06e6e
Change unix_diag requests back to use full dump instead of exact match

Unfortunately, 64-bit linux kernel has a bug in matching inode numbers
greater than INT_MAX, so unix_diag exact match is not reliable.

This partially reverts commit 69bfc89770152033d4aa0bc5673fc46e65d89838.

* socketutils.c (unix_send_query): Add NLM_F_DUMP to nlmsg_flags,
remove initialization of udiag_cookie.
* tests/netlink_unix_diag.c (send_query): Remove "inode" argument,
add NLM_F_DUMP to nlmsg_flags, remove initialization of udiag_ino
and udiag_cookie.
(check_responses): Remove "inode" argument and its use.
(main): Remove invocation of inode_of_sockfd and passing of listening
socket inode to send_query and check_responses.
socketutils.c
tests/netlink_unix_diag.c