All of lore.kernel.org
 help / color / mirror / Atom feed
* ipt_CLASSIFY module
@ 2003-04-21 14:07 Jan Srzednicki
  2003-04-21 14:23 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Srzednicki @ 2003-04-21 14:07 UTC (permalink / raw)
  To: kaber; +Cc: netfilter-devel

Hello there,

I've just checked: -j CLASSIFY works well also in mangle table, chain
FORWARD (with HTB, if that matters). So I made a little fix for that:

--- ipt_CLASSIFY.c.old  Mon Apr 21 16:02:08 2003
+++ ipt_CLASSIFY.c      Mon Apr 21 15:58:12 2003
@@ -39,8 +39,9 @@
                return 0;
        }
        
-       if (hook_mask & ~(1 << NF_IP_POST_ROUTING)) {
-               printk(KERN_ERR "CLASSIFY: only valid in POST_ROUTING.\n");
+       if (hook_mask & ~(1 << NF_IP_POST_ROUTING) && 
+           hook_mask & ~(1 << NF_IP_FORWARD) ) {
+               printk(KERN_ERR "CLASSIFY: only valid in POSTROUTING or FORWARD.\n");
                return 0;
        }

greets,
-- 
  -- wrzask --= v =-- Winfried --===-- GG# 3838383 ---
-- w@dream.vg --- w@303.krakow.pl --===-- http://violent.dream.vg/ ---
--=< Ride the wild wind - push the envelope, don't sit on the fence, ---
  -- Ride the wild wind - live life on the razor's edge! >=-- Queen --

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-21 14:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-21 14:07 ipt_CLASSIFY module Jan Srzednicki
2003-04-21 14:23 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.