All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
To: lartc@vger.kernel.org
Subject: [LARTC] tc actions and accounting
Date: Thu, 23 Nov 2006 20:08:44 +0000	[thread overview]
Message-ID: <4565FFCC.5090502@gmx.net> (raw)

Hi,

I'd like to account the data going out to an interface after shaping
and policing. At the moment, I'm using ipt_ACCOUNT for per-IP
accounting, but it counts packets regardless if they are dropped or
not. Using tc counters directly would force me to install one tc rule
per IP which I'd rather avoid.
My idea was to use tc actions with ipt_ACCOUNT, but I have no idea
what will be counted and how to specify an action for only some of
the data *after* shaping and policing.
The tc action documentation seems to suggest that the actions
happen at the time of PREROUTING/POSTROUTING in netfilter, so
that would not work for me.

As an alternative, I searched for a tc equivalent of ipt_ACCOUNT,
but I found nothing. My previous attempt to solve a similar problem
is here: http://mailman.ds9a.nl/pipermail/lartc/2005q2/016271.html

Regards,
Carl-Daniel
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2006-11-23 20:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4565FFCC.5090502@gmx.net \
    --to=c-d.hailfinger.devel.2006@gmx.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.