Lines Matching refs:ifs
63 struct interface ifs;
106 bzero((char *)&ifs, sizeof (ifs));
123 ifs.int_flags |= RIP6_IFF_POINTOPOINT;
125 ifs.int_flags |= RIP6_IFF_NORTEXCH;
127 ifs.int_flags |= RIP6_IFF_PRIVATE;
129 ifs.int_flags |= RIP6_IFF_UP;
146 if (ifs.int_flags & RIP6_IFF_POINTOPOINT) {
157 ifs.int_addr =
165 ifs.int_dstaddr = ((struct sockaddr_in6 *)
167 ifs.int_prefix_length = IPV6_ABITS;
190 ifs.int_prefix_length = lifr.lifr_addrlen;
191 ifs.int_addr = ((struct sockaddr_in6 *)
197 ifs.int_metric = 1;
199 ifs.int_metric = lifr.lifr_metric + 1;
205 ifs.int_ifindex = lifr.lifr_index;
217 ifs.int_mtu = IPV6_MIN_MTU;
219 ifs.int_mtu = lifr.lifr_mtu;
229 if (ifp->int_prefix_length == ifs.int_prefix_length &&
231 (ifs.int_flags | RIP6_IFF_NORTEXCH)) &&
232 ifp->int_metric == ifs.int_metric &&
233 ifp->int_ifindex == ifs.int_ifindex) {
238 if (ifs.int_flags & RIP6_IFF_NORTEXCH)
245 &ifs.int_addr))
249 &ifs.int_dstaddr))
253 if (ifp->int_prefix_length != ifs.int_prefix_length)
255 ifp->int_addr = ifs.int_addr;
256 ifp->int_dstaddr = ifs.int_dstaddr;
257 ifp->int_metric = ifs.int_metric;
263 (ifs.int_flags & RIP6_IFF_UP))
265 ifp->int_flags |= ifs.int_flags;
266 ifp->int_prefix_length = ifs.int_prefix_length;
272 if (ifp->int_ifindex != ifs.int_ifindex) {
275 ifs.int_ifindex);
277 ifp->int_ifindex = ifs.int_ifindex;
280 ifp->int_mtu = ifs.int_mtu;
291 *ifp = ifs;