X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fnetwork.git;a=blobdiff_plain;f=src%2Ffunctions%2Ffunctions.routing;h=c7aac094f11cdca2c4d88abc8a65df4816666425;hp=b7b0cc97973335a8a0005756faef231f849841fa;hb=13a6e69f4e4fd98637d84e78df290a920c0605d6;hpb=e708653faa915bfe08893553228e866f14ecef78 diff --git a/src/functions/functions.routing b/src/functions/functions.routing index b7b0cc97..c7aac094 100644 --- a/src/functions/functions.routing +++ b/src/functions/functions.routing @@ -164,10 +164,10 @@ routing_update() { case "${proto}" in ipv4) - local net_address=$(ipv4_get_netaddress ${local_ip_address}) + local network=$(ipv4_get_network "${local_ip_address}") log DEBUG "Adding route for subnet ${local_ip_address} to table ${table}" - cmd ${ip_cmd} route add table ${table} ${net_address} dev ${zone} + cmd ${ip_cmd} route add table "${table}" "${network}" dev "${zone}" ;; esac