* 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* Re: ipt_CLASSIFY module
2003-04-21 14:07 ipt_CLASSIFY module Jan Srzednicki
@ 2003-04-21 14:23 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2003-04-21 14:23 UTC (permalink / raw)
To: Jan Srzednicki; +Cc: netfilter-devel
Hi Jan,
thanks for your patch ;)
My first version worked in FORWARD chain, too. The problem is
LOCAL_OUT doesn't work because "skb->priority = sk->priority"
line in ip_queue_xmit2. It was discussed to move it to ip_queue_xmit
some time ago because Bert Huber made a similar patch but the
networking maintainers didn't like it. So for consistency i decided
to restrict usage to POST_ROUTING only. Harald said he would have
no problem with such a change because he doesn't plan to submit
the CLASSIFY target in the near future anyways, so maybe an
incremental patch which enables use in FORWARD and OUTPUT
chain would be ok ..
Best regards,
Patrick
Jan Srzednicki wrote:
>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,
>
>
^ 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.