Hi, On Tue, Feb 21, 2012 at 12:00:37AM +0800, Yang Zhe wrote: > It's quite slow to add thousands of routes via execve thousands times. > It's better writing the parameters to a pipe to `ip -batch -` on > linux.
Well, my VPNs have far less routes ("tens" instead of "thousands"), and exec()'ing was much easier to implement. I do agree with Heiko and David, though, that we should have netlink - if this is a reasonably stable API and useful documentation exists, because otherwise maintaining this code gets painful and error prone. (For compatibility reasons with the old linux versions we still support, we might need to keep the existing ifconfig/iproute2 methods) Patches welcome :-) gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany g...@greenie.muc.de fax: +49-89-35655025 g...@net.informatik.tu-muenchen.de
pgpPprAi_mkSv.pgp
Description: PGP signature