All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Rennie deGraaf <degraaf@cpsc.ucalgary.ca>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: ip_rt_bug in mangle/OUTPUT
Date: Wed, 06 Jun 2007 13:36:38 +0200	[thread overview]
Message-ID: <46669C46.9000305@trash.net> (raw)
In-Reply-To: <4665C58A.6070401@cpsc.ucalgary.ca>

Rennie deGraaf wrote:
> Patrick McHardy wrote:
> 
>>If you don't need the rerouting to be happen (you only change the
>>source address and don't use routing rules based on that) you can
>>simply return NF_STOP instead of NF_ACCEPT. It will do exactly
>>the same thing but avoid rerouting.
> 
> 
> That solution worked well on recent kernels.  Unfortunately, my boss now
> wants my code to work on Linux 2.6.9, which doesn't appear to have
> NF_STOP.  (It seems to have been added in 2.6.12.)  Can you think of any
> other work-arounds, short of dropping the packets and re-injecting the
> modified versions through raw sockets?


No, old kernel version will even leak packets when you send unknown
return codes.

      reply	other threads:[~2007-06-06 11:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23 21:12 ip_rt_bug in mangle/OUTPUT Rennie deGraaf
2007-05-24 17:50 ` Patrick McHardy
2007-05-24 21:22   ` Rennie deGraaf
2007-06-05 20:20   ` Rennie deGraaf
2007-06-06 11:36     ` Patrick McHardy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46669C46.9000305@trash.net \
    --to=kaber@trash.net \
    --cc=degraaf@cpsc.ucalgary.ca \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.