diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2014-03-11 22:50:39 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-03-11 22:50:39 +0000 |
commit | 033fb910a291a26d714d277c748683e67903f44c (patch) | |
tree | e862a860c82df08b965f6a8febb0e367587f403e /net.c | |
parent | bc091e3ce1481615568ef6e35636fc45262250ff (diff) | |
download | strace-033fb910a291a26d714d277c748683e67903f44c.tar.gz strace-033fb910a291a26d714d277c748683e67903f44c.tar.bz2 strace-033fb910a291a26d714d277c748683e67903f44c.tar.xz |
Cleanup socketpair decoding
The only supported domain for socketpair syscall is AF_UNIX, so
no decoding related to other domains is required for socketpair.
* net.c (sys_socketpair): Remove support for PF_INET and PF_IPX domains,
print the protocol argument as is.
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -2056,23 +2056,7 @@ sys_socketpair(struct tcb *tcp) printxval(domains, tcp->u_arg[0], "PF_???"); tprints(", "); tprint_sock_type(tcp, tcp->u_arg[1]); - tprints(", "); - switch (tcp->u_arg[0]) { - case PF_INET: - printxval(protocols, tcp->u_arg[2], "IPPROTO_???"); - break; -#ifdef PF_IPX - case PF_IPX: - /* BTW: I don't believe this.. */ - tprints("["); - printxval(domains, tcp->u_arg[2], "PF_???"); - tprints("]"); - break; -#endif /* PF_IPX */ - default: - tprintf("%lu", tcp->u_arg[2]); - break; - } + tprintf(", %lu", tcp->u_arg[2]); } else { if (syserror(tcp)) { tprintf(", %#lx", tcp->u_arg[3]); |