Re: netlink tester program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 31 May 2003 14:09:40 +0200 Andi Kleen <ak@suse.de> wrote:

| > You really need something like rtnl_talk() or rtnl_dump_filter()
| > from libnetlink to do this properly.
| 
| In case it's helpful I wrote manpages for libnetlink some time ago.
| 
| I also have some simple example programs using it. Other examples
| can be found in the zebra or bird source code.

Does this man page live somewhere?  Do some distros ship it?

Where can I find your example programs that use it?

Couple of corrections below....


|        rtnl_listen
|               Receive netlink data after a request and pass it to
|               handler.   handler is a callback that gets the mes-
|               sage source address, the message  itself,  and  the
|               jarg  cookie  as  arguments. It will get called for
+                                            It will be called for
{'get' should usually be avoided when easily done}
|               all received messages.  Only one message bundle  is
|               received.  Unless  there is no message pending this
|               function does not block.
| 
| 
|        rta_addattr32
|               Initialize the rtnetlink attribute rta with a __u32
|               data value.
| 
| 
|        rta_addattr32
+        rta_addattr_l
|               Initialize the rtnetlink attribute rta with a vari-
|               able length data value.


--
~Randy
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux