From: Thomas Graf <tgraf@suug.ch>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Samuel Ortiz <samuel@sortiz.org>,
giometti@enneenne.com, netdev@vger.kernel.org
Subject: Re: Generic netlink interface help
Date: Sat, 26 May 2007 00:18:02 +0200 [thread overview]
Message-ID: <20070525221802.GO521@postel.suug.ch> (raw)
In-Reply-To: <1180024477.18003.11.camel@johannes.berg>
* Johannes Berg <johannes@sipsolutions.net> 2007-05-24 18:34
> On Thu, 2007-05-24 at 09:43 +0000, Samuel Ortiz wrote:
>
> > You probably want to use the libnl library. The latest SVN code has
> > support for generic netlink:
> > http://people.suug.ch/~tgr/libnl/
>
> Huh. I just looked at it and I don't understand anything. What's the
> point with genl_register/genl_unregister and having a table of commands
> etc? Thomas, can you explain how I should use libnl for nl80211 now? I
> mean, I can see what I can do with just sending/receiving messages but
> it feels like I'm missing something with all that other infrastructure
> in libnl.
This area is still work in progress but the basic idea is that
like in kernel context, the application defines its set of
commands and assigns message parsers for each command. For now,
the message parser is linked into the cache operations which
means that you have to "update" a cache in order to use this
feature. This is obviously not optimal so what I might end up
is to allow changing the "valid message" callback to be set to
a parser function which takes the list of operations and does
the demuxing.
next prev parent reply other threads:[~2007-05-25 22:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-24 8:59 Generic netlink interface help Rodolfo Giometti
2007-05-24 9:43 ` Samuel Ortiz
2007-05-24 9:56 ` Rodolfo Giometti
2007-05-24 10:04 ` Samuel Ortiz
2007-05-24 11:21 ` Rodolfo Giometti
2007-05-24 13:21 ` Paul Moore
2007-05-24 13:51 ` jamal
2007-05-24 16:34 ` Johannes Berg
2007-05-25 22:18 ` Thomas Graf [this message]
2007-05-27 13:24 ` Johannes Berg
2007-05-27 13:50 ` Rodolfo Giometti
2007-05-27 13:54 ` Johannes Berg
2007-05-27 17:47 ` Rodolfo Giometti
2007-05-28 14:01 ` Samuel Ortiz
2007-05-30 21:45 ` Thomas Graf
2007-05-27 17:39 ` Rodolfo Giometti
2007-05-28 1:42 ` Samuel Ortiz
2007-05-28 7:41 ` Rodolfo Giometti
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=20070525221802.GO521@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=giometti@enneenne.com \
--cc=johannes@sipsolutions.net \
--cc=netdev@vger.kernel.org \
--cc=samuel@sortiz.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).