From: Mark Wooding Date: Tue, 11 Dec 2012 09:30:15 +0000 (+0000) Subject: classify.m4: Clean up interface map tracing. X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/commitdiff_plain/78aaac07301dc78e7676a18be5f23f44f6a4ffe7 classify.m4: Clean up interface map tracing. Remove duplicate dump of the interface, and only dump the list of known networks once at the very end. --- diff --git a/classify.m4 b/classify.m4 index 819cce6..f15c601 100644 --- a/classify.m4 +++ b/classify.m4 @@ -234,7 +234,6 @@ trace "ifmap = $ifmap" for entry in $ifmap; do iface=${entry%=*} q=${entry##*=} eval nets=\$ifnets_$q - trace "iface $iface [$q] = $nets" aa=! for n in $nets; do eval "addrs=\"\$net_inet_$n \$net_inet6_$n\"" @@ -246,8 +245,8 @@ for entry in $ifmap; do done eval ifaddrs_$q=\$aa trace "iface $q = $iface; nets = $nets; addrs = $aa" -trace "alladdrs = $alladdrs" done +trace "alladdrs = $alladdrs" ## Populate the `out-classify' chain, matching networks. prepare_to () { mode=goto fail=mark-to-$net_class_default; }