Home
last modified time | relevance | path

Searched refs:pktinfo (Results 1 – 6 of 6) sorted by relevance

/third_party/nghttp2/src/
Dshrpx_quic.cc90 auto pktinfo = reinterpret_cast<in_pktinfo *>(CMSG_DATA(cm)); in quic_send_packet() local
91 memset(pktinfo, 0, sizeof(in_pktinfo)); in quic_send_packet()
94 pktinfo->ipi_spec_dst = addrin->sin_addr; in quic_send_packet()
102 auto pktinfo = reinterpret_cast<in6_pktinfo *>(CMSG_DATA(cm)); in quic_send_packet() local
103 memset(pktinfo, 0, sizeof(in6_pktinfo)); in quic_send_packet()
106 pktinfo->ipi6_addr = addrin->sin6_addr; in quic_send_packet()
Dutil.cc1683 auto pktinfo = reinterpret_cast<in_pktinfo *>(CMSG_DATA(cmsg)); in msghdr_get_local_addr() local
1687 sa.sin_addr = pktinfo->ipi_addr; in msghdr_get_local_addr()
1697 auto pktinfo = reinterpret_cast<in6_pktinfo *>(CMSG_DATA(cmsg)); in msghdr_get_local_addr() local
1701 sa.sin6_addr = pktinfo->ipi6_addr; in msghdr_get_local_addr()
/third_party/libcoap/src/
Dcoap_io.c933 struct in_pktinfo *pktinfo; local
942 pktinfo = (struct in_pktinfo *)CMSG_DATA(cmsg);
944 pktinfo->ipi_ifindex = session->ifindex;
945 memcpy(&pktinfo->ipi_spec_dst,
947 sizeof(pktinfo->ipi_spec_dst));
963 struct in6_pktinfo *pktinfo; local
972 pktinfo = (struct in6_pktinfo *)CMSG_DATA(cmsg);
974 pktinfo->ipi6_ifindex = session->ifindex;
975 memcpy(&pktinfo->ipi6_addr,
977 sizeof(pktinfo->ipi6_addr));
[all …]
/third_party/gstreamer/gstplugins_good/gst/udp/
Dgstudpsrc.c188 struct in_pktinfo *pktinfo; in gst_ip_pktinfo_message_deserialize() local
197 pktinfo = data; in gst_ip_pktinfo_message_deserialize()
200 message->ifindex = pktinfo->ipi_ifindex; in gst_ip_pktinfo_message_deserialize()
203 message->spec_dst = pktinfo->ipi_spec_dst; in gst_ip_pktinfo_message_deserialize()
206 message->addr = pktinfo->ipi_addr; in gst_ip_pktinfo_message_deserialize()
281 struct in6_pktinfo *pktinfo; in gst_ipv6_pktinfo_message_deserialize() local
290 pktinfo = data; in gst_ipv6_pktinfo_message_deserialize()
293 message->ifindex = pktinfo->ipi6_ifindex; in gst_ipv6_pktinfo_message_deserialize()
294 message->addr = pktinfo->ipi6_addr; in gst_ipv6_pktinfo_message_deserialize()
/third_party/lwip/test/unit/api/
Dtest_sockets.c556 struct in_pktinfo *pktinfo; in test_sockets_msgapi_cmsg() local
606 pktinfo = (struct in_pktinfo*)CMSG_DATA(cmsg); in test_sockets_msgapi_cmsg()
608 fail_unless(pktinfo->ipi_ifindex == 1); in test_sockets_msgapi_cmsg()
609 fail_unless(pktinfo->ipi_addr.s_addr == PP_HTONL(INADDR_LOOPBACK)); in test_sockets_msgapi_cmsg()
/third_party/rust/crates/nix/test/sys/
Dtest_socket.rs1740 if let Some(ControlMessageOwned::Ipv4PacketInfo(pktinfo)) = cmsgs.next() in test_recv_ipv4pktinfo()
1744 pktinfo.ipi_ifindex as libc::c_uint, i, in test_recv_ipv4pktinfo()
1746 i, pktinfo.ipi_ifindex in test_recv_ipv4pktinfo()
2123 if let Some(ControlMessageOwned::Ipv6PacketInfo(pktinfo)) = cmsgs.next() in test_recv_ipv6pktinfo()
2127 pktinfo.ipi6_ifindex as libc::c_uint, i, in test_recv_ipv6pktinfo()
2129 i, pktinfo.ipi6_ifindex in test_recv_ipv6pktinfo()