All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] squid + tc
Date: Thu, 23 May 2002 13:57:36 +0000	[thread overview]
Message-ID: <marc-lartc-102216231221576@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102205109325878@msgid-missing>

Martin Devera wrote:
>>Martin Devera wrote:
>>
>>>>On Wednesday 22 May 2002 10:43, you wrote:
>>>>
>>>>
>>>>>I've seen patch to squid somewhere. The trick is to encode original
>>>>>requester information into new request packets. It can go into
>>>>>"priority" field - it is 32bit and is userspace-settable.
>>>>
>>In Squid 2.5 you have the possibility to set TOS field with acls.
>>This also works by calling setsockopt on the socket, changing it to
>>SO_PRIORITY should take very little time
> 
> 
> the only problem is that you will have to keep acls in sync
> with your tc setup. But it could be done. Also you can could read
> fw_mark (probably it can't be done from userspace => patch needed)
> on incoming connection packets and set it on outgoing.
> If you then set nf_mark in ipchains/tables and use cls_fw then
> all should work transparently ..

Although i like the idea and it would be more administrative overhead i 
would prefer the acl solution because probably more people would use it 
if you don't need to patch the kernel .. also there would be better 
chances of getting included into the main squid tree.

> some day someone will write it. I need it too so that probably
> I'll spend some evening on it ..

Please tell me if you start on it so we don't end up doing the same work 
twice ..

Bye,
Patrick

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2002-05-23 13:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-22  7:00 [LARTC] squid + tc Gavin White
2002-05-22  7:27 ` Stef Coene
2002-05-22  8:36 ` Gavin White
2002-05-22  8:43 ` Martin Devera
2002-05-22 17:13 ` Andreas Lehrbaum
2002-05-22 18:35 ` Patrick McHardy
2002-05-22 18:57 ` Martin Devera
2002-05-23  2:38 ` Patrick McHardy
2002-05-23  7:04 ` Martin Devera
2002-05-23 13:57 ` 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=marc-lartc-102216231221576@msgid-missing \
    --to=kaber@trash.net \
    --cc=lartc@vger.kernel.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.