From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Date: Tue, 06 Aug 2002 15:46:44 +0000 Subject: [LARTC] problem dumping statistics from queueing discipline Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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/