modified v6 support in strace again
Arkadiusz Miskiewicz
misiek at pld.org.pl
Tue Sep 19 21:59:05 UTC 2000
Hi,
I modified ipv6 patch for strace again. Now it supports
link-local scope id as interface name:
20761 connect(8, {sin_family=AF_INET6, sin6_port=htons(79),
inet_pton(AF_INET6, "fe80::260:52ff:fe0b:ff81", &sin6_addr),
sin6_flowinfo=0, sin6_scope_id=if_nametoindex("lo")}, 28) = 0
(see attachmnt); and small patch:
diff -urN strace-4.2.org/Makefile.in strace-4.2/Makefile.in
--- strace-4.2.org/Makefile.in Tue Sep 19 12:55:54 2000
+++ strace-4.2/Makefile.in Tue Sep 19 12:56:03 2000
@@ -39,8 +39,9 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
-bindir = $(exec_prefix)/bin
-man1dir = $(prefix)/man/man1
+bindir = @bindir@
+mandir = @mandir@
+man1dir = $(mandir)/man1
man1ext = .1
SHELL = /bin/sh
diff -urN strace-4.2.org/file.c strace-4.2/file.c
--- strace-4.2.org/file.c Tue Sep 19 12:55:54 2000
+++ strace-4.2/file.c Tue Sep 19 12:56:15 2000
@@ -35,11 +35,14 @@
#include <dirent.h>
#ifdef linux
#define dirent kernel_dirent
+#define dirent64 kernel_dirent64
#include <linux/types.h>
#include <linux/dirent.h>
#undef dirent
+#undef dirent64
#else
#define kernel_dirent dirent
+#define kernel_dirent64 dirent64
#endif
#ifdef linux
@@ -611,7 +614,7 @@
realprintstat(tcp, &statbuf);
}
-#ifdef STAT64
+#ifdef HAVE_STAT64
static void
printstat64(tcp, addr)
struct tcb *tcp;
diff -urN strace-4.2.org/system.c strace-4.2/system.c
--- strace-4.2.org/system.c Tue Sep 19 12:55:54 2000
+++ strace-4.2/system.c Tue Sep 19 12:56:03 2000
@@ -1435,6 +1435,9 @@
{ KERN_PROF, "KERN_PROF" },
{ KERN_NODENAME, "KERN_NODENAME" },
{ KERN_DOMAINNAME, "KERN_DOMAINNAME" },
+#ifdef KERN_CAP_BSET
+ { KERN_CAP_BSET, "KERN_CAP_BSET" },
+#endif
#ifdef KERN_SECURELVL
{ KERN_SECURELVL, "KERN_SECURELVL" },
#endif
--
Arkadiusz Miśkiewicz http://www.misiek.eu.org/ipv6/
PLD GNU/Linux [IPv6 enabled] http://www.pld.org.pl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strace-4.2-ipv6-20000919.patch.gz
Type: application/octet-stream
Size: 1706 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20000919/ab2c1c95/attachment.obj>
More information about the Strace-devel
mailing list