diff options
author | Roland McGrath <roland@redhat.com> | 2002-12-30 00:51:30 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2002-12-30 00:51:30 +0000 |
commit | 6d2b34971b33d379c89c36c5ad1b0c6d5d12c453 (patch) | |
tree | 5b4bfe0ef2375b3cdadf9dd9f339e3267228b603 /net.c | |
parent | e4d289013916c73187d461bb8f4b4010f6cf3f5a (diff) | |
download | strace-6d2b34971b33d379c89c36c5ad1b0c6d5d12c453.tar.gz |
2002-12-22 Roland McGrath <roland@redhat.com>
Update to Autoconf 2.57, and Automakify with version 1.7.
* Makefile.am: New file.
* Makefile.in: File removed.
* configure.in: Moved to ...
* configure.ac: ... here. Update for Autoconf 2.5x and Automake.
* aclocal.m4: Moved to ...
* acinclude.m4: ... here. Update for Autoconf 2.5x.
* AUTHORS: New file, makes automake happy.
* autogen.sh: File removed.
* README-CVS: Update to recommend autoreconf instead.
* file.c: HAVE_ST_* -> HAVE_STRUCT_STAT_ST_*.
* net.c: HAVE_SIN6_SCOPE_ID -> HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID,
HAVE_MSG_CONTROL -> HAVE_STRUCT_MSGHDR_MSG_CONTROL.
* strace.c: *_DECLARED -> HAVE_DECL_*
* stream.c: HAVE_* -> HAVE_STRUCT_*
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -766,21 +766,21 @@ int addrlen; tprintf("sin6_port=htons(%u), inet_pton(AF_INET6, \"%s\", &sin6_addr), sin6_flowinfo=%u", ntohs(addrbuf.sa6.sin6_port), string_addr, addrbuf.sa6.sin6_flowinfo); -#ifdef HAVE_SIN6_SCOPE_ID +#ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID { #if defined(HAVE_IF_INDEXTONAME) && defined(IN6_IS_ADDR_LINKLOCAL) && defined(IN6_IS_ADDR_MC_LINKLOCAL) int numericscope = 0; if (IN6_IS_ADDR_LINKLOCAL (&addrbuf.sa6.sin6_addr) || IN6_IS_ADDR_MC_LINKLOCAL (&addrbuf.sa6.sin6_addr)) { char scopebuf[IFNAMSIZ + 1]; - + if (if_indextoname (addrbuf.sa6.sin6_scope_id, scopebuf) == NULL) numericscope++; else tprintf(", sin6_scope_id=if_nametoindex(\"%s\")", scopebuf); } else numericscope++; - + if (numericscope) #endif tprintf(", sin6_scope_id=%u", addrbuf.sa6.sin6_scope_id); @@ -798,7 +798,7 @@ int addrlen; * strace-ish, but otherwise the IPX * addresses just look monstrous... * Anyways, feel free if you don't like - * this way.. :) + * this way.. :) */ tprintf("%08lx:", (unsigned long)ntohl(addrbuf.sipx.sipx_network)); for (i = 0; i<IPX_NODE_LEN; i++) @@ -818,7 +818,7 @@ int addrlen; tprintf(", addr(%d)={%d, ", addrbuf.ll.sll_halen, addrbuf.ll.sll_hatype); - for (i=0; i<addrbuf.ll.sll_halen; i++) + for (i=0; i<addrbuf.ll.sll_halen; i++) tprintf("%02x", addrbuf.ll.sll_addr[i]); } break; @@ -860,17 +860,17 @@ long addr; tprintf(", msg_iov(%lu)=", (unsigned long)msg.msg_iovlen); tprint_iov(tcp, msg.msg_iovlen, (long) msg.msg_iov); -#ifdef HAVE_MSG_CONTROL +#ifdef HAVE_STRUCT_MSGHDR_MSG_CONTROL tprintf(", msg_controllen=%lu", (unsigned long)msg.msg_controllen); - if (msg.msg_controllen) + if (msg.msg_controllen) tprintf(", msg_control=%#lx, ", (unsigned long) msg.msg_control); tprintf(", msg_flags="); if (printflags(msg_flags, msg.msg_flags)==0) tprintf("0"); -#else /* !HAVE_MSG_CONTROL */ +#else /* !HAVE_STRUCT_MSGHDR_MSG_CONTROL */ tprintf("msg_accrights=%#lx, msg_accrightslen=%u", (unsigned long) msg.msg_accrights, msg.msg_accrightslen); -#endif /* !HAVE_MSG_CONTROL */ +#endif /* !HAVE_STRUCT_MSGHDR_MSG_CONTROL */ tprintf("}"); } @@ -1208,7 +1208,7 @@ struct tcb *tcp; tprintf("]"); break; #endif /* PF_IPX */ - default: + default: tprintf("%lu", tcp->u_arg[2]); break; } @@ -1265,7 +1265,7 @@ struct tcb *tcp; /* SOL_AX25 SOL_ROSE SOL_ATALK SOL_NETROM SOL_UDP SOL_DECNET SOL_X25 * etc. still need work */ - default: + default: tprintf("%lu", tcp->u_arg[2]); break; } @@ -1404,7 +1404,7 @@ int len; break; #endif - /* SOL_AX25 SOL_ATALK SOL_NETROM SOL_UDP SOL_DECNET SOL_X25 + /* SOL_AX25 SOL_ATALK SOL_NETROM SOL_UDP SOL_DECNET SOL_X25 * etc. still need work */ default: @@ -1414,7 +1414,7 @@ int len; /* default arg printing */ tprintf (", "); - + if (len == sizeof (int)) { printnum(tcp, addr, "%ld"); } @@ -1502,7 +1502,7 @@ int (*func) (); for (i = 0; i < tcp->u_nargs; i++) tcp->u_arg[i] = tcp->u_arg[i + 1]; return func (tcp); - + } return func (tcp); @@ -1581,7 +1581,7 @@ struct tcb *tcp; tprintf ("%ld, ", tcp->u_arg [1]); } tprintf ("%ld, ", tcp->u_arg [2]); - } + } else { if (tcp->u_arg[3] == 0 || syserror(tcp)) { tprintf("%#lx", tcp->u_arg[3]); |