All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Friesen <cfriesen@nortelnetworks.com>
To: netdev@oss.sgi.com, linux-kernel@vger.kernel.org
Subject: how to do DIVERT socket equivalent with netfilter?
Date: Tue, 15 Jan 2002 16:19:31 -0500	[thread overview]
Message-ID: <3C449CE3.FBA52C68@nortelnetworks.com> (raw)


We've got a legacy app with its own message stacks, one for tcp/icmp and one for
udp/sctp.

Currently in 2.2 we're using multiple divert sockets with appropriate ipchains
rules to direct the right traffic to each socket.  The app asks for messages for
one of the two stacks, we check if there is anything on that socket, and if
there is anything we pass it up the stack.

Now we're looking to make the thing work on 2.4.  Unfortunately, it doesn't look
like DIVERT sockets are supported in 2.4, so I started looking at netfilter's
QUEUE target.  This looks fine, except that there is only a single queue and I'd
like at least two.

Does anyone know of anything that
1) gives me multiple queues/sockets based on protocol (like DIVERT sockets)
2) ensures that the kernel itself doesn't try and handle the packet, resulting
in destination unreachable error packets (like DIVERT and netfilter)
3) works on 2.4

I can always filter the incoming messages by protocol and store them in a pair
of message queues (one for each stack) in the lower level of the app itself, but
this seems kind of kludgy and I'm sure there's gotta be a better way.  If there
is something already available I'd love to hear about it.

Any ideas?

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

             reply	other threads:[~2002-01-15 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-15 21:19 Chris Friesen [this message]
2002-01-15 21:21 ` how to do DIVERT socket equivalent with netfilter? David S. Miller

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=3C449CE3.FBA52C68@nortelnetworks.com \
    --to=cfriesen@nortelnetworks.com \
    --cc=linux-kernel@vger.kernel.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 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.