/netbsd/external/mpl/dhcp/dist/common/ |
H A D | socket.c | 735 struct in_pktinfo pktinfo; local 738 memset(&pktinfo, 0, sizeof (pktinfo)); 742 sizeof(pktinfo)) < 0) 865 struct in6_pktinfo *pktinfo; in send_packet6() local 931 memset(pktinfo, 0, sizeof(*pktinfo)); in send_packet6() 933 pktinfo->ipi6_ifindex = ifindex; in send_packet6() 972 struct in_pktinfo *pktinfo; local 1034 ifindex = pktinfo->ipi_ifindex; 1080 struct in6_pktinfo *pktinfo; in receive_packet6() local 1141 *to_addr = pktinfo->ipi6_addr; in receive_packet6() [all …]
|
/netbsd/sys/altq/ |
H A D | altq_cdnr.c | 140 struct cdnr_pktinfo pktinfo; in altq_cdnr_input() local 159 pktinfo.pkt_len = m_pktlen(m); in altq_cdnr_input() 198 tca = (*cb->cb_input)(cb, &pktinfo); in altq_cdnr_input() 561 len = TB_SCALE(pktinfo->pkt_len); in tbm_input() 655 len = TB_SCALE(pktinfo->pkt_len); in trtcm_input() 657 color = pktinfo->pkt_dscp; in trtcm_input() 690 pktinfo->pkt_dscp = tcm->red_dscp; in trtcm_input() 702 pktinfo->pkt_dscp = tcm->green_dscp; in trtcm_input() 783 len = pktinfo->pkt_len; in tswtcm_input() 810 pktinfo->pkt_dscp = tsw->red_dscp; in tswtcm_input() [all …]
|
/netbsd/sys/netinet/ |
H A D | ip_output.c | 1089 struct in_pktinfo pktinfo; in ip_ctloutput() local 1186 error = sockopt_get(sopt, &pktinfo, sizeof(pktinfo)); in ip_ctloutput() 1190 if (pktinfo.ipi_ifindex == 0) { in ip_ctloutput() 1362 pktinfo.ipi_ifindex = 0; in ip_ctloutput() 1364 error = sockopt_set(sopt, &pktinfo, in ip_ctloutput() 1365 sizeof(pktinfo)); in ip_ctloutput() 1445 if (pktinfo->ipi_ifindex != 0) { in ip_pktinfo_prepare() 1496 struct in_pktinfo pktinfo; in ip_setpktopts() local 1531 memcpy(&pktinfo, CMSG_DATA(cm), sizeof(pktinfo)); in ip_setpktopts() 1540 pktinfo.ipi_ifindex = 0; in ip_setpktopts() [all …]
|
/netbsd/tests/net/net/ |
H A D | t_pktinfo.c | 168 ATF_TC(pktinfo); 169 ATF_TC_HEAD(pktinfo, tc) in ATF_TC_HEAD() argument 176 ATF_TC_BODY(pktinfo, tc) in ATF_TC_BODY() argument 184 ATF_TP_ADD_TC(tp, pktinfo); in ATF_TP_ADD_TCS()
|
/netbsd/external/bsd/ntp/dist/lib/isc/include/isc/ |
H A D | socket.h | 172 struct in6_pktinfo pktinfo; /*%< ipv6 pktinfo */ member 287 struct in6_pktinfo *pktinfo); 854 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo); 861 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo); 865 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo,
|
/netbsd/external/mpl/bind/dist/lib/isc/include/isc/ |
H A D | socket.h | 130 struct in6_pktinfo pktinfo; /*%< ipv6 pktinfo */ member 609 const isc_sockaddr_t *address, struct in6_pktinfo *pktinfo); 612 const isc_sockaddr_t *address, struct in6_pktinfo *pktinfo,
|
/netbsd/sbin/ping6/ |
H A D | ping6.c | 292 struct in6_pktinfo *pktinfo = NULL; in main() local 777 pktinfo = (struct in6_pktinfo *)(CMSG_DATA(scmsgp)); in main() 778 memset(pktinfo, 0, sizeof(*pktinfo)); in main() 789 if ((pktinfo->ipi6_ifindex = if_nametoindex(ifname)) == 0) in main() 821 if (pktinfo && in main() 823 (void *)pktinfo, sizeof(*pktinfo))) in main() 1299 struct in6_pktinfo *pktinfo = NULL; in pr_pack() local 1334 if ((pktinfo = get_rcvpktinfo(mhdr)) == NULL) { in pr_pack() 1388 dstsa.sin6_scope_id = pktinfo->ipi6_ifindex; in pr_pack() 1389 dstsa.sin6_addr = pktinfo->ipi6_addr; in pr_pack()
|
/netbsd/external/bsd/ntp/dist/lib/isc/ |
H A D | socket_api.c | 137 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) in isc_socket_sendto() argument 142 pktinfo)); in isc_socket_sendto()
|
/netbsd/sys/netinet6/ |
H A D | ip6_output.c | 2873 struct in6_pktinfo *pktinfo; in ip6_setpktopt() local 2878 pktinfo = (struct in6_pktinfo *)buf; in ip6_setpktopt() 2887 pktinfo->ipi6_ifindex == 0 && in ip6_setpktopt() 2888 IN6_IS_ADDR_UNSPECIFIED(&pktinfo->ipi6_addr)) { in ip6_setpktopt() 2894 sticky && !IN6_IS_ADDR_UNSPECIFIED(&pktinfo->ipi6_addr)) { in ip6_setpktopt() 2899 if (pktinfo->ipi6_ifindex) { in ip6_setpktopt() 2902 ifp = if_byindex(pktinfo->ipi6_ifindex); in ip6_setpktopt() 2921 opt->ip6po_pktinfo = malloc(sizeof(*pktinfo), in ip6_setpktopt() 2926 memcpy(opt->ip6po_pktinfo, pktinfo, sizeof(*pktinfo)); in ip6_setpktopt()
|
/netbsd/external/bsd/ntp/dist/lib/isc/win32/ |
H A D | socket.c | 2959 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, in socket_send() argument 2971 if (pktinfo != NULL) { in socket_send() 2975 pktinfo->ipi6_ifindex); in socket_send() 2978 dev->pktinfo = *pktinfo; in socket_send() 2983 dev->pktinfo.ipi6_ifindex = 0; in socket_send() 3034 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) in isc__socket_sendto() argument 3069 ret = socket_send(sock, dev, task, address, pktinfo, 0); in isc__socket_sendto() 3085 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) in isc__socket_sendtov() argument 3132 ret = socket_send(sock, dev, task, address, pktinfo, 0); in isc__socket_sendtov() 3140 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, in isc__socket_sendto2() argument [all …]
|
/netbsd/external/bsd/ntp/dist/lib/isc/unix/ |
H A D | socket.c | 501 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo); 508 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo); 512 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, 1258 memcpy(&dev->pktinfo, pktinfop, in process_cmsg() 1265 dev->pktinfo.ipi6_ifindex); in process_cmsg() 1390 dev->pktinfo.ipi6_ifindex); in build_msghdr_send() 4645 isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, in socket_send() argument 4656 if (pktinfo != NULL) { in socket_send() 4658 dev->pktinfo = *pktinfo; in socket_send() 4665 "(set to 0)", pktinfo->ipi6_ifindex); in socket_send() [all …]
|
/netbsd/external/mpl/bind/dist/lib/dns/include/dns/ |
H A D | dispatch.h | 86 struct in6_pktinfo pktinfo; /*%< reply info for v6 */ member
|
/netbsd/external/mpl/bind/dist/lib/isc/win32/ |
H A D | socket.c | 2819 const isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, in socket_send() argument 2830 if (pktinfo != NULL) { in socket_send() 2833 pktinfo->ipi6_ifindex); in socket_send() 2836 dev->pktinfo = *pktinfo; in socket_send() 2841 dev->pktinfo.ipi6_ifindex = 0; in socket_send() 2893 const isc_sockaddr_t *address, struct in6_pktinfo *pktinfo) { in isc_socket_sendto() argument 2927 ret = socket_send(sock, dev, task, address, pktinfo, 0); in isc_socket_sendto() 2934 const isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, in isc_socket_sendto2() argument 2961 ret = socket_send(sock, event, task, address, pktinfo, flags); in isc_socket_sendto2()
|
/netbsd/external/mpl/bind/dist/lib/isc/unix/ |
H A D | socket.c | 1146 memmove(&dev->pktinfo, pktinfop, in process_cmsg() 1151 dev->pktinfo.ipi6_ifindex); in process_cmsg() 1250 dev->pktinfo.ipi6_ifindex); in build_msghdr_send() 1261 memmove(pktinfop, &dev->pktinfo, sizeof(struct in6_pktinfo)); in build_msghdr_send() 4136 const isc_sockaddr_t *address, struct in6_pktinfo *pktinfo, in socket_send() argument 4146 if (pktinfo != NULL) { in socket_send() 4148 dev->pktinfo = *pktinfo; in socket_send() 4156 pktinfo->ipi6_ifindex); in socket_send() 4162 dev->pktinfo.ipi6_ifindex = 0; in socket_send() 4270 return (socket_send(sock, dev, task, address, pktinfo, 0)); in isc_socket_sendto() [all …]
|
/netbsd/external/bsd/unbound/dist/util/ |
H A D | netevent.c | 427 if(inet_ntop(AF_INET6, &r->pktinfo.v6info.ipi6_addr, 437 if(inet_ntop(AF_INET, &r->pktinfo.v4info.ipi_addr, 443 if(inet_ntop(AF_INET, &r->pktinfo.v4info.ipi_spec_dst, 451 log_info("%s: %d %s %s", str, r->pktinfo.v4info.ipi_ifindex, 455 if(inet_ntop(AF_INET, &r->pktinfo.v4addr, 511 memmove(CMSG_DATA(cmsg), &r->pktinfo.v4info, 522 memmove(CMSG_DATA(cmsg), &r->pktinfo.v4addr, 535 memmove(CMSG_DATA(cmsg), &r->pktinfo.v6info, 700 memmove(&rep.pktinfo.v6info, CMSG_DATA(cmsg), 707 memmove(&rep.pktinfo.v4info, CMSG_DATA(cmsg), [all …]
|
H A D | netevent.h | 153 pktinfo; member
|
/netbsd/external/mpl/bind/dist/lib/ns/include/ns/ |
H A D | client.h | 222 struct in6_pktinfo pktinfo; member
|
/netbsd/crypto/dist/ipsec-tools/src/racoon/ |
H A D | isakmp.c | 1586 int pktinfo; in isakmp_open() local 1677 pktinfo = IPV6_RECVPKTINFO; in isakmp_open() 1679 pktinfo = IPV6_PKTINFO; in isakmp_open() 1682 pktinfo = IPV6_RECVDSTADDR; in isakmp_open() 1684 if (setsockopt(fd, IPPROTO_IPV6, pktinfo, in isakmp_open() 1688 pktinfo, strerror(errno)); in isakmp_open()
|
/netbsd/external/mpl/bind/dist/lib/dns/ |
H A D | dispatch.c | 1275 rev->pktinfo = ev->pktinfo; in udp_recv() 3449 newsevent->pktinfo = sevent->pktinfo; in dns_dispatch_importrecv()
|
/netbsd/external/mpl/dhcp/dist/ |
H A D | configure.ac | 214 AS_HELP_STRING([--enable-ipv4-pktinfo],[enable use of pktinfo on IPv4 sockets (default is no)]))
|
H A D | configure.ac+lt | 215 AS_HELP_STRING([--enable-ipv4-pktinfo],[enable use of pktinfo on IPv4 sockets (default is no)]))
|
H A D | configure | 1470 --enable-ipv4-pktinfo enable use of pktinfo on IPv4 sockets (default is
|
H A D | RELNOTES | 419 when building with --enable-use-sockets and --enable-ipv4-pktinfo.
|
/netbsd/external/mpl/bind/dist/ |
H A D | CHANGES | 1837 5342. [bug] Disable pktinfo for IPv6 and bind to each interface 1839 pktinfo control messages. [GL #1558]
|