From 78aaac07301dc78e7676a18be5f23f44f6a4ffe7 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Tue, 11 Dec 2012 09:30:15 +0000 Subject: [PATCH] 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. --- classify.m4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.11.0