Thread (29 messages) 29 messages, 8 authors, 2003-06-09

Re: netlink tester program

From: Randy.Dunlap <hidden>
Date: 2003-06-02 17:07:54

On Sat, 31 May 2003 14:09:40 +0200 Andi Kleen [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help