All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Moore <paul.moore@hp.com>
To: Rodolfo Giometti <giometti@enneenne.com>
Cc: Samuel Ortiz <samuel@sortiz.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: Generic netlink interface help
Date: Thu, 24 May 2007 09:21:37 -0400	[thread overview]
Message-ID: <200705240921.38015.paul.moore@hp.com> (raw)
In-Reply-To: <20070524112144.GB21180@enneenne.com>

On Thursday, May 24 2007 7:21:44 am Rodolfo Giometti wrote:
> On Thu, May 24, 2007 at 10:04:08AM -0000, Samuel Ortiz wrote:
> > Yes it's possible, even though it could be more tedious and painful.
>
> I know that. Have you some links to suggest to me in order to have
> some programming examples?

The libnl library itself is probably the best example that I have seen.  At 
it's core it is basically just regular Netlink with an extra layer of 
abstraction, i.e. a new header between the Netlink header and the payload.

Also, if you are still looking for in-kernel examples here are two _very_ 
simple ones which might help:

 * net/netlabel/netlabel_unlabeled.c:netlbl_unlabel_accept()
   This function reads a single attribute, NLBL_UNLABEL_A_ACPTFLG, sent
   from user space and acts on the value.

 * net/netlabel/netlabel_unlabeled.c:netlbl_unlabel_list()
   This function generates a reply message with a single attribute,
   NLBL_UNLABEL_A_ACPTFLG, in response to a request message.

-- 
paul moore
linux security @ hp

  reply	other threads:[~2007-05-24 13:22 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 [this message]
2007-05-24 13:51         ` jamal
2007-05-24 16:34   ` Johannes Berg
2007-05-25 22:18     ` Thomas Graf
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=200705240921.38015.paul.moore@hp.com \
    --to=paul.moore@hp.com \
    --cc=giometti@enneenne.com \
    --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 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.