+ }//end for_each()
+
+ TheIP("0.0.0.0", TRUE);
+ ip->name = "TOTAL";
+ ip->mask = 0;
+
+ sort(network, networks, desc_order_by, mark); /* most distant networks first */
+ for_each(network, networks)
+ {
+ if(not network->uplink)
+ {
+ network->uplink = ip; /* global checksum */
+ }
+ printf("(%d) uplink of %s/%d is %s/%d \n",
+ network->mark, network->addr, network->mask, network->uplink->addr, network->uplink->mask);
+ update_network_direct(network->uplink, network);