[PATCH v2 1/6] socketeutils: extend receive_responses() to handle other type than SOCK_DIAG_BY_FAMILY communication
Dmitry V. Levin
ldv at altlinux.org
Mon Jun 12 22:27:33 UTC 2017
On Sun, Jun 11, 2017 at 04:42:27PM +0900, Masatake YAMATO wrote:
> Now I'm working on decoding the communication on Netlink GENERIC
> protocol. For the task, many lines of receive_responses can be reused
> with two minor modifications. This is the first one.
>
> receive_responses was written for decoding the response from kernel of
> SOCK_DIAG_BY_FAMILY communication; other communications were ignored.
> This change makes the type of communication a parameter. So the function
> can be used for another type of communication.
>
> * socketutils.c (receive_responses): add a new parameter
> `expected_msg_type' to handle other type than SOCK_DIAG_BY_FAMILY
> communication.
Edited the commit message and applied, thanks.
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170613/722774fe/attachment.bin>
More information about the Strace-devel
mailing list