Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: lartc@vger.kernel.org
Subject: [LARTC] problem dumping statistics from queueing discipline
Date: Tue, 06 Aug 2002 15:46:44 +0000	[thread overview]
Message-ID: <marc-lartc-102864881606622@msgid-missing> (raw)

Hi.
I already wrote to linux-net but noone responded there and i don't want 
to go on peoples nerves in netdev with this, maybe someone here can help 
me ..

I want to supply extra data to print_copt and print_xstats so i tried 
this code:
...
     rta = (struct rtattr *)b;
     RTA_PUT(skb, TCA_OPTIONS, 0, NULL);
     RTA_PUT(skb, TCA_XSTATS, 0, NULL);

     if (trc_dump_attr(skb, cl) < 0)
         goto rtattr_failure;
     rta->rta_len = skb->tail - b;

     if (qdisc_copy_stats(skb, &cl->stats))
         goto rtattr_failure;
...

The extra data gets added in trc_dump_attr.
The problem is, depending on wether i add empty TCA_OPTIONS before 
TCA_XSTATS or the other way around, only one of them seems to make it to 
userspace, so only print_copt or print_xstats is called, but not both.
I don't understand why this doesn't works, please someone explain it to 
me ;)

Thanks & Bye,
Patrick

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

                 reply	other threads:[~2002-08-06 15:46 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=marc-lartc-102864881606622@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox