Lines Matching refs:iov

230 	struct iovec		 iov[4];  in vroute_setaddr()  local
236 iov[0].iov_base = addr; in vroute_setaddr()
237 iov[0].iov_len = addr->sa_len; in vroute_setaddr()
247 iov[1].iov_base = &mask4; in vroute_setaddr()
248 iov[1].iov_len = sizeof(mask4); in vroute_setaddr()
257 iov[1].iov_base = &mask6; in vroute_setaddr()
258 iov[1].iov_len = sizeof(mask6); in vroute_setaddr()
265 iov[2].iov_base = &ifidx; in vroute_setaddr()
266 iov[2].iov_len = sizeof(ifidx); in vroute_setaddr()
270 add ? IMSG_IF_ADDADDR : IMSG_IF_DELADDR, iov, iovcnt)); in vroute_setaddr()
329 struct iovec iov[2]; in vroute_setdns() local
331 iov[0].iov_base = addr; in vroute_setdns()
332 iov[0].iov_len = addr->sa_len; in vroute_setdns()
334 iov[1].iov_base = &ifidx; in vroute_setdns()
335 iov[1].iov_len = sizeof(ifidx); in vroute_setdns()
338 add ? IMSG_VDNS_ADD: IMSG_VDNS_DEL, iov, 2)); in vroute_setdns()
525 struct iovec iov[5]; in vroute_setroute() local
533 iov[iovcnt].iov_base = &rdomain; in vroute_setroute()
534 iov[iovcnt].iov_len = sizeof(rdomain); in vroute_setroute()
537 iov[iovcnt].iov_base = dst; in vroute_setroute()
538 iov[iovcnt].iov_len = dst->sa_len; in vroute_setroute()
549 iov[iovcnt].iov_base = in; in vroute_setroute()
550 iov[iovcnt].iov_len = sizeof(*in); in vroute_setroute()
559 iov[iovcnt].iov_base = in6; in vroute_setroute()
560 iov[iovcnt].iov_len = sizeof(*in6); in vroute_setroute()
565 iov[iovcnt].iov_base = addr; in vroute_setroute()
566 iov[iovcnt].iov_len = addr->sa_len; in vroute_setroute()
570 return (proc_composev(&env->sc_ps, PROC_PARENT, type, iov, iovcnt)); in vroute_setroute()
712 struct iovec iov[3]; in vroute_dodns() local
727 iov[iovcnt].iov_base = &rtm; in vroute_dodns()
728 iov[iovcnt].iov_len = sizeof(rtm); in vroute_dodns()
752 iov[iovcnt].iov_base = &rtdns; in vroute_dodns()
753 iov[iovcnt++].iov_len = sizeof(rtdns); in vroute_dodns()
756 iov[iovcnt].iov_base = &pad; in vroute_dodns()
757 iov[iovcnt++].iov_len = padlen; in vroute_dodns()
761 rtm.rtm_msglen += iov[i].iov_len; in vroute_dodns()
764 if (writev(ivr->ivr_rtsock, iov, iovcnt) == -1) in vroute_dodns()
775 struct iovec iov[7]; in vroute_doroute() local
794 iov[iovcnt].iov_base = &rtm; in vroute_doroute()
795 iov[iovcnt].iov_len = sizeof(rtm); in vroute_doroute()
799 iov[iovcnt].iov_base = dest; in vroute_doroute()
800 iov[iovcnt].iov_len = dest->sa_len; in vroute_doroute()
804 iov[iovcnt].iov_base = &pad; in vroute_doroute()
805 iov[iovcnt].iov_len = padlen; in vroute_doroute()
811 iov[iovcnt].iov_base = addr; in vroute_doroute()
812 iov[iovcnt].iov_len = addr->sa_len; in vroute_doroute()
816 iov[iovcnt].iov_base = &pad; in vroute_doroute()
817 iov[iovcnt].iov_len = padlen; in vroute_doroute()
823 iov[iovcnt].iov_base = mask; in vroute_doroute()
824 iov[iovcnt].iov_len = mask->sa_len; in vroute_doroute()
828 iov[iovcnt].iov_base = &pad; in vroute_doroute()
829 iov[iovcnt].iov_len = padlen; in vroute_doroute()
835 rtm.rtm_msglen += iov[i].iov_len; in vroute_doroute()
849 if (writev(ivr->ivr_rtsock, iov, iovcnt) == -1) { in vroute_doroute()