1 diff -urN strace-4.0.orig/config.h.in strace-4.0/config.h.in
2 --- strace-4.0.orig/config.h.in Mon Aug 16 14:53:44 1999
3 +++ strace-4.0/config.h.in Mon Aug 16 15:37:36 1999
5 /* Define if you have the getdents function. */
8 +/* Define if you have the inet_ntop function. */
11 /* Define if you have the mctl function. */
14 diff -urN strace-4.0.orig/configure.in strace-4.0/configure.in
15 --- strace-4.0.orig/configure.in Mon Aug 16 14:53:44 1999
16 +++ strace-4.0/configure.in Mon Aug 16 15:37:28 1999
20 AC_CHECK_LIB(nsl, main)
21 -AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg)
22 +AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop)
23 AC_CHECK_HEADERS(sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h)
26 diff -urN strace-4.0.orig/net.c strace-4.0/net.c
27 --- strace-4.0.orig/net.c Mon Aug 16 14:53:44 1999
28 +++ strace-4.0/net.c Mon Aug 16 15:40:02 1999
31 struct sockaddr_in *sin = (struct sockaddr_in *) &sa;
32 struct sockaddr_un sau;
33 +#ifdef HAVE_INET_NTOP
34 + struct sockaddr_in6 sa6;
35 + char string_addr[100];
38 struct sockaddr_ipx sipx;
41 tprintf("sin_port=htons(%u), sin_addr=inet_addr(\"%s\")}",
42 ntohs(sin->sin_port), inet_ntoa(sin->sin_addr));
44 +#ifdef HAVE_INET_NTOP
46 + if (umove(tcp, addr, &sa6) < 0)
47 + tprintf("{sin6_family=AF_INET6, ...}");
50 + tprintf("{sin6_family=AF_INET6, ");
51 + inet_ntop(AF_INET6, &sa6.sin6_addr, string_addr, sizeof(string_addr));
52 + tprintf("sin6_port=htons(%u), inet_pton(AF_INET6, \"%s\", &sin6_addr), sin6_flowinfo=htonl(%u)}",
53 + ntohs(sa6.sin6_port), string_addr, ntohl(sa6.sin6_flowinfo));
57 #if defined(AF_IPX) && defined(linux)
59 if (umove(tcp, addr, &sipx)<0)