forked from extern/shorewall_code
Optimize use of 'arping'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2423 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
6c8b63bfe0
commit
5f58eac0f7
@ -6591,7 +6591,7 @@ verify_os_version() {
|
||||
#
|
||||
add_ip_aliases()
|
||||
{
|
||||
local addresses external interface inet cidr rest val
|
||||
local addresses external interface inet cidr rest val arping=$(mywhich arping)
|
||||
|
||||
address_details()
|
||||
{
|
||||
@ -6627,7 +6627,7 @@ add_ip_aliases()
|
||||
ensure_and_save_command ip addr add ${external}${val} dev $interface $label
|
||||
fi
|
||||
|
||||
qt mywhich arping && run_and_save_command qt arping -U -c 2 -I $interface $external
|
||||
[ -n "$arping"] && run_and_save_command qt $arping -U -c 2 -I $interface $external
|
||||
|
||||
echo "$external $interface" >> /var/lib/shorewall/nat
|
||||
[ -n "$label" ] && label="with $label"
|
||||
|
Loading…
Reference in New Issue
Block a user