If tool does not use it, environment should be used.

On Fri, Feb 24, 2012 at 4:29 PM, Mickael Chazaux
<mickael.chaz...@gmail.com> wrote:
> In some use cases, it is valuable to have the gateway
> passed when deleting a route. Even if is ignored by
> iproute2, custom tools selected via the --iproute option
> can make use of it.
>
> Signed-off-by: Mickael Chazaux <mickael.chaz...@gmail.com>
> ---
>
>  route.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/route.c b/route.c
> index cf9a5ea..6fd44ca 100644
> --- a/route.c
> +++ b/route.c
> @@ -1718,10 +1718,12 @@ delete_route (struct route *r,
>
>  #if defined(TARGET_LINUX)
>  #ifdef CONFIG_FEATURE_IPROUTE
> -  argv_printf (&argv, "%s route del %s/%d",
> +  argv_printf (&argv, "%s route del %s/%d via %s",
>             iproute_path,
>             network,
> -             count_netmask_bits(netmask));
> +             count_netmask_bits(netmask),
> +             gateway
> +       );
>  #else
>  argv_printf (&argv, "%s del -net %s netmask %s",
>              ROUTE_PATH,
> --
> 1.7.0.4
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to