mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-18 20:30:43 +01:00
Delete/Add routes for NDP rather than replace
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cdf2014ce2
commit
ec8bb8049a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user