From: Chris Friesen <cfriesen@nortelnetworks.com>
To: Carl-Johan Bostorp <ctor@krixor.xy.org>
Cc: netdev@oss.sgi.com
Subject: Re: packet socket can't steal packets
Date: Wed, 08 May 2002 09:49:53 -0400 [thread overview]
Message-ID: <3CD92D01.A4AD708@nortelnetworks.com> (raw)
In-Reply-To: 19900103212500.A4614@ratula.chimaira.se
Carl-Johan Bostorp wrote:
>
> On Tue, May 07, 2002 at 09:02:31PM +0300, Dmitrii Tisnek wrote:
> > hey, I've been trying to change certain network packet mangling software
> > such that it would not need a kernel module, and it seems to me that,
> > unfortunately there's no way to make packet socket "steal" packets it
> > deliveres to the user mode.
>
> "Divert Sockets for Linux" springs to my mind..
>
> http://www.anr.mcnc.org/~divert/index.shtml
Except that the original poster is using the 2.4 kernel, for which divert
sockets do not work.
For 2.4 the netfilter module is cleanest, followed by netfilter QUEUE to
userspace (although this will give a performance hit).
When I had to move from 2.2 with divert sockets to 2.4, I used a netfilter
module with commandline parameters to pass in arguments.
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
next prev parent reply other threads:[~2002-05-08 13:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-07 18:02 packet socket can't steal packets Dmitrii Tisnek
1990-01-03 20:25 ` Carl-Johan Bostorp
2002-05-08 13:49 ` Chris Friesen [this message]
2002-05-07 18:16 ` Thomas 'Dent' Mirlacher
2002-05-07 18:28 ` Dmitrii Tisnek
2002-05-07 18:39 ` Thomas 'Dent' Mirlacher
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=3CD92D01.A4AD708@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=ctor@krixor.xy.org \
--cc=netdev@oss.sgi.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).