Home
last modified time | relevance | path

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

/external/chromium_org/net/tools/quic/
Dquic_socket_utils.cc175 in_pktinfo* pktinfo = reinterpret_cast<in_pktinfo*>(CMSG_DATA(cmsg)); in WritePacket() local
176 memset(pktinfo, 0, sizeof(in_pktinfo)); in WritePacket()
177 pktinfo->ipi_ifindex = 0; in WritePacket()
178 memcpy(&pktinfo->ipi_spec_dst, &self_address[0], self_address.size()); in WritePacket()
188 in6_pktinfo* pktinfo = reinterpret_cast<in6_pktinfo*>(CMSG_DATA(cmsg)); in WritePacket() local
189 memset(pktinfo, 0, sizeof(in6_pktinfo)); in WritePacket()
190 memcpy(&pktinfo->ipi6_addr, &self_address[0], self_address.size()); in WritePacket()
/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/ipsec-tools/src/racoon/
Disakmp.c1580 int pktinfo; in isakmp_open() local
1655 pktinfo = IPV6_RECVPKTINFO; in isakmp_open()
1657 pktinfo = IPV6_PKTINFO; in isakmp_open()
1660 pktinfo = IPV6_RECVDSTADDR; in isakmp_open()
1662 if (setsockopt(p->sock, IPPROTO_IPV6, pktinfo, in isakmp_open()
1667 pktinfo, strerror(errno)); in isakmp_open()