debian/0000755000000000000000000000000011370566760007201 5ustar debian/watch0000644000000000000000000000014511370561604010222 0ustar version=3 opts="uversionmangle=s/-/./g" http://sf.net/ebtables/arptables-v([[:digit:].-]*)\.tar\.gz debian/changelog0000644000000000000000000000332511370563057011052 0ustar arptables (0.0.3.4-1) unstable; urgency=low * New upstream release * Switch to dpkg-source 3.0 (quilt) format * Bump Standards version to 3.8.4 -- Jochen Friedrich Thu, 06 May 2010 17:54:18 +0200 arptables (0.0.3.3-3) unstable; urgency=low * Change dpatch to quilt and simplify rules. * Add README.source. * Fix watch file. -- Jochen Friedrich Fri, 16 Oct 2009 19:09:15 +0200 arptables (0.0.3.3-2) unstable; urgency=low * Fix arptables-save o Don't resolve hostnames (Closes: #533497) o Omit '*' interface in rules (Closes: #533496) * Bump Standards version to 3.8.3 * Add homepage tag -- Jochen Friedrich Wed, 19 Aug 2009 14:39:39 +0200 arptables (0.0.3.3-1) unstable; urgency=low * New upstream release o includes fix for linux/config.h include file o removed some compiler warnings o include arptables-save / arptables-restore scripts * Update watchfile to support subreleases * Standards version 3.7.3 * Update to debhelper v7 / dpatch and replaced cdbs * Include patch from Jeroen van Wolffelaar to make iptables --proto-type also accept hexadecimal inputs (Closes: #411169) -- Jochen Friedrich Thu, 08 May 2008 17:43:16 +0200 arptables (0.0.3-2) unstable; urgency=low * Remove linux/config.h include file (Closes: #427264) Thanks to Jose Luis Rivas Contreras * Added watch file * Standards version 3.7.2 (no changes) -- Jochen Friedrich Thu, 21 Jun 2007 14:06:06 +0200 arptables (0.0.3-1) unstable; urgency=low * Initial Release. (Closes: #212914) -- Jochen Friedrich Sat, 25 Oct 2003 15:54:19 +0200 debian/control0000644000000000000000000000077311370562140010577 0ustar Source: arptables Section: net Priority: optional Maintainer: Jochen Friedrich Standards-Version: 3.8.4 Build-Depends: debhelper (>= 7.0.50~) Homepage: http://ebtables.sourceforge.net Package: arptables Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: ARP table administration Arptables is used to set up, maintain, and inspect the tables of ARP rules in the Linux kernel. It is analogous to iptables, but operates at the ARP layer rather than the IP layer. debian/copyright0000644000000000000000000000306211370561604011125 0ustar This package was debianized by Jochen Friedrich on Fri, 26 Sep 2003 08:09:38 +0200 It was downloaded from : http://ebtables.sf.net Upstream Author: Bart De Schuymer Copyright (C) 2000-2002 by the netfilter coreteam : Paul 'Rusty' Russell Marc Boucher James Morris Harald Welte Jozsef Kadlecsik Copyright (C) 2003-2007 Bart De Schuymer but almost all code is from the iptables userspace program, which has main authors: Paul Russell and Michael Neuling This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. The GNU GPL may be viewed on Debian systems in /usr/share/common-licenses/GPL debian/compat0000644000000000000000000000000211370561604010367 0ustar 7 debian/rules0000755000000000000000000000003611370564115010250 0ustar #!/usr/bin/make -f %: dh $@ debian/dirs0000644000000000000000000000003011370561604010046 0ustar usr/share/man/man8 sbin debian/arptables-restore.80000644000000000000000000000241311370561604012720 0ustar .TH ARPTABLES-RESTORE 8 "May 08, 2008" "" "" .\" .\" Man page written by Jochen Friedrich .\" It is based on the iptables-restore man page. .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. .\" .\" .SH NAME arptables-restore \- Restore ARP Tables .SH SYNOPSIS .BR "arptables-restore " .br .SH DESCRIPTION .PP .B arptables-restore is used to restore ARP Tables from data specified on STDIN. Use I/O redirection provided by your shell to read from a file .SH BUGS None known as of arptables-0.0.3.3 release .SH AUTHOR Jochen Friedrich .SH SEE ALSO .BR arptables-save "(8), " arptables "(8) " debian/arptables-save.80000644000000000000000000000242211370561604012173 0ustar .TH ARPTABLES-SAVE 8 "May 08, 2008" "" "" .\" .\" Man page written by Jochen Friedrich .\" It is based on the iptables-save man page. .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. .\" .\" .SH NAME arptables-save \- Save ARP Tables .SH SYNOPSIS .BR "arptables-save " .br .SH DESCRIPTION .PP .B arptables-save is used to dump the contents of an ARP Table in easily parseable format to STDOUT. Use I/O-redirection provided by your shell to write to a file. .SH BUGS None known as of arptables-0.0.3.3 release .SH AUTHOR Jochen Friedrich .SH SEE ALSO .BR arptables-restore "(8), " arptables "(8) " debian/arptables.manpages0000644000000000000000000000006311370561604012662 0ustar debian/arptables-restore.8 debian/arptables-save.8 debian/patches/0000755000000000000000000000000011370562662010625 5ustar debian/patches/03_type.diff0000644000000000000000000000164711370561604012745 0ustar # Patch from Jeroen van Wolffelaar to make # arptables --proto-type also accept hexadecimal inputs (ethernet protocol # numbers are often specfied in hex, not decimal), using standard strtol() # behaviour (hex iff starts with 0x). diff -urNad arptables-0.0.3.3~/arptables.c arptables-0.0.3.3/arptables.c --- arptables-0.0.3.3~/arptables.c 2007-08-19 15:04:51.000000000 +0200 +++ arptables-0.0.3.3/arptables.c 2008-05-08 19:16:43.000000000 +0200 @@ -2039,7 +2039,7 @@ check_inverse(optarg, &invert, &optind, argc); set_option(&options, OPT_P_TYPE, &fw.arp.invflags, invert); - if (get16_and_mask(argv[optind - 1], &fw.arp.arpro, &fw.arp.arpro_mask, 10)) { + if (get16_and_mask(argv[optind - 1], &fw.arp.arpro, &fw.arp.arpro_mask, 0)) { if (strcasecmp(argv[optind-1], "ipv4")) exit_error(PARAMETER_PROBLEM, "Problem with specified protocol type"); fw.arp.arpro = htons(0x800); debian/patches/04_arptables_save.diff0000644000000000000000000000157511370561604014760 0ustar # Don't resolve host names and don't convert '*' interface names to any. # Remove '*' interface names. diff -urNad arptables-0.0.3.3~/arptables-save arptables-0.0.3.3/arptables-save --- arptables-0.0.3.3~/arptables-save 2009-08-19 14:17:17.000000000 +0200 +++ arptables-0.0.3.3/arptables-save 2009-08-19 14:19:58.000000000 +0200 @@ -35,6 +35,8 @@ # Due to arptables "issues" with displaying device names # we need to use -v and then do some processing $line =~ s/\s,\s.*//; + $line =~ s/-i\s\*//; + $line =~ s/-o\s\*//; $rules = $rules . "-A $chain $line\n"; } @@ -47,7 +49,7 @@ # ======================================================== unless (-x "$tool") { print "ERROR: Tool $tool isn't executable"; exit -1; }; -$table =`$tool -t filter -L -v`; +$table =`$tool -t filter -L -v -n`; unless ($? == 0) { print $table; exit -1 }; &process_table($table); debian/patches/series0000644000000000000000000000010511370561604012031 0ustar 01_Makefile.diff 02_manpage.diff 03_type.diff 04_arptables_save.diff debian/patches/02_manpage.diff0000644000000000000000000000067711370561604013375 0ustar diff -urNad arptables-0.0.3.3~/arptables.8 arptables-0.0.3.3/arptables.8 --- arptables-0.0.3.3~/arptables.8 2007-08-19 15:04:51.000000000 +0200 +++ arptables-0.0.3.3/arptables.8 2008-05-08 18:56:35.000000000 +0200 @@ -22,7 +22,7 @@ .\" .\" .SH NAME -arptables (v.0.0.3-3) \- ARP table administration +arptables \- ARP table administration .SH SYNOPSIS .BR "arptables " [ "-t table" ] " -" [ AD ] " chain rule-specification " [ options ] .br debian/patches/01_Makefile.diff0000644000000000000000000000567511370562662013511 0ustar Index: arptables-0.0.3.4/Makefile =================================================================== --- arptables-0.0.3.4.orig/Makefile 2010-03-08 16:49:28.000000000 +0100 +++ arptables-0.0.3.4/Makefile 2010-05-06 17:52:03.000000000 +0200 @@ -1,17 +1,17 @@ -ARPTABLES_VERSION:=0.0.3-4 +ARPTABLES_VERSION:=0.0.3.4 KERNEL_DIR:=./ # default paths -PREFIX:=/usr/local +PREFIX:=/usr LIBDIR:=$(PREFIX)/lib -BINDIR:=$(PREFIX)/sbin -MANDIR:=$(PREFIX)/man -INITDIR:=/etc/rc.d/init.d +BINDIR:=/sbin +MANDIR:=$(PREFIX)/share/man +INITDIR:=/etc/init.d SYSCONFIGDIR:=/etc/sysconfig DESTDIR:= -COPT_FLAGS:=-O2 -CFLAGS:=$(COPT_FLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include/ -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DARPTC_DEBUG +CFLAGS:=-O2 +CFLAGS2:=$(CFLAGS) -Wall -Wunused -I$(KERNEL_DIR)/include/ -Iinclude/ -DARPTABLES_VERSION=\"$(ARPTABLES_VERSION)\" #-g -DDEBUG #-pg # -DARPTC_DEBUG ifndef ARPT_LIBDIR ARPT_LIBDIR:=$(LIBDIR)/arptables @@ -22,16 +22,16 @@ all: arptables arptables.o: arptables.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS2) -c -o $@ $< arptables-standalone.o: arptables-standalone.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS2) -c -o $@ $< libarptc/libarptc.o: libarptc/libarptc.c libarptc/libarptc_incl.c - $(CC) $(CFLAGS) -c -o $@ $< + $(CC) $(CFLAGS2) -c -o $@ $< arptables: arptables-standalone.o arptables.o libarptc/libarptc.o $(EXT_OBJS) - $(CC) $(CFLAGS) -o $@ $^ + $(CC) $(CFLAGS2) -o $@ $^ $(DESTDIR)$(MANDIR)/man8/arptables.8: arptables.8 mkdir -p $(@D) @@ -49,8 +49,8 @@ install -m 0755 -o root -g root arptables-save_ $(DESTDIR)$(BINDIR)/arptables-save cat arptables-restore | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-restore_ install -m 0755 -o root -g root arptables-restore_ $(DESTDIR)$(BINDIR)/arptables-restore - cat arptables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > arptables.sysv_ - if test -d $(DESTDIR)$(INITDIR); then install -m 0755 -o root -g root arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi +# cat arptables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > arptables.sysv_ +# if test -d $(DESTDIR)$(INITDIR); then install -m 0755 -o root -g root arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi rm -f arptables-save_ arptables-restore_ arptables.sysv_ .PHONY: install Index: arptables-0.0.3.4/extensions/Makefile =================================================================== --- arptables-0.0.3.4.orig/extensions/Makefile 2010-03-08 16:49:28.000000000 +0100 +++ arptables-0.0.3.4/extensions/Makefile 2010-05-06 17:50:30.000000000 +0200 @@ -3,5 +3,5 @@ EXT_FUNC+=standard mangle EXT_OBJS+=$(foreach T,$(EXT_FUNC), extensions/arpt_$(T).o) -extensions/ebt_%.o: extensions/arpt_%.c include/arptables.h include/arptables_common.h - $(CC) $(CFLAGS) $(PROGSPECS) -c -o $@ $< +extensions/arpt_%.o: extensions/arpt_%.c include/arptables.h include/arptables_common.h + $(CC) $(CFLAGS2) $(PROGSPECS) -c -o $@ $< debian/source/0000755000000000000000000000000011370562025010467 5ustar debian/source/format0000644000000000000000000000001411370562025011675 0ustar 3.0 (quilt)