diff options
Diffstat (limited to 'net/tcpview/files/patch-binary-streams')
-rw-r--r-- | net/tcpview/files/patch-binary-streams | 224 |
1 files changed, 224 insertions, 0 deletions
diff --git a/net/tcpview/files/patch-binary-streams b/net/tcpview/files/patch-binary-streams new file mode 100644 index 000000000000..e2c09be5872a --- /dev/null +++ b/net/tcpview/files/patch-binary-streams @@ -0,0 +1,224 @@ +--- detail-domain.c Fri Apr 23 04:39:51 1993 ++++ detail-domain.c Mon Mar 8 23:30:02 1999 +@@ -199,6 +199,7 @@ + case T_ANY: /* matches any type */ + strcpy(type_buf, "ANY"); + break; ++#ifdef T_UNSPEC + case T_UINFO: + strcpy(type_buf, "UINFO"); + break; +@@ -211,6 +212,7 @@ + case T_UNSPEC: + strcpy(type_buf, "UNSPEC"); + break; ++#endif + default: + sprintf(type_buf, "%d", type); + break; +@@ -633,6 +635,7 @@ + printf("; errors = %s\n", str); + MARK_WINDOW(); + ++#ifdef T_UNSPEC + case T_UINFO: + printf(" UINFO: "); + printf("%s\n", cp); +@@ -654,6 +657,12 @@ + MARK_WINDOW(); + break; + ++ case T_UNSPEC: ++ printf(" <binary data, see hex dump below>\n"); ++ INCR_PTRS(rdlength); ++ MARK_WINDOW(); ++ break; ++#endif + case T_WKS: + if (rdlength < (int)(sizeof(u_long) + 1)) + break; +@@ -730,11 +739,6 @@ + break; + + +- case T_UNSPEC: +- printf(" <binary data, see hex dump below>\n"); +- INCR_PTRS(rdlength); +- MARK_WINDOW(); +- break; + + + default: +--- detail-tcp.c Fri Apr 23 04:39:55 1993 ++++ detail-tcp.c Mon Mar 8 23:27:08 1999 +@@ -37,6 +37,7 @@ + #endif + + #include <sys/types.h> ++#include <sys/param.h> + #include <netinet/in.h> + #include <netinet/in_systm.h> + #include <netinet/ip.h> +--- md-386.c Thu Jan 1 08:00:00 1970 ++++ md-386.c Thu Aug 17 19:15:37 2000 +@@ -0,0 +1,6 @@ ++int ++clock_sigfigs() ++{ ++ return 3; ++} ++ +--- md-386.h Thu Jan 1 08:00:00 1970 ++++ md-386.h Thu Aug 17 19:15:33 2000 +@@ -0,0 +1,16 @@ ++#define TCPDUMP_ALIGN ++ ++#include <machine/endian.h> ++ ++/* 32-bit data types */ ++/* N.B.: this doesn't address printf()'s %d vs. %ld formats */ ++/* ++typedef long int32; ++*/ ++/* signed 32-bit integer */ ++#ifndef AUTH_UNIX ++/* ++typedef u_long u_int32; ++*/ ++/* unsigned 32-bit integer */ ++#endif +--- mdtype.orig Mon Feb 17 13:29:48 1992 ++++ mdtype Fri Mar 14 23:06:11 2003 +@@ -5,12 +5,15 @@ + # + set mach="UNKNOWN" + if ( -f /bin/arch ) set mach=`/bin/arch` +-if ($mach == "UNKNOWN") then +- set temp=`machine` +- if ($temp != "") set mach=$temp +-endif + # Hack, hack... + if ($mach == "sparc") set mach=sun4 ++ ++# Hack for FreeBSD ++if ($mach == "UNKNOWN") then ++ set temp=`uname|grep FreeBSD` ++ if ($temp != "") set mach=386 ++endif ++ + echo $mach + if ($mach == "UNKNOWN") exit 1 + exit 0 +--- ostype.awk Tue Jan 28 04:37:30 1992 ++++ ostype.awk Tue Feb 25 21:16:42 1997 +@@ -12,7 +12,7 @@ + os = "sunos4" + } + +-$0 ~ /^4.[1-9]\ ?BSD / { ++$0 ~ /BSD / { + os = "bsd" + } + +--- print-domain.c Fri Apr 23 04:40:15 1993 ++++ print-domain.c Mon Mar 8 23:20:34 1999 +@@ -137,10 +137,10 @@ + case T_HINFO: printf(" HINFO"); break; + case T_MINFO: printf(" MINFO"); break; + case T_MX: printf(" MX"); break; ++#ifdef T_UNSPEC + case T_UINFO: printf(" UINFO"); break; + case T_UID: printf(" UID"); break; + case T_GID: printf(" GID"); break; +-#ifdef T_UNSPEC + case T_UNSPEC: printf(" UNSPEC"); break; + #endif + case T_AXFR: printf(" AXFR"); break; +@@ -213,10 +213,10 @@ + } + #endif + break; ++#ifdef T_UNSPEC + case T_UINFO: printf(" UINFO"); break; + case T_UID: printf(" UID"); break; + case T_GID: printf(" GID"); break; +-#ifdef T_UNSPEC + case T_UNSPEC: printf(" UNSPEC"); break; + #endif + case T_AXFR: printf(" AXFR"); break; +--- print-fddi.c Fri Apr 23 04:40:16 1993 ++++ print-fddi.c Tue Feb 25 22:21:53 1997 +@@ -54,6 +54,10 @@ + #include "interface.h" + #include "addrtoname.h" + ++ ++int fddipad = 0; /* for proper alignment of header */ ++ ++ + /* + * NOTE: This is a very preliminary hack for FDDI support. + * There are all sorts of wired in constants & nothing (yet) +--- print-snmp.c Fri Apr 23 04:40:27 1993 ++++ print-snmp.c Wed Feb 26 00:13:29 1997 +@@ -1045,7 +1045,7 @@ + if (!Mib) + Mib = read_mib("mib.txt"); + if (!Mib) +- Mib = read_mib("/usr/local/mib/mib.txt"); ++ Mib = read_mib("/usr/local/lib/tcpview/mib/mib.txt"); + if (!Mib){ + err_print("Couldn't find mib file\n"); + exit(2); +--- print-sunrpc.c Fri Apr 23 04:40:27 1993 ++++ print-sunrpc.c Tue Feb 25 21:33:36 1997 +@@ -38,10 +38,10 @@ + #include <sys/time.h> + #include <errno.h> + #include <rpc/types.h> ++#include <rpc/xdr.h> + #include <rpc/auth.h> + #include <rpc/auth_unix.h> + #include <rpc/svc.h> +-#include <rpc/xdr.h> + #include <rpc/rpc_msg.h> + + #include <rpc/pmap_prot.h> +--- tcpview.c Fri Apr 23 04:40:33 1993 ++++ tcpview.c Tue Feb 25 23:48:35 1997 +@@ -33,7 +33,7 @@ + + #include <stdio.h> + #include <sys/types.h> +-#include <sys/limits.h> ++#include <limits.h> + #include <X11/Xlib.h> + #include <X11/Intrinsic.h> + #include <X11/StringDefs.h> +@@ -155,13 +155,13 @@ + + static XtResource resources[] = { + { "hostnames", "Hostnames", XtRString, sizeof(String), +- XtOffset(params_ptr, hostnames), XtRString, "/usr/local/tcpview/hosts" }, ++ XtOffset(params_ptr, hostnames), XtRString, "/usr/local/lib/tcpview/hosts" }, + { "manuf", "Manuf", XtRString, sizeof(String), +- XtOffset(params_ptr, manuf), XtRString, "/usr/local/tcpview/manuf" }, ++ XtOffset(params_ptr, manuf), XtRString, "/usr/local/lib/tcpview/manuf" }, + { "services", "Services", XtRString, sizeof(String), + XtOffset(params_ptr, services), XtRString, "/etc/services" }, + { "filters", "Filters", XtRString, sizeof(String), +- XtOffset(params_ptr, filters), XtRString, "/usr/local/tcpview/filters" }, ++ XtOffset(params_ptr, filters), XtRString, "/usr/local/lib/tcpview/filters" }, + { "viewer", "Viewer", XtRString, sizeof(String), + XtOffset(params_ptr, viewer), XtRString, "*" }, + { "printcommand", "Printcommand", XtRString, sizeof(String), +--- tv_addrtoname.c Fri Apr 23 04:40:35 1993 ++++ tv_addrtoname.c Tue Feb 25 22:05:49 1997 +@@ -110,6 +110,7 @@ + u_short p; + }; + ++#define IPPROTO_HELLO 63 /* "hello" routing protocol */ + struct ipproto ipproto_db[] = { + { "IP", IPPROTO_IP }, + { "ICMP", IPPROTO_ICMP }, |