From: Daniel Lezcano <daniel.lezcano@free.fr>
To: Tianjin Zhang <ztianjin@gmail.com>
Cc: Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: interprocess communication with netlinks
Date: Fri, 08 May 2009 11:37:20 +0200 [thread overview]
Message-ID: <4A03FD50.7000207@free.fr> (raw)
In-Reply-To: <765b42e40905072305w39301b38ied44a83a581ad29d@mail.gmail.com>
Tianjin Zhang wrote:
> i think the following material can help you.
>
> 1. http://lwn.net/Articles/262385/ introduce the IPN,
>
> 2. http://www.linuxjournal.com/article/7356 introduce how to use netlink
> socket and why
>
Thank you but I already saw these documents. I am used to play with the
netlink for kernel <-> user communication, I am wondering if it is
possible to have the applications to communicate, I mean user <-> user.
I saw a comment in the mailing list archive
http://kerneltrap.org/mailarchive/linux-kernel/2007/12/7/493793/thread
"... with minor adjustments we have the facilities to
meet your needs. There is no need for yet-another-protocol to do what
you're trying to do, we already have too much duplicated
functionality."
Were these "minor adjustements" done ?
Thanks
-- Daniel
> On Fri, May 8, 2009 at 12:00 AM, Daniel Lezcano <daniel.lezcano@free.fr>wrote:
>
>
>> Hi netdev gurus !
>>
>> I am trying to make several processes to communicate via the netlink
>> protocol.
>>
>> I saw a discussion around the AF_IPN (inter process communication) protocol
>> and it seems the same can be done with the AF_NETLINK protocol with minor
>> modifications in the kernel. Were these modifications done ?
>>
>> I am trying to use multicast between several processes, for notification.
>>
>> What protocol should I use to create the socket ?
>>
>> fd = socket(PF_NETLINK, SOCK_RAW, ???);
>>
>> I was not able to find any suitable pointer to explain how to do that, so I
>> blindly tried several combinations but I am afraid to interact with the
>> other netlink protocols when using a multicast group, especially when there
>> are other applications like avahi-daemon or "ip monitor all".
>>
>> Does anyone have a pointer to a documentation (not the redhat one, pls), or
>> some clues ?
>>
>> Thanks in advance.
>> -- Daniel
>> --
>> To unsubscribe from this list: send the line "unsubscribe netdev" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>>
>
>
next prev parent reply other threads:[~2009-05-08 9:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 16:00 interprocess communication with netlinks Daniel Lezcano
[not found] ` <765b42e40905072305w39301b38ied44a83a581ad29d@mail.gmail.com>
2009-05-08 9:37 ` Daniel Lezcano [this message]
2009-05-11 19:36 ` Randy Dunlap
2009-05-12 16:27 ` Neil Horman
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=4A03FD50.7000207@free.fr \
--to=daniel.lezcano@free.fr \
--cc=netdev@vger.kernel.org \
--cc=ztianjin@gmail.com \
/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).