[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110729.054649.1274733167127164255.davem@davemloft.net>
Date: Fri, 29 Jul 2011 05:46:49 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dwmw2@...radead.org
Cc: jsbronder@...too.org, netdev@...r.kernel.org, shemminger@...tta.com
Subject: Re: vpnc-script fix for changed iproute output with newer kernels
From: David Woodhouse <dwmw2@...radead.org>
Date: Fri, 29 Jul 2011 13:33:11 +0100
> Any suggestions that *aren't* going to be constantly broken?
You're going to have to be knowledgable about which attributes are
part of the route, whether you want to do this with iproute2 as a tool
or whether you do this directly with C code using netlink.
If you want to script this using iproute2, you should be grepping for
the attributes you want to keep rather then grepping for the
attributes you end up dropping.
iproute2 is never going to allow you to mirror "route get" outputs
into a "route add" call. Because 'get' is going to always emit
metrics and other transient state, upon which we will always
potentially be buidling new items over time.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists