Searched refs:prefixes (Results 1 - 2 of 2) sorted by relevance

/ast/src/cmd/dsslib/ip_t/
H A Dptstats.c41 Ptcount_t prefixes[PTBITS+1]; local
48 addresses[i] = prefixes[i] = 0;
59 prefixes[b]++;
62 for (i = n = 0; i < elementsof(prefixes); i++)
63 if (prefixes[i])
66 total_prefixes += prefixes[i];
69 sfprintf(sp, "/%-2d %6I*u %*I*u %s%s\n", i, sizeof(prefixes[i]), prefixes[i], sizeof(S) - 1, sizeof(addresses[i]), addresses[i], prt + sizeof(prt) - pc - 1, tot + sizeof(tot) - tc - 1);
H A Dptvstats.c43 unsigned char** prefixes; local
55 prefixes = addresses + bits + 1;
56 total_addresses = (unsigned char*)(prefixes + bits + 1);
63 prefixes[i] = v;
76 fvadd(a->size, prefixes[b], prefixes[b], a->r[1]);
83 if (fvcmp(a->size, prefixes[i], a->r[1]) >= 0)
86 fvadd(a->size, total_prefixes, total_prefixes, prefixes[i]);
107 sfprintf(sp, "/%-3d %16s %16s %s%s\n", i, fmtfv(a->size, prefixes[i], 10, ',', 3), sizeof(S) - 1, fmtfv(a->size, addresses[i], 10, ',', 3), prt + sizeof(prt) - pc - 1, tot + sizeof(tot) - tc - 1);

Completed in 29 milliseconds