Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Access to TC from linux kernel
Date: Tue, 19 Nov 2002 08:54:20 +0000	[thread overview]
Message-ID: <marc-lartc-103769614004379@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103764714629397@msgid-missing>

On Monday 18 November 2002 20:17, lists brk wrote:
> Hi!,
>
> I am a newbie to LARTC. I have a linux kernel module
> which inspects packets and marks the packets using
> Netfilter.
>
> I am aware that I can implement traffic shaping on the
> marked packets using tc from the user land.
>
> I would like to know if I can perform traffic shaping
> on the marked packets from within the linux kernel.
> Did anyone do something similar to this before?
You need the fw filter.  This filter can match packets based on the kernel 
mark.

tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 10:1
This filter will match all packets with mark 1 and put them in class 10:1


Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

      reply	other threads:[~2002-11-19  8:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-18 19:17 [LARTC] Access to TC from linux kernel lists brk
2002-11-19  8:54 ` Stef Coene [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-103769614004379@msgid-missing \
    --to=stef.coene@docum.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox