From: Patrick McHardy <kaber@trash.net>
To: dean gaudet <dean@arctic.org>
Cc: netfilter@lists.netfilter.org
Subject: Re: per socket nfmark
Date: Thu, 12 Jul 2007 15:58:31 +0200 [thread overview]
Message-ID: <46963387.9050202@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0707110910550.24929@twinlark.arctic.org>
dean gaudet wrote:
> On Wed, 11 Jul 2007, wrote:
>
>
>> I would like to bring up the question, if there is a way to associate a
>>nfmark with a socket. It would be very helpful as it saves the matching
>>against iptables rules which would have to than match the packet and
>>associate the nfmark.
>>
>>The same question was already posted here:
>>http://lists.netfilter.org/pipermail/netfilter/2002-October/039074.html
>
>
> i ended up using IPTOS to do what i wanted... it can't handle nearly as
> many cases, but i ended up just burning a few extra IP addresses to get
> all the traffic shaping classes i needed.
>
> i wrote a mod_iptos for apache so it could set IPTOS appropriately
> depending on response size, or vhost or whatever.
>
> http://arctic.org/~dean/mod_iptos/
A clean solution would be to use skb->priority and SO_PRIORITY,
which allows you to specify the TC classes directly. Should be
trivial to change your module to do that.
prev parent reply other threads:[~2007-07-12 13:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-11 14:06 per socket nfmark
2007-07-11 14:25 ` Grant Taylor
2007-07-11 16:14 ` dean gaudet
2007-07-12 13:58 ` 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=46963387.9050202@trash.net \
--to=kaber@trash.net \
--cc=dean@arctic.org \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox