Searched refs:udp_data (Results 1 – 5 of 5) sorted by relevance
42 typedef struct udp_data { struct46 } udp_data; typedef57 #define UDP_PAYLOAD_LEN(send_len) ((send_len) - (ssize_t)sizeof(udp_data))
208 size_t new_buf_len = buf_len + sizeof(udp_data); in distributed_net_recvfrom()236 if (ret <= sizeof(udp_data)) { in distributed_net_recvfrom()242 udp_data *data = (udp_data *)new_buf; in distributed_net_recvfrom()243 (void)memcpy_s(buf, buf_len, data->payload, ret - sizeof(udp_data)); in distributed_net_recvfrom()256 return ret - (ssize_t)sizeof(udp_data); in distributed_net_recvfrom()
70 udp_data data = {0}; in udp_transmit_sendto()109 udp_data data = {0}; in udp_transmit_sendmsg()
428 struct udp_info udp_data; in main() local434 memset(&udp_data, '\0', sizeof(struct udp_info)); in main()435 parse_options(argc, argv, &udp_data, &background); in main()437 create_udp_datagram(&udp_data); in main()443 send_udp_datagram(&udp_data); in main()
814 …(u16_t)(sizeof(udp_data) + SIZEOF_DNS_HDR + strlen(entry->name) + 2 + SIZEOF_DNS_QUERY), PBUF_RAM); in dns_send()833 udp_data udp_data_hdr = {0}; in dns_send()859 query_idx = sizeof(udp_data) + SIZEOF_DNS_HDR; in dns_send()