classify.m4: Clean up interface map tracing.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 11 Dec 2012 09:30:15 +0000 (09:30 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 11 Dec 2012 09:46:57 +0000 (09:46 +0000)
Remove duplicate dump of the interface, and only dump the list of known
networks once at the very end.

classify.m4

index 819cce6..f15c601 100644 (file)
@@ -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; }