From ec8bb8049ad04b98561d97055965a67de2a1e991 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 19 Apr 2011 09:40:24 -0700 Subject: [PATCH] Delete/Add routes for NDP rather than replace Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Proxyarp.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Proxyarp.pm b/Shorewall/Perl/Shorewall/Proxyarp.pm index b94d85094..fd6657167 100644 --- a/Shorewall/Perl/Shorewall/Proxyarp.pm +++ b/Shorewall/Perl/Shorewall/Proxyarp.pm @@ -83,7 +83,11 @@ sub setup_one_proxy_arp( $$$$$$$ ) { if ( $family == F_IPV4 ) { emit "[ -n \"\$g_noroutes\" ] || run_ip route replace $address/32 dev $physical"; } else { - emit "[ -n \"\$g_noroutes\" ] || run_ip route replace $address/128 dev $physical"; + emit( 'if [ -z "$g_noroutes" ]; then', + " qt \$IP -6 route del $address/128 dev $physical". + " run_ip route add $address/128 dev $physical", + 'fi' + ); } $haveroute = 1 if $persistent;