Lines Matching defs:prefix
32 "[+NAME?testiv - iv ipv6 longest prefix match test harness]"
34 "then does a longest prefix match for each ipv6 address in each "
37 "matching prefix and optional associated string one line per match. "
38 "\b-\b is listed instead of the prefix for unmatched addresses.]"
40 "separated fields, with the \bipv6\b prefix in the first field and an "
44 "[d:dump?Dump the prefix table before matching the addresses.]"
61 unsigned char prefix[IP6PREFIX];
75 unsigned char prefix[IP6PREFIX];
128 error(ERROR_SYSTEM|3, "%s: cannot read prefix file", file);
132 if (ivstr(iv, s, &v, prefix, prefix + iv->size))
133 error(1, "%s: invalid prefix", s);
145 memcpy(hop->prefix, prefix, iv->size + 1);
147 lo = fvplo(iv->size, prefix[iv->size], iv->r1, prefix);
148 hi = fvphi(iv->size, prefix[iv->size], iv->r2, prefix);
150 sfprintf(sfstdout, "set %-42s %-42s %-42s %s\n", ivfmt(iv, lo, prefix[size]), ivfmt(iv, lo, -1), ivfmt(iv, hi, -1), v);
171 sfprintf(sfstdout, "%s%-42s %-42s %s\n", dump ? "get " : "", ivfmt(iv, addr, -1), ivfmt(iv, hop->prefix, hop->prefix[iv->size]), hop->name);