[Ebtables-devel] arptables -l
Brought to you by:
bdschuym
From: <la...@gm...> - 2006-08-15 14:15:08
|
Hi, I just discovered a little bug in arptables: the short version for --h-length doesn't work, so here's a patch that corrects this. Cheers. diff -Naur arptables-v0.0.3-2.orig/arptables.c arptables-v0.0.3-2 /arptables.c --- arptables-v0.0.3-2.orig/arptables.c 2003-10-25 13:43:24.000000000 +0300 +++ arptables-v0.0.3-2/arptables.c 2006-08-15 16:58:37.000000000 +0300 @@ -134,7 +134,7 @@ { "destination-mac", 1, 0, 3}, { "src-mac", 1, 0, 2}, { "dst-mac", 1, 0, 3}, - { "h-length", 1, 0, 7 }, + { "h-length", 1, 0, 'l' }, { "p-length", 1, 0, 8 }, { "opcode", 1, 0, 4 }, { "h-type", 1, 0, 5 }, @@ -1988,7 +1988,7 @@ "destination mac"); break; - case 7:/* hardware length */ + case 'l':/* hardware length */ check_inverse(optarg, &invert, &optind, argc); set_option(&options, OPT_H_LENGTH, &fw.arp.invflags, invert); -- Laszlo Bako-Szabo Network Administrator |