Lines Matching refs:nip
46 const struct netinfo *nip; in interpret_rip() local
89 nip = rip->rip_nets; in interpret_rip()
91 if (len >= sizeof (*nip) && in interpret_rip()
92 nip->n_family == RIP_AF_AUTH) { in interpret_rip()
93 nap = (struct netauth *)nip; in interpret_rip()
94 len -= sizeof (*nip); in interpret_rip()
101 count = len / sizeof (*nip); in interpret_rip()
102 len %= sizeof (*nip); in interpret_rip()
163 for (nip = rip->rip_nets; len >= sizeof (*nip); nip++, in interpret_rip()
164 len -= sizeof (*nip)) { in interpret_rip()
165 if (nip->n_family == RIP_AF_AUTH) { in interpret_rip()
166 nap = (const struct netauth *)nip; in interpret_rip()
169 ((char *)nip - dlc_header, in interpret_rip()
170 sizeof (*nip)), in interpret_rip()
175 ((char *)nip - dlc_header, in interpret_rip()
176 sizeof (*nip)), in interpret_rip()
195 if (len - sizeof (*nip) >= in interpret_rip()
201 len = sizeof (*nip); in interpret_rip()
204 ((char *)nip - dlc_header, in interpret_rip()
205 sizeof (*nip)), in interpret_rip()
212 if (nip->n_family == RIP_AF_UNSPEC && in interpret_rip()
219 if (nip->n_family != RIP_AF_INET) { in interpret_rip()
223 ntohs(nip->n_family)); in interpret_rip()
226 if (nip->n_dst == htonl(RIP_DEFAULT)) { in interpret_rip()
229 dst.s_addr = nip->n_dst; in interpret_rip()
233 if (nip->n_dst != htonl(RIP_DEFAULT) && in interpret_rip()
236 mval = ntohl(nip->n_mask); in interpret_rip()
246 dst.s_addr = nip->n_mask; in interpret_rip()
252 dst.s_addr = nip->n_nhop; in interpret_rip()
253 mval = ntohl(nip->n_metric); in interpret_rip()
260 ntohs(nip->n_tag), in interpret_rip()