Lines Matching defs:ni
97 rip6_entry_print(netdissect_options *ndo, register const struct netinfo6 *ni, int metric)
100 l = ND_PRINT((ndo, "%s/%d", ip6addr_string(ndo, &ni->rip6_dest), ni->rip6_plen));
101 if (ni->rip6_tag)
102 l += ND_PRINT((ndo, " [%d]", EXTRACT_16BITS(&ni->rip6_tag)));
104 l += ND_PRINT((ndo, " (%d)", ni->rip6_metric));
112 register const struct netinfo6 *ni;
124 j = length_left / sizeof(*ni);
133 if (j * sizeof(*ni) != length_left)
137 for (ni = rp->rip6_nets; length_left >= sizeof(*ni);
138 length_left -= sizeof(*ni), ++ni) {
139 ND_TCHECK(*ni);
144 rip6_entry_print(ndo, ni, 0);
154 j = length_left / sizeof(*ni);
155 if (j * sizeof(*ni) != length_left)
159 for (ni = rp->rip6_nets; length_left >= sizeof(*ni);
160 length_left -= sizeof(*ni), ++ni) {
161 ND_TCHECK(*ni);
166 rip6_entry_print(ndo, ni, ni->rip6_metric);