netdev
[Top] [All Lists]

Re: netlink tester program

To: rddunlap@xxxxxxxx
Subject: Re: netlink tester program
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Fri, 30 May 2003 23:42:11 -0700 (PDT)
Cc: linux-net@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <32804.4.64.196.31.1054351332.squirrel@xxxxxxxxxxxx>
References: <20030530090015.7c435c9a.rddunlap@xxxxxxxx> <20030530.171111.71099698.davem@xxxxxxxxxx> <32804.4.64.196.31.1054351332.squirrel@xxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
   From: "Randy.Dunlap" <rddunlap@xxxxxxxx>
   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.

You really need something like rtnl_talk() or rtnl_dump_filter()
from libnetlink to do this properly.

<Prev in Thread] Current Thread [Next in Thread>