1 --- libpcap-0.7.2.orig/nametoaddr.c
2 +++ libpcap-0.7.2/nametoaddr.c
4 e = ep = (u_char *)malloc(6);
8 + if (*s == ':' || *s == '.')
11 if (isxdigit((unsigned char)*s)) {
12 --- libpcap-0.7.2.orig/debian/libpcap0.postinst
13 +++ libpcap-0.7.2/debian/libpcap0.postinst
17 +if [ "$1" = "configure" ]; then
22 --- libpcap-0.7.2.orig/debian/copyright
23 +++ libpcap-0.7.2/debian/copyright
25 +This package was debianized by Anand Kumria <wildfire@progsoc.org> on
26 +Sun, 12 Nov 2000 03:19:44 +1100.
28 +It was downloaded from http://www.tcpdump.org/
30 +Upstream Author(s): patches@tcpdump.org
34 +The licence-style of this software is BSD. However this version (0.5)
35 +fails to include a file containing the licence. A similar version
36 +of the licence is available in /usr/share/common-licenses/BSD.
37 +Future versions of libpcap will contain the licence located at
38 +<URL: http://cvs.tcpdump.org/cgi-bin/cvsweb/libpcap/LICENSE?rev=1.1>
39 +which is what I describe below.
42 + - Item 3, replace "University" with "Authors"
43 + - The LEGALESE (uppercase portion) ends after
44 + the words "A PARTICULAR PURPOSE"
45 + - The copyright holders are listed below (the CREDITS
46 + file is canonical, this is merely a convienent listing)
48 +people who contributed to libpcap or tcpdump:
49 + Bill Fenner <fenner@research.att.com>
50 + Assar Westerlund <assar@sics.se>
51 + Alexei <kuznet@ms2.inr.ac.ru>
52 + Jun-ichiro itojun Hagino <itojun@iijlab.net>
53 + Guy Harris <gharris@flashcom.net>
54 + Torsten Landschoff <t.landschoff@gmx.net>
55 + Michael Richardson <mcr@sandelman.ottawa.on.ca>
57 +The original LBL crew:
62 --- libpcap-0.7.2.orig/debian/libpcap0.postrm
63 +++ libpcap-0.7.2/debian/libpcap0.postrm
67 +if [ "$1" = "remove" ]; then
72 --- libpcap-0.7.2.orig/debian/libpcap-dev.dirs
73 +++ libpcap-0.7.2/debian/libpcap-dev.dirs
79 --- libpcap-0.7.2.orig/debian/README.Debian
80 +++ libpcap-0.7.2/debian/README.Debian
85 + If you receive messages telling you the packet type is not supported
86 + or is deprecated check that CONFIG_PACKET is set to either `Y' or `M'.
88 + You should also check that /etc/modules.conf has the line
90 + alias net-pf-17 af_packet
92 + Feel free to report bugs.
94 + -- Anand Kumria <wildfire@progsoc.org>, Tue, 28 Nov 2000 02:04:28 EST
95 --- libpcap-0.7.2.orig/debian/libpcap0.docs
96 +++ libpcap-0.7.2/debian/libpcap0.docs
100 --- libpcap-0.7.2.orig/debian/libpcap0.7.postinst
101 +++ libpcap-0.7.2/debian/libpcap0.7.postinst
105 +if [ "$1" = "configure" ]; then
111 --- libpcap-0.7.2.orig/debian/libpcap0.7.postrm
112 +++ libpcap-0.7.2/debian/libpcap0.7.postrm
116 +if [ "$1" = "remove" ]; then
122 --- libpcap-0.7.2.orig/debian/changelog
123 +++ libpcap-0.7.2/debian/changelog
125 +libpcap (0.7.2-1) unstable; urgency=low
127 + * New upstream release (closes: #145538).
128 + * debian/rules: Build the library with _FILE_OFFSET_BITS set to 64
129 + to allow for files bigger than 2GB (closes: #129213).
130 + * Rename the library package to libpcap0.7 and change the SONAME so that we
131 + can account for interface changes (closes: #132359).
132 + * Run ldconfig as appropriate (lintian).
133 + * Remove watch.ex template and the silly symlink from libpcap-dev's
134 + documentation to libpcap0 (lintian).
136 + -- Torsten Landschoff <torsten@debian.org> Sat, 3 Aug 2002 23:33:56 +0200
138 +libpcap (0.6.2-2) unstable; urgency=low
140 + * debian/control: Change section of libpcap0 from net to libs
141 + (Debian installer message).
142 + * aclocal.m4: Treat the ia64 as a cpu which can't handle unaligned
143 + memory access (closes: #112152). Thanks for the report go to
146 + -- Torsten Landschoff <torsten@debian.org> Fri, 14 Sep 2001 10:15:52 +0200
148 +libpcap (0.6.2-1) unstable; urgency=medium
150 + * New upstream release.
151 + * debian/control: Removed Build-Depends already satisfied by the
152 + build-essential package.
153 + * gencode.c (gen_scode): Add the missing default branch of the protocol
154 + family switch (closes: 88688).
155 + * debian/libpcap.post{rm,inst}: Run ldconfig (lintian).
156 + * debian/copyright: Fix the "similiar" typo (lintian).
158 + -- Torsten Landschoff <torsten@debian.org> Tue, 6 Mar 2001 04:27:27 +0100
160 +libpcap (0.6.1-2) unstable; urgency=low
162 + * debian/rules: Changed the shlibs info so that only pcap 0.6
163 + is okay for packages linked against this version.
165 + -- Torsten Landschoff <torsten@debian.org> Thu, 18 Jan 2001 01:13:20 +0100
167 +libpcap (0.6.1-1) unstable; urgency=low
169 + * Taking back the package. Kudos to Anand for helping out.
170 + * debian/rules: Pass --enable-ipv6 to configure (closes: #80223).
172 + -- Torsten Landschoff <torsten@debian.org> Tue, 16 Jan 2001 15:40:37 +0100
174 +libpcap (0.5.2-2) unstable; urgency=low
176 + * Update config.guess and config.sub (Closes #26031)
177 + * Source builds would not always work. Fix that.
178 + * Kernel interface problem is really a module not loaded problem.
179 + Note this in README.Debian. (Closes #21356)
181 + -- Anand Kumria <wildfire@progsoc.org> Tue, 28 Nov 2000 02:03:25 +1100
183 +libpcap (0.5.2-1) unstable; urgency=low
185 + * New upstream release
187 + * Migrate to Debhelper and insert Build-Depends
189 + -- Anand Kumria <wildfire@progsoc.org> Sun, 12 Nov 2000 03:19:44 +1100
191 +libpcap (0.4a6-3) unstable; urgency=low
194 + * scanner.l: Allow a 12 digit hex number as ether address as well as
195 + BB.BB.BB.BB.BB.BB (closes: #48735)
196 + * nametoaddr.c (pcap_ether_aton): Adjust for change in scanner.l
198 + -- Torsten Landschoff <torsten@debian.org> Mon, 22 Nov 1999 02:39:45 +0100
200 +libpcap (0.4a6-2.1) unstable; urgency=low
202 + * Non maintainer upload.
203 + config.{guess,sub} changed to recognize a Arm architecture.
205 + -- Turbo Fredriksson <turbo@debian.org> Thu, 20 Aug 1998 23:12:36 -0400
207 +libpcap (0.4a6-2) frozen unstable; urgency=low
209 + * renamed /usr/doc/libpcap to /usr/doc/libpcap0 (should fix several
211 + * updated standards-version
212 + * rebuild with latest debmake
214 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Mon, 30 Mar 1998 00:46:44 +0200
217 +libpcap (0.4a6-1) unstable; urgency=low
219 + * upgraded to latest upstream version, fixes: Bug#17164
220 + * added patch from Michael Alan Dorman <mdorman@mdorman.law.miami.edu>
221 + for building libpcap on alpha systems, fixes: Bug#15556
222 + * fixed aclocal.m4 script
224 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Sat, 31 Jan 1998 23:19:42 +0100
227 +libpcap (0.4a2-2) unstable; urgency=low
229 + * fixed detection of IFF_LOOPBACK for linux systems
230 + * link shared library with -l
232 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Wed, 19 Nov 1997 23:44:34 +0100
235 +libpcap (0.4a2-1) unstable; urgency=low
238 + * latest upstream release
240 + * compiled with _REENTRANT
242 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Wed, 17 Sep 1997 20:40:01 +0200
245 +libpcap (0.3.1a3-1) unstable; urgency=low
247 + * Latest upstream release. Fixes bug #6670.
249 + -- Karl Sackett <krs@debian.org> Wed, 2 Apr 1997 10:19:28 -0600
252 +libpcap (0.3-1) unstable; urgency=low
254 + * First Debian release.
255 + * Makefile.in: supports libpcap.so target.
257 + -- Karl Sackett <krs@debian.org> Wed, 8 Jan 1997 09:38:31 -0600
260 --- libpcap-0.7.2.orig/debian/rules
261 +++ libpcap-0.7.2/debian/rules
264 +# Sample debian/rules that uses debhelper.
265 +# GNU copyright 1997 to 1999 by Joey Hess.
267 +# Uncomment this to turn on verbose mode.
268 +#export DH_VERBOSE=1
270 +# This is the debhelper compatability version to use.
273 +# shared library versions, option 1
276 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
277 +#version=`ls src/.libs/lib*.so.* | \
278 +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
279 +#major=`ls src/.libs/lib*.so.* | \
280 +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
286 + CFLAGS=-D_FILE_OFFSET_BITS=64 ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
287 + --enable-ipv6 --infodir=\$${prefix}/share/info
288 + # Add here commands to compile the package.
298 + # Add here commands to clean up after the build process.
311 + $(MAKE) install prefix=`pwd`/debian/libpcap-dev/usr
313 +# Build architecture-independent files here.
314 +binary-indep: build install
315 +# We have nothing to do by default.
317 +# Build architecture-dependent files here.
318 +binary-arch: build install
323 + # build libpcap${major} package by moving files from libpcap-dev
325 + dh_movefiles -plibpcap$(major) --sourcedir=debian/libpcap-dev \
326 + usr/lib/libpcap.so.$(major) \
327 + usr/lib/libpcap.so.$(version)
333 + dh_installmanpages -plibpcap-dev
336 + dh_installchangelogs CHANGES
337 + dh_link -plibpcap-dev
348 +binary: binary-indep binary-arch
349 +.PHONY: build clean binary-indep binary-arch binary install
350 --- libpcap-0.7.2.orig/debian/control
351 +++ libpcap-0.7.2/debian/control
356 +Maintainer: Torsten Landschoff <torsten@debian.org>
357 +Build-Depends: debhelper, flex, bison
358 +Standards-Version: 3.0.1
360 +Package: libpcap-dev
363 +Depends: libpcap0.7 (= ${Source-Version}), libc6-dev
364 +Description: Development library for libpcap.
365 + Includes headers, static libraries, and documentation.
370 +Depends: ${shlibs:Depends}
371 +Description: System interface for user-level packet capture.
372 + libpcap (Packet CAPture) provides a portable framework for low-level
373 + network monitoring. Applications include network statistics collection,
374 + security monitoring, network debugging, etc.
376 + Since almost every system vendor provides a different interface for
377 + packet capture, and since there are several tools that require this
378 + functionality, we've created this system-independent API to ease in
379 + porting and to alleviate the need for several system-dependent packet
380 + capture modules in each application.
382 + Further information is available at <URL: http://www.tcpdump.org/>
383 --- libpcap-0.7.2.orig/scanner.l
384 +++ libpcap-0.7.2/scanner.l
386 N ([0-9]+|(0X|0x)[0-9A-Fa-f]+)
387 B ([0-9A-Fa-f][0-9A-Fa-f]?)
388 W ([0-9A-Fa-f][0-9A-Fa-f]?[0-9A-Fa-f]?[0-9A-Fa-f]?)
394 {N} { yylval.i = stoi((char *)yytext); return NUM; }
395 ({N}\.{N})|({N}\.{N}\.{N})|({N}\.{N}\.{N}\.{N}) {
396 yylval.s = sdup((char *)yytext); return HID; }
397 -{B}:{B}:{B}:{B}:{B}:{B} { yylval.e = pcap_ether_aton((char *)yytext);
398 +({B}:{B}:{B}:{B}:{B}:{B})|({B}\.{B}\.{B}\.{B}\.{B}\.{B}) { yylval.e = pcap_ether_aton((char *)yytext);
405 {B}:+({B}:+)+ { bpf_error("bogus ethernet address %s", yytext); }
406 +{X}{12} { yylval.e = pcap_ether_aton((char *)yytext); return EID;}
408 icmptype { yylval.i = 0; return NUM; }
409 icmpcode { yylval.i = 1; return NUM; }
410 icmp-echoreply { yylval.i = 0; return NUM; }
411 --- libpcap-0.7.2.orig/Makefile.in
412 +++ libpcap-0.7.2/Makefile.in
417 +# some defines for shared library compilation - FIXME
420 +VERSION=$(MAJ).$(MIN)
422 +LIBRARY=lib$(LIBNAME).a
423 +SOLIBRARY=lib$(LIBNAME).so
424 +SHAREDLIB=$(SOLIBRARY).$(VERSION)
427 # You shouldn't need to edit anything below.
432 CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
433 +CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ)
436 INSTALL_PROGRAM = @INSTALL_PROGRAM@
438 # problem if you don't own the file but can write to the directory.
441 - $(CC) $(CFLAGS) -c $(srcdir)/$*.c
442 + $(CC) $(CFLAGS) -c -o $@ $(srcdir)/$*.c
446 + $(CC) -fPIC $(CFLAGS) -c -o $@ $(srcdir)/$*.c
448 PSRC = pcap-@V_PCAP@.c
449 CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c \
451 # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
452 # hack the extra indirection
453 OBJ = $(PSRC:.c=.o) $(CSRC:.c=.o) $(GENSRC:.c=.o) # $(LIBOBJS)
454 +OBJ_PIC = $(PSRC:.c=_pic.o) $(CSRC:.c=_pic.o) $(GENSRC:.c=_pic.o)
455 HDR = pcap.h pcap-int.h pcap-namedb.h pcap-nit.h pcap-pf.h \
456 ethertype.h gencode.h gnuc.h
460 $(SRC) $(HDR) $(TAGHDR)
462 -CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
463 +CLEANFILES = $(OBJ) $(OBJ_PIC) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c libpcap.so*
466 +all: libpcap.a $(SHAREDLIB)
473 +$(SHAREDLIB): $(OBJ_PIC)
475 + -@rm -f $(SOLIBRARY) $(SOLIBRARY).$(MAJ)
476 + $(CC) $(CFLAGS_SHARED) -o $(SHAREDLIB) $(OBJ_PIC) -lc
477 + ln -s $(SHAREDLIB) $(SOLIBRARY).$(MAJ)
478 + ln -s $(SOLIBRARY).$(MAJ) $(SOLIBRARY)
480 scanner.c: $(srcdir)/scanner.l
482 $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
484 scanner.o: scanner.c tokdefs.h
485 $(CC) $(CFLAGS) -c scanner.c
487 +scanner_pic.o: scanner.c tokdefs.h
488 + $(CC) -fPIC $(CFLAGS) -o $@ -c scanner.c
491 grammar.c: $(srcdir)/grammar.y
492 @rm -f grammar.c tokdefs.h
495 $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c
497 +grammar_pic.o: grammar.c
499 + $(CC) -fPIC $(CFLAGS) -Dyylval=pcap_lval -o $@ -c grammar.c
502 $(CC) $(CFLAGS) -c version.c
504 +version_pic.o: version.c
505 + $(CC) -fPIC $(CFLAGS) -c version.c -o $@
507 snprintf.o: $(srcdir)/../tcpdump/missing/snprintf.c
508 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/../tcpdump/missing/snprintf.c
510 @@ -135,10 +167,16 @@
511 bpf_filter.o: bpf_filter.c
512 $(CC) $(CFLAGS) -c bpf_filter.c
514 +bpf_filter_pic.o: bpf_filter.c
515 + $(CC) -fPIC $(CFLAGS) -c bpf_filter.c -o $@
518 [ -d $(DESTDIR)$(libdir) ] || \
519 (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
520 $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
521 + $(INSTALL_DATA) $(SHAREDLIB) $(DESTDIR)$(libdir)/
522 + ln -sf $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SOLIBRARY).$(MAJ)
523 + ln -sf $(SOLIBRARY).$(MAJ) $(DESTDIR)$(libdir)/$(SOLIBRARY)
524 $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
525 [ -d $(DESTDIR)$(includedir) ] || \
526 (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir))