summaryrefslogtreecommitdiff
path: root/net/tcpview/files/patch-aa
blob: e2c09be5872a8e13d23d21b305bf3c9124ce1d3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
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 },