Home | History | Annotate | Download | only in wrt

Lines Matching refs:iov

76 static struct iovec iov;
78 static int expand_buf(struct iovec *iov, size_t size)
82 if (size <= iov->iov_len)
91 if (iov->iov_base)
93 memcpy(new, iov->iov_base, iov->iov_len);
94 free(iov->iov_base);
97 iov->iov_base = new;
98 iov->iov_len = size;
112 msg.msg_iov = &iov;
124 if (!expand_buf(&iov, 2000))
132 if (!expand_buf(&iov, iov.iov_len + 100))
219 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len))
258 struct iovec iov;
260 iov.iov_len = 200;
261 iov.iov_base = malloc(iov.iov_len);