On 15/08/10 13:22, Thomas Trepl wrote:
> Hi
>
> the currect version of iproute2 seems to have a little bug. This bug causes
> the "ip route get x.x.x.x" command to print nothing. Very unuseful (especially
> when using vpnc which relies on that output)...
>
> Attached a small patch, maybe a sed could do same.

sed -i 's/== !/\&\& !/' ip/iproute.c

> Btw, found that fix here:
> http://www.spinics.net/lists/netdev/msg137465.html
>
> --
> Thomas
>
>
> iproute2-2.6.35-fix_ip_route_get-1.patch
>
>
> diff -Naur iproute2-2.6.35.orig/ip/iproute.c iproute2-2.6.35/ip/iproute.c
> --- iproute2-2.6.35.orig/ip/iproute.c 2010-08-04 19:45:59.000000000 +0200
> +++ iproute2-2.6.35/ip/iproute.c      2010-08-14 07:09:32.000000000 +0200
> @@ -160,7 +160,7 @@
>       if (r->rtm_family == AF_INET6&&  table != RT_TABLE_MAIN)
>               ip6_multiple_tables = 1;
>
> -     if (filter.cloned == !(r->rtm_flags&RTM_F_CLONED))
> +     if (filter.cloned&&  !(r->rtm_flags&RTM_F_CLONED))
>               return 0;
>
>       if (r->rtm_family == AF_INET6&&  !ip6_multiple_tables) {
>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to