arptables -l
"László Bakó-Szabó" <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
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
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Ebtables-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ebtables-devel