]>
Commit | Line | Data |
---|---|---|
ef66e3ea AM |
1 | diff -urN dsniff-2.4.org/arpspoof.c dsniff-2.4/arpspoof.c |
2 | --- dsniff-2.4.org/arpspoof.c 2003-11-08 22:37:23.000000000 +0100 | |
3 | +++ dsniff-2.4/arpspoof.c 2003-11-08 22:45:50.000000000 +0100 | |
4 | @@ -19,7 +19,7 @@ | |
bef4d321 | 5 | #include <string.h> |
6 | #include <signal.h> | |
7 | #include <err.h> | |
8 | -#include <libnet.h> | |
9 | +#include <libnet1.h> | |
10 | #include <pcap.h> | |
11 | ||
ef66e3ea AM |
12 | #include "arp.h" |
13 | diff -urN dsniff-2.4.org/configure.in dsniff-2.4/configure.in | |
14 | --- dsniff-2.4.org/configure.in 2003-11-08 22:37:23.000000000 +0100 | |
15 | +++ dsniff-2.4/configure.in 2003-11-08 22:46:09.000000000 +0100 | |
16 | @@ -204,43 +204,43 @@ | |
17 | AC_SUBST(PCAPINC) | |
18 | AC_SUBST(PCAPLIB) | |
19 | ||
20 | -dnl Checks for libnet | |
21 | -AC_MSG_CHECKING(for libnet) | |
22 | -AC_ARG_WITH(libnet, | |
23 | -[ --with-libnet=DIR use libnet in DIR], | |
24 | +dnl Checks for libnet1 | |
25 | +AC_MSG_CHECKING(for libnet1) | |
26 | +AC_ARG_WITH(libnet1, | |
27 | +[ --with-libnet1=DIR use libnet1 in DIR], | |
28 | [ case "$withval" in | |
29 | yes|no) | |
30 | AC_MSG_RESULT(no) | |
31 | ;; | |
32 | *) | |
33 | AC_MSG_RESULT($withval) | |
34 | - if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then | |
35 | + if test -f $withval/include/libnet1.h -a -f $withval/lib/libnet1.a; then | |
36 | owd=`pwd` | |
37 | if cd $withval; then withval=`pwd`; cd $owd; fi | |
38 | - if test -f $withval/bin/libnet-config; then | |
39 | - CFLAGS="$CFLAGS `$withval/bin/libnet-config --defines`" | |
40 | - elif test -f $withval/libnet-config; then | |
41 | - CFLAGS="$CFLAGS `$withval/libnet-config --defines`" | |
42 | + if test -f $withval/bin/libnet1-config; then | |
43 | + CFLAGS="$CFLAGS `$withval/bin/libnet1-config --defines`" | |
44 | + elif test -f $withval/libnet1-config; then | |
45 | + CFLAGS="$CFLAGS `$withval/libnet1-config --defines`" | |
46 | else | |
47 | - CFLAGS="$CFLAGS `libnet-config --defines`" | |
48 | + CFLAGS="$CFLAGS `libnet1-config --defines`" | |
49 | fi | |
50 | LNETINC="-I$withval/include" | |
51 | - LNETLIB="-L$withval/lib -lnet" | |
52 | + LNETLIB="-L$withval/lib -lnet1" | |
53 | else | |
54 | - AC_ERROR(libnet.h or libnet.a not found in $withval) | |
55 | + AC_ERROR(libnet1.h or libnet1.a not found in $withval) | |
56 | fi | |
57 | ;; | |
58 | esac ], | |
59 | -[ if test -f ${prefix}/include/libnet.h; then | |
60 | - CFLAGS="$CFLAGS `${prefix}/bin/libnet-config --defines`" | |
61 | +[ if test -f ${prefix}/include/libnet1.h; then | |
62 | + CFLAGS="$CFLAGS `${prefix}/bin/libnet1-config --defines`" | |
63 | LNETINC="-I${prefix}/include" | |
64 | - LNETLIB="-L${prefix}/lib -lnet" | |
65 | - elif test -f /usr/include/libnet.h; then | |
66 | - CFLAGS="$CFLAGS `libnet-config --defines`" | |
67 | - LNETLIB="-lnet" | |
68 | + LNETLIB="-L${prefix}/lib -lnet1" | |
69 | + elif test -f /usr/include/libnet1.h; then | |
70 | + CFLAGS="$CFLAGS `libnet1-config --defines`" | |
71 | + LNETLIB="-lnet1" | |
72 | else | |
73 | AC_MSG_RESULT(no) | |
74 | - AC_ERROR(libnet not found) | |
75 | + AC_ERROR(libnet1 not found) | |
76 | fi | |
77 | AC_MSG_RESULT(yes) ] | |
78 | ) | |
79 | diff -urN dsniff-2.4.org/decode_portmap.c dsniff-2.4/decode_portmap.c | |
80 | --- dsniff-2.4.org/decode_portmap.c 2003-11-08 22:37:23.000000000 +0100 | |
81 | +++ dsniff-2.4/decode_portmap.c 2003-11-08 22:45:50.000000000 +0100 | |
82 | @@ -16,7 +16,7 @@ | |
83 | ||
bef4d321 | 84 | #include <stdio.h> |
85 | #include <stdlib.h> | |
86 | -#include <libnet.h> | |
87 | +#include <libnet1.h> | |
88 | #include <nids.h> | |
ef66e3ea | 89 | |
bef4d321 | 90 | #include "rpc.h" |
ef66e3ea AM |
91 | diff -urN dsniff-2.4.org/dnsspoof.c dsniff-2.4/dnsspoof.c |
92 | --- dsniff-2.4.org/dnsspoof.c 2003-11-08 22:37:23.000000000 +0100 | |
93 | +++ dsniff-2.4/dnsspoof.c 2003-11-08 22:45:50.000000000 +0100 | |
94 | @@ -22,7 +22,7 @@ | |
bef4d321 | 95 | #include <string.h> |
96 | #include <resolv.h> | |
97 | #include <err.h> | |
98 | -#include <libnet.h> | |
99 | +#include <libnet1.h> | |
100 | #include <pcap.h> | |
ef66e3ea | 101 | |
bef4d321 | 102 | #include "pcaputil.h" |
ef66e3ea AM |
103 | diff -urN dsniff-2.4.org/dsniff.c dsniff-2.4/dsniff.c |
104 | --- dsniff-2.4.org/dsniff.c 2003-11-08 22:37:23.000000000 +0100 | |
105 | +++ dsniff-2.4/dsniff.c 2003-11-08 22:45:51.000000000 +0100 | |
106 | @@ -19,7 +19,7 @@ | |
bef4d321 | 107 | #include <unistd.h> |
108 | #include <signal.h> | |
109 | #include <err.h> | |
110 | -#include <libnet.h> | |
111 | +#include <libnet1.h> | |
112 | #include <nids.h> | |
113 | #include <pcap.h> | |
ef66e3ea AM |
114 | |
115 | diff -urN dsniff-2.4.org/filesnarf.c dsniff-2.4/filesnarf.c | |
116 | --- dsniff-2.4.org/filesnarf.c 2003-11-08 22:37:23.000000000 +0100 | |
117 | +++ dsniff-2.4/filesnarf.c 2003-11-08 22:45:51.000000000 +0100 | |
bef4d321 | 118 | @@ -19,7 +19,7 @@ |
119 | #include <fcntl.h> | |
120 | #include <regex.h> | |
121 | #include <err.h> | |
122 | -#include <libnet.h> | |
123 | +#include <libnet1.h> | |
124 | #include <nids.h> | |
125 | #include <pcap.h> | |
126 | ||
ef66e3ea AM |
127 | diff -urN dsniff-2.4.org/macof.c dsniff-2.4/macof.c |
128 | --- dsniff-2.4.org/macof.c 2003-11-08 22:37:23.000000000 +0100 | |
129 | +++ dsniff-2.4/macof.c 2003-11-08 22:45:51.000000000 +0100 | |
130 | @@ -20,7 +20,7 @@ | |
bef4d321 | 131 | #include <stdio.h> |
132 | #include <string.h> | |
133 | #include <err.h> | |
134 | -#include <libnet.h> | |
135 | +#include <libnet1.h> | |
136 | #include <pcap.h> | |
137 | ||
138 | #include "version.h" | |
ef66e3ea AM |
139 | diff -urN dsniff-2.4.org/mailsnarf.c dsniff-2.4/mailsnarf.c |
140 | --- dsniff-2.4.org/mailsnarf.c 2003-11-08 22:37:23.000000000 +0100 | |
141 | +++ dsniff-2.4/mailsnarf.c 2003-11-08 22:45:51.000000000 +0100 | |
142 | @@ -19,7 +19,7 @@ | |
bef4d321 | 143 | #include <time.h> |
144 | #include <regex.h> | |
145 | #include <err.h> | |
146 | -#include <libnet.h> | |
147 | +#include <libnet1.h> | |
148 | #include <nids.h> | |
149 | #include <pcap.h> | |
ef66e3ea AM |
150 | |
151 | diff -urN dsniff-2.4.org/msgsnarf.c dsniff-2.4/msgsnarf.c | |
152 | --- dsniff-2.4.org/msgsnarf.c 2003-11-08 22:37:23.000000000 +0100 | |
153 | +++ dsniff-2.4/msgsnarf.c 2003-11-08 22:45:51.000000000 +0100 | |
154 | @@ -19,7 +19,7 @@ | |
bef4d321 | 155 | #include <string.h> |
156 | #include <regex.h> | |
157 | #include <err.h> | |
158 | -#include <libnet.h> | |
159 | +#include <libnet1.h> | |
160 | #include <nids.h> | |
161 | #include <pcap.h> | |
162 | #include <pcaputil.h> | |
ef66e3ea AM |
163 | diff -urN dsniff-2.4.org/record.c dsniff-2.4/record.c |
164 | --- dsniff-2.4.org/record.c 2003-11-08 22:37:23.000000000 +0100 | |
165 | +++ dsniff-2.4/record.c 2003-11-08 22:45:51.000000000 +0100 | |
166 | @@ -21,7 +21,7 @@ | |
bef4d321 | 167 | #elif HAVE_DB_H |
168 | #include <db.h> | |
169 | #endif | |
170 | -#include <libnet.h> | |
171 | +#include <libnet1.h> | |
ef66e3ea | 172 | |
bef4d321 | 173 | #include "options.h" |
174 | #include "record.h" | |
ef66e3ea AM |
175 | diff -urN dsniff-2.4.org/sshmitm.c dsniff-2.4/sshmitm.c |
176 | --- dsniff-2.4.org/sshmitm.c 2003-11-08 22:37:23.000000000 +0100 | |
177 | +++ dsniff-2.4/sshmitm.c 2003-11-08 22:45:51.000000000 +0100 | |
bef4d321 | 178 | @@ -16,7 +16,7 @@ |
179 | #include <sys/wait.h> | |
180 | #include <arpa/nameser.h> | |
181 | #include <openssl/ssl.h> | |
182 | -#include <libnet.h> | |
183 | +#include <libnet1.h> | |
184 | ||
185 | #include <err.h> | |
186 | #include <errno.h> | |
ef66e3ea AM |
187 | diff -urN dsniff-2.4.org/tcpkill.c dsniff-2.4/tcpkill.c |
188 | --- dsniff-2.4.org/tcpkill.c 2003-11-08 22:37:23.000000000 +0100 | |
189 | +++ dsniff-2.4/tcpkill.c 2003-11-08 22:45:51.000000000 +0100 | |
190 | @@ -17,7 +17,7 @@ | |
bef4d321 | 191 | #include <unistd.h> |
192 | #include <string.h> | |
193 | #include <err.h> | |
194 | -#include <libnet.h> | |
195 | +#include <libnet1.h> | |
196 | #include <pcap.h> | |
ef66e3ea | 197 | |
bef4d321 | 198 | #include "pcaputil.h" |
ef66e3ea AM |
199 | diff -urN dsniff-2.4.org/tcpnice.c dsniff-2.4/tcpnice.c |
200 | --- dsniff-2.4.org/tcpnice.c 2003-11-08 22:37:23.000000000 +0100 | |
201 | +++ dsniff-2.4/tcpnice.c 2003-11-08 22:45:51.000000000 +0100 | |
202 | @@ -17,7 +17,7 @@ | |
bef4d321 | 203 | #include <unistd.h> |
204 | #include <string.h> | |
205 | #include <err.h> | |
206 | -#include <libnet.h> | |
207 | +#include <libnet1.h> | |
208 | #include <pcap.h> | |
ef66e3ea | 209 | |
bef4d321 | 210 | #include "pcaputil.h" |
ef66e3ea AM |
211 | diff -urN dsniff-2.4.org/tcp_raw.c dsniff-2.4/tcp_raw.c |
212 | --- dsniff-2.4.org/tcp_raw.c 2003-11-08 22:37:23.000000000 +0100 | |
213 | +++ dsniff-2.4/tcp_raw.c 2003-11-08 22:45:51.000000000 +0100 | |
214 | @@ -14,7 +14,7 @@ | |
215 | ||
216 | #include <time.h> | |
217 | #include <err.h> | |
218 | -#include <libnet.h> | |
219 | +#include <libnet1.h> | |
220 | #include "options.h" | |
221 | #include "tcp_raw.h" | |
222 | ||
223 | diff -urN dsniff-2.4.org/trigger.c dsniff-2.4/trigger.c | |
224 | --- dsniff-2.4.org/trigger.c 2003-11-08 22:37:23.000000000 +0100 | |
225 | +++ dsniff-2.4/trigger.c 2003-11-08 22:45:51.000000000 +0100 | |
226 | @@ -14,7 +14,7 @@ | |
227 | ||
bef4d321 | 228 | #include <stdlib.h> |
229 | #include <err.h> | |
230 | -#include <libnet.h> | |
231 | +#include <libnet1.h> | |
232 | #include <nids.h> | |
ef66e3ea | 233 | |
bef4d321 | 234 | #include "decode.h" |
ef66e3ea AM |
235 | diff -urN dsniff-2.4.org/urlsnarf.c dsniff-2.4/urlsnarf.c |
236 | --- dsniff-2.4.org/urlsnarf.c 2003-11-08 22:37:23.000000000 +0100 | |
237 | +++ dsniff-2.4/urlsnarf.c 2003-11-08 22:45:51.000000000 +0100 | |
238 | @@ -22,7 +22,7 @@ | |
bef4d321 | 239 | #include <regex.h> |
240 | #include <time.h> | |
241 | #include <err.h> | |
242 | -#include <libnet.h> | |
243 | +#include <libnet1.h> | |
244 | #include <nids.h> | |
245 | #include <pcap.h> | |
ef66e3ea AM |
246 | |
247 | diff -urN dsniff-2.4.org/webmitm.c dsniff-2.4/webmitm.c | |
248 | --- dsniff-2.4.org/webmitm.c 2003-11-08 22:37:23.000000000 +0100 | |
249 | +++ dsniff-2.4/webmitm.c 2003-11-08 22:45:51.000000000 +0100 | |
bef4d321 | 250 | @@ -20,7 +20,7 @@ |
251 | ||
252 | #include <err.h> | |
253 | #include <errno.h> | |
254 | -#include <libnet.h> | |
255 | +#include <libnet1.h> | |
256 | #include <signal.h> | |
257 | #include <stdio.h> | |
258 | #include <stdlib.h> | |
ef66e3ea AM |
259 | diff -urN dsniff-2.4.org/webspy.c dsniff-2.4/webspy.c |
260 | --- dsniff-2.4.org/webspy.c 2003-11-08 22:37:23.000000000 +0100 | |
261 | +++ dsniff-2.4/webspy.c 2003-11-08 22:45:51.000000000 +0100 | |
262 | @@ -22,7 +22,7 @@ | |
bef4d321 | 263 | #include <string.h> |
264 | #include <err.h> | |
265 | #include <X11/Xlib.h> | |
266 | -#include <libnet.h> | |
267 | +#include <libnet1.h> | |
268 | #include <nids.h> | |
bef4d321 | 269 | |
ef66e3ea | 270 | #include "base64.h" |