Package: arptables Version: 0.0.3-1 Severity: wishlist Tags: patch For some reason, arptables insists that --proto-type is specified as a base-10 integer. Please find attached a trivial patch to make it also accept hexadecimal inputs (ethernet protocol numbers are often specfied in hex, not decimal), using standard strtol() behaviour (hex iff starts with 0x).
Thanks, --Jeroen -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.8-3-k7 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages arptables depends on: ii libc6 2.3.2.ds1-22sarge4 GNU C Library: Shared libraries an -- no debconf information -- Jeroen van Wolffelaar [EMAIL PROTECTED] (also for Jabber & MSN; ICQ: 33944357) http://Jeroen.A-Eskwadraat.nl
--- arptables.c.old 2007-02-16 20:25:07.658149236 +0100
+++ arptables.c 2007-02-16 20:25:42.222891281 +0100
@@ -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);
signature.asc
Description: Digital signature

