[PATCH] Decode protocol arg for netlink socket

Dmitry V. Levin ldv at altlinux.org
Tue Mar 11 23:07:31 UTC 2014


On Tue, Mar 11, 2014 at 11:37:37PM +0900, Masatake YAMATO wrote:
> @@ -2059,7 +2134,7 @@ sys_socketpair(struct tcb *tcp)
>  		tprints(", ");
>  		switch (tcp->u_arg[0]) {
>  		case PF_INET:
> -			printxval(protocols, tcp->u_arg[2], "IPPROTO_???");
> +			printxval(inet_protocols, tcp->u_arg[2], "IPPROTO_???");
>  			break;
>  #ifdef PF_IPX
>  		case PF_IPX:

The only supported domain for socketpair syscall is AF_UNIX, so
no decoding related to other domains is required for socketpair.

I'll remove this useless code from sys_socketpair and apply your patch
without this hunk.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140312/dc339190/attachment.bin>


More information about the Strace-devel mailing list