Home
last modified time | relevance | path

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

/external/iputils/ninfod/
Dninfod_addrs.c178 IN6_ARE_ADDR_EQUAL(&p->pktinfo.ipi6_addr, in pr_nodeinfo_ipv6addr()
185 ifindex = p->pktinfo.ipi6_ifindex; in pr_nodeinfo_ipv6addr()
197 (p->pktinfo.ipi6_ifindex == ifindex)) in pr_nodeinfo_ipv6addr()
210 ifindex = p->pktinfo.ipi6_ifindex; in pr_nodeinfo_ipv6addr()
276 (ifa->ifa_ifindex != p->pktinfo.ipi6_ifindex))) in pr_nodeinfo_ipv6addr()
357 (p->pktinfo.ipi6_ifindex == ifindex)) in pr_nodeinfo_ipv4addr()
370 ifindex = p->pktinfo.ipi6_ifindex; in pr_nodeinfo_ipv4addr()
394 (ifa->ifa_ifindex != p->pktinfo.ipi6_ifindex))) in pr_nodeinfo_ipv4addr()
Dninfod.c291 char recvcbuf[CMSG_SPACE(sizeof(p->pktinfo))]; in ni_recv()
323 memcpy(&p->pktinfo, CMSG_DATA(cmsg), sizeof(p->pktinfo)); in ni_recv()
335 char cbuf[CMSG_SPACE(sizeof(p->pktinfo))]; in ni_send()
360 cmsg->cmsg_len = CMSG_LEN(sizeof(p->pktinfo)); in ni_send()
361 memcpy(CMSG_DATA(cmsg), &p->pktinfo, sizeof(p->pktinfo)); in ni_send()
Dninfod_core.c531 if (IN6_IS_ADDR_MULTICAST(&p->pktinfo.ipi6_addr)) { in pr_nodeinfo()
532 if (!IN6_IS_ADDR_MC_LINKLOCAL(&p->pktinfo.ipi6_addr)) { in pr_nodeinfo()
542 if (!check_nigroup(&p->pktinfo.ipi6_addr)) { in pr_nodeinfo()
663 if (IN6_IS_ADDR_MULTICAST(&p->pktinfo.ipi6_addr)) { in pr_nodeinfo()
668 memset(&p->pktinfo.ipi6_addr, 0, sizeof(p->pktinfo.ipi6_addr)); in pr_nodeinfo()
Dninfod.h63 struct in6_pktinfo pktinfo; member
Dninfod_name.c367 *subj_if = p->pktinfo.ipi6_ifindex; in pr_nodeinfo_nodename()
/external/openscreen/platform/impl/
Dudp_socket_posix.cc345 IPAddress GetIPAddressFromPktInfo(const in_pktinfo& pktinfo) { in GetIPAddressFromPktInfo() argument
346 static_assert(IPAddress::kV4Size == sizeof(pktinfo.ipi_addr), in GetIPAddressFromPktInfo()
349 reinterpret_cast<const uint8_t*>(&pktinfo.ipi_addr)); in GetIPAddressFromPktInfo()
360 IPAddress GetIPAddressFromPktInfo(const in6_pktinfo& pktinfo) { in GetIPAddressFromPktInfo() argument
361 return IPAddress(IPAddress::Version::kV6, pktinfo.ipi6_addr.s6_addr); in GetIPAddressFromPktInfo()
442 PktInfoType* pktinfo = reinterpret_cast<PktInfoType*>(CMSG_DATA(cmh)); in ReceiveMessageInternal() local
444 .address = GetIPAddressFromPktInfo(*pktinfo), in ReceiveMessageInternal()
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtimestamping.c221 struct in_pktinfo *pktinfo = in printpacket() local
224 pktinfo->ipi_ifindex); in printpacket()
/external/rust/crates/nix/test/sys/
Dtest_socket.rs1271 Some(ControlMessageOwned::Ipv4PacketInfo(pktinfo)) => { in test_recv_ipv4pktinfo()
1274 pktinfo.ipi_ifindex as libc::c_uint, in test_recv_ipv4pktinfo()
1278 pktinfo.ipi_ifindex in test_recv_ipv4pktinfo()
1472 Some(ControlMessageOwned::Ipv6PacketInfo(pktinfo)) => { in test_recv_ipv6pktinfo()
1475 pktinfo.ipi6_ifindex, in test_recv_ipv6pktinfo()
1479 pktinfo.ipi6_ifindex in test_recv_ipv6pktinfo()
/external/ipsec-tools/src/racoon/
Disakmp.c1582 int pktinfo; in isakmp_open() local
1660 pktinfo = IPV6_RECVPKTINFO; in isakmp_open()
1662 pktinfo = IPV6_PKTINFO; in isakmp_open()
1665 pktinfo = IPV6_RECVDSTADDR; in isakmp_open()
1667 if (setsockopt(p->sock, IPPROTO_IPV6, pktinfo, in isakmp_open()
1672 pktinfo, strerror(errno)); in isakmp_open()