On Fri, 30 May 2003 23:42:11 -0700 (PDT) "David S. Miller" <davem@redhat.com> wrote: | From: "Randy.Dunlap" <rddunlap@osdl.org> | Date: Fri, 30 May 2003 20:22:12 -0700 (PDT) | | Oh well, it's at this URL, bugs and all. | | http://www.xenotime.net/linux/ipv6/rtnl_test.c | | I know you don't want to use libnetlink from iproute2, but I want to | stress that it takes care of all of the minutae of netlink socket | usage that you have to duplicate in your little test program and this | duplication leads to bugs. | | Firstly, you needs to be fixed to call recvmsg() multiple times, | you'll get one entry for each recvmsg call in the table you are | querying. Yes, I noticed that I was getting only 1 msg there. | You really need something like rtnl_talk() or rtnl_dump_filter() | from libnetlink to do this properly. Does anyone have documentation (or semantics) for rtnl_talk()? or just some blurb about it? Andi's libnetlink man page missed it somehow. Thanks, -- ~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