static void size_cols_tree(struct radix_node *rn) { again: kget(rn, rnode); if (rnode.rn_bit < 0) { if ((rnode.rn_flags & RNF_ROOT) == 0) { kget(rn, rtentry); size_cols_rtentry(&rtentry); } if ((rn = rnode.rn_dupedkey)) goto again; } else { rn = rnode.rn_right; size_cols_tree(rnode.rn_left); size_cols_tree(rn); } }
static void size_cols(int ef __unused, struct radix_node *rn) { wid_dst = WID_DST_DEFAULT(ef); wid_gw = WID_GW_DEFAULT(ef); wid_flags = 6; wid_refs = 6; wid_use = 8; wid_mtu = 6; wid_if = WID_IF_DEFAULT(ef); wid_expire = 6; if (Wflag) size_cols_tree(rn); }