From: Vadim Kochan <vadim4j@gmail.com>
To: Florian Westphal <fw@strlen.de>
Cc: Vadim Kochan <vadim4j@gmail.com>, netdev@vger.kernel.org
Subject: Re: iproute2 tc: Print qdisc, stats, class, filter info to string rather than FILE
Date: Thu, 8 Jan 2015 00:12:57 +0200 [thread overview]
Message-ID: <20150107221257.GA23047@angus-think.lan> (raw)
In-Reply-To: <20150107221309.GG11324@breakpoint.cc>
On Wed, Jan 07, 2015 at 11:13:09PM +0100, Florian Westphal wrote:
> Vadim Kochan <vadim4j@gmail.com> wrote:
> > I'd like to make possible to generate plot info about class hierarchy
> > with qdisc, filters, stats info, but I see that all this staffs are
> > printed to 'FILE *fp' which makes this hard to implement and seems to me
> > that it should be changed to be printed to 'char *s' (memory safety
> > should be considered by asprintf or similar), so this is a big change
> > but all this is possible and I ready to do it, but before do it I'd like
> > to ask if this could be acceptable as idea.
> >
> > BUT maybe someone can advise me easier solution ?
>
> Would fmemopen/open_memstream(3) do what you want?
I briefly looked on it, and it might help, THANKS A LOT!
next prev parent reply other threads:[~2015-01-07 22:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 21:53 iproute2 tc: Print qdisc, stats, class, filter info to string rather than FILE Vadim Kochan
2015-01-07 22:13 ` Florian Westphal
2015-01-07 22:12 ` Vadim Kochan [this message]
2015-01-07 23:08 ` Stephen Hemminger
2015-01-07 23:46 ` Vadim Kochan
2015-01-08 0:06 ` Thomas Graf
2015-01-08 1:02 ` Vadim Kochan
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=20150107221257.GA23047@angus-think.lan \
--to=vadim4j@gmail.com \
--cc=fw@strlen.de \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).