Lines Matching refs:msghdr
2040 int buf_len, const struct msghdr *msghdr) in context_write_data() argument
2044 if (msghdr) { in context_write_data()
2047 for (i = 0; i < msghdr->msg_iovlen; i++) { in context_write_data()
2048 int len = MIN(msghdr->msg_iov[i].iov_len, buf_len); in context_write_data()
2050 ret = net_pkt_write(pkt, msghdr->msg_iov[i].iov_base, in context_write_data()
2073 const struct msghdr *msg, in context_setup_udp_packet()
2187 static void set_pkt_txtime(struct net_pkt *pkt, const struct msghdr *msghdr) in set_pkt_txtime() argument
2191 for (cmsg = CMSG_FIRSTHDR(msghdr); cmsg != NULL; in set_pkt_txtime()
2192 cmsg = CMSG_NXTHDR(msghdr, cmsg)) { in set_pkt_txtime()
2212 const struct msghdr *msghdr = NULL; in context_sendto() local
2227 msghdr = buf; in context_sendto()
2230 if (!msghdr && !dst_addr) { in context_sendto()
2251 if (msghdr) { in context_sendto()
2252 addr6 = msghdr->msg_name; in context_sendto()
2253 addrlen = msghdr->msg_namelen; in context_sendto()
2304 if (msghdr) { in context_sendto()
2305 addr4 = msghdr->msg_name; in context_sendto()
2306 addrlen = msghdr->msg_namelen; in context_sendto()
2368 if (msghdr) { in context_sendto()
2369 ll_addr = msghdr->msg_name; in context_sendto()
2370 addrlen = msghdr->msg_namelen; in context_sendto()
2418 if (msghdr) { in context_sendto()
2419 can_addr = msghdr->msg_name; in context_sendto()
2420 addrlen = msghdr->msg_namelen; in context_sendto()
2458 if (msghdr && len == 0) { in context_sendto()
2461 for (i = 0; i < msghdr->msg_iovlen; i++) { in context_sendto()
2462 len += msghdr->msg_iov[i].iov_len; in context_sendto()
2508 if (msghdr && msghdr->msg_control && msghdr->msg_controllen) { in context_sendto()
2514 set_pkt_txtime(pkt, msghdr); in context_sendto()
2522 ret = context_write_data(pkt, buf, len, msghdr); in context_sendto()
2539 ret = context_setup_udp_packet(context, family, pkt, buf, len, msghdr, in context_sendto()
2551 ret = net_tcp_queue(context, buf, len, msghdr); in context_sendto()
2560 ret = context_write_data(pkt, buf, len, msghdr); in context_sendto()
2616 ret = context_write_data(pkt, buf, len, msghdr); in context_sendto()
2687 const struct msghdr *msghdr, in net_context_sendmsg() argument
2697 ret = context_sendto(context, msghdr, 0, NULL, 0, in net_context_sendmsg()