--- /usr/src/iptables-1.3.0rc1/extensions/libipt_hashlimit.c 2005-01-04 13:38:34.000000000 +0300 +++ libipt_hashlimit.c 2005-01-24 21:23:50.000000000 +0300 @@ -7,6 +7,8 @@ * Based on ipt_limit.c by * Jérôme de Vivie * Hervé Eychenne + * + * Error corections by nmalykh@bilim.com (22.01.2005) */ #include @@ -294,7 +296,7 @@ fputs("dstip", stdout); prevmode = 1; } - if (r->cfg.mode & IPT_HASHLIMIT_HASH_SPT) { + if (r->cfg.mode & IPT_HASHLIMIT_HASH_DPT) { if (prevmode) putchar(separator); fputs("dstport", stdout); @@ -334,8 +336,10 @@ if (r->cfg.burst != IPT_HASHLIMIT_BURST) printf("--hashlimit-burst %u ", r->cfg.burst); - fputs("--mode ", stdout); + fputs("--hashlimit-mode ", stdout); print_mode(r, ','); + + printf("--hashlimit-name %s ", r->name); if (r->cfg.size) printf("--hashlimit-htable-size %u ", r->cfg.size);