/openbsd/usr.sbin/snmpd/ |
H A D | util.c | 38 struct in6_pktinfo *pkt6; in sendtofrom() 44 char in6buf[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in sendtofrom() 71 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in sendtofrom() 75 pkt6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in sendtofrom() 90 struct in6_pktinfo *pkt6; in recvfromto() 139 pkt6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in recvfromto()
|
/openbsd/libexec/snmpd/snmpd_metrics/ |
H A D | util.c | 41 struct in6_pktinfo *pkt6; in sendtofrom() 47 char in6buf[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in sendtofrom() 74 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in sendtofrom() 78 pkt6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in sendtofrom() 93 struct in6_pktinfo *pkt6; in recvfromto() 142 pkt6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in recvfromto()
|
/openbsd/regress/sys/netinet6/pktinfo_addr/ |
H A D | runtest.c | 166 struct in6_pktinfo *pi_sendmsg; in udp6_override() 167 struct in6_pktinfo pi_setsockopt; in udp6_override() 170 unsigned char buf[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in udp6_override() 215 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in udp6_override() 218 pi_sendmsg = (struct in6_pktinfo *)CMSG_DATA(cmsg); in udp6_override()
|
/openbsd/sbin/slaacd/ |
H A D | frontend.c | 135 struct in6_pktinfo *pi; in frontend() 189 sndcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in frontend() 226 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in frontend() 227 pi = (struct in6_pktinfo *)CMSG_DATA(cm); in frontend() 924 struct in6_pktinfo *pi = NULL; in icmp6_receive() 951 cm->cmsg_len == CMSG_LEN(sizeof(struct in6_pktinfo))) { in icmp6_receive() 952 pi = (struct in6_pktinfo *)(CMSG_DATA(cm)); in icmp6_receive() 997 struct in6_pktinfo *pi; in send_solicitation() 1019 pi = (struct in6_pktinfo *)CMSG_DATA(cm); in send_solicitation() 1082 CMSG_SPACE(sizeof(struct in6_pktinfo)) + in get_icmp6ev_by_rdomain()
|
/openbsd/usr.bin/dig/lib/isc/include/isc/ |
H A D | socket.h | 98 struct in6_pktinfo pktinfo; /*%< ipv6 pktinfo */ 452 struct sockaddr_storage *address, struct in6_pktinfo *pktinfo,
|
/openbsd/sbin/iked/ |
H A D | util.c | 292 struct in6_pktinfo *pkt6; in sendtofrom() 298 char in6buf[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in sendtofrom() 325 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in sendtofrom() 329 pkt6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in sendtofrom() 344 struct in6_pktinfo *pkt6; in recvfromto() 392 pkt6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in recvfromto()
|
/openbsd/sys/netinet6/ |
H A D | in6_src.c | 105 struct in6_pktinfo *pi = NULL; in in6_pcbselsrc() 337 struct in6_pktinfo *pi = NULL; in in6_selectif() 421 struct in6_pktinfo *pi; in in6_embedscope()
|
H A D | ip6_var.h | 180 struct in6_pktinfo *ip6po_pktinfo;
|
H A D | ip6_output.c | 446 struct in6_pktinfo *pi = NULL; in ip6_output() 1701 struct in6_pktinfo null_pktinfo; in ip6_getpcbopt() 1714 optdatalen = sizeof(struct in6_pktinfo); in ip6_getpcbopt() 2288 struct in6_pktinfo *pktinfo; in ip6_setpktopt() 2290 if (len != sizeof(struct in6_pktinfo)) in ip6_setpktopt() 2293 pktinfo = (struct in6_pktinfo *)buf; in ip6_setpktopt()
|
H A D | in6.h | 365 struct in6_pktinfo { struct
|
/openbsd/usr.sbin/ospf6d/ |
H A D | packet.c | 120 char buf[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in recv_packet() 165 ifindex = ((struct in6_pktinfo *) in recv_packet() 167 dest = ((struct in6_pktinfo *) in recv_packet()
|
/openbsd/usr.sbin/dhcrelay6/ |
H A D | bpf.c | 222 struct in6_pktinfo *ipi6; in send_packet_layer3() 226 CMSG_SPACE(sizeof(struct in6_pktinfo)) in send_packet_layer3() 256 ipi6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in send_packet_layer3()
|
H A D | dhcrelay6.c | 950 struct in6_pktinfo *ipi6 = NULL; in mcast6_recv() 961 CMSG_SPACE(sizeof(struct in6_pktinfo)) in mcast6_recv() 1009 ipi6 = (struct in6_pktinfo *)CMSG_DATA(cmsg); in mcast6_recv()
|
/openbsd/usr.sbin/npppd/common/ |
H A D | recvfromto.c | 56 struct in6_pktinfo *pi; in recvfromto_nat_t() 93 pi = (struct in6_pktinfo *)(CMSG_DATA(cm)); in recvfromto_nat_t()
|
/openbsd/usr.sbin/rad/ |
H A D | frontend.c | 254 sndcmsgbuflen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in frontend() 607 struct in6_pktinfo *pi = NULL; in icmp6_receive() 632 cm->cmsg_len == CMSG_LEN(sizeof(struct in6_pktinfo))) { in icmp6_receive() 633 pi = (struct in6_pktinfo *)(CMSG_DATA(cm)); in icmp6_receive() 1411 struct in6_pktinfo *pi; in ra_output() 1430 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in ra_output() 1431 pi = (struct in6_pktinfo *)CMSG_DATA(cm); in ra_output() 1551 CMSG_SPACE(sizeof(struct in6_pktinfo)) + in get_icmp6ev_by_rdomain()
|
/openbsd/usr.sbin/traceroute/ |
H A D | traceroute.h | 162 extern struct in6_pktinfo *rcvpktinfo;
|
H A D | traceroute.c | 273 struct in6_pktinfo *rcvpktinfo; 775 rcvcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in main()
|
/openbsd/usr.bin/dig/lib/isc/unix/ |
H A D | socket.c | 406 struct in6_pktinfo *pktinfop; in process_cmsg() 439 pktinfop = (struct in6_pktinfo *)CMSG_DATA(cmsgp); in process_cmsg() 441 sizeof(struct in6_pktinfo)); in process_cmsg() 572 struct in6_pktinfo *pktinfop; in build_msghdr_send() 579 msg->msg_controllen = cmsg_space(sizeof(struct in6_pktinfo)); in build_msghdr_send() 585 cmsgp->cmsg_len = cmsg_len(sizeof(struct in6_pktinfo)); in build_msghdr_send() 586 pktinfop = (struct in6_pktinfo *)CMSG_DATA(cmsgp); in build_msghdr_send() 587 memmove(pktinfop, &dev->pktinfo, sizeof(struct in6_pktinfo)); in build_msghdr_send() 2045 struct sockaddr_storage *address, struct in6_pktinfo *pktinfo, in socket_send() 2135 struct sockaddr_storage *address, struct in6_pktinfo *pktinfo, in isc_socket_sendtov2()
|
/openbsd/usr.sbin/eigrpd/ |
H A D | packet.c | 479 #define CMSG_MAXLEN max(sizeof(struct sockaddr_dl), sizeof(struct in6_pktinfo)) 541 ifindex = ((struct in6_pktinfo *) in recv_packet() 543 dest.v6 = ((struct in6_pktinfo *) in recv_packet()
|
/openbsd/sbin/unwind/libunbound/util/ |
H A D | netevent.c | 675 sizeof(struct in6_pktinfo)); 678 ((struct in6_pktinfo *) cmsg_data)->ipi6_ifindex = 0; 679 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); 681 if(sizeof(struct in6_pktinfo) < cmsg->cmsg_len) 683 sizeof(struct in6_pktinfo), 0, cmsg->cmsg_len 684 - sizeof(struct in6_pktinfo)); 692 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); 694 if(sizeof(struct in6_pktinfo) < cmsg->cmsg_len) 696 sizeof(struct in6_pktinfo), 0, cmsg->cmsg_len 697 - sizeof(struct in6_pktinfo)); [all …]
|
H A D | netevent.h | 148 struct in6_pktinfo v6info;
|
/openbsd/usr.sbin/unbound/util/ |
H A D | netevent.c | 675 sizeof(struct in6_pktinfo)); 678 ((struct in6_pktinfo *) cmsg_data)->ipi6_ifindex = 0; 679 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); 681 if(sizeof(struct in6_pktinfo) < cmsg->cmsg_len) 683 sizeof(struct in6_pktinfo), 0, cmsg->cmsg_len 684 - sizeof(struct in6_pktinfo)); 692 cmsg->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); 694 if(sizeof(struct in6_pktinfo) < cmsg->cmsg_len) 696 sizeof(struct in6_pktinfo), 0, cmsg->cmsg_len 697 - sizeof(struct in6_pktinfo)); [all …]
|
H A D | netevent.h | 148 struct in6_pktinfo v6info;
|
/openbsd/usr.sbin/route6d/ |
H A D | route6d.c | 888 u_char buf[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in sendpacket() 890 struct in6_pktinfo *pi; in sendpacket() 921 cm->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in sendpacket() 924 pi = (struct in6_pktinfo *)CMSG_DATA(cm); in sendpacket() 959 u_char buf[CMSG_SPACE(sizeof(struct in6_pktinfo)) + in riprecv() 962 struct in6_pktinfo *pi = NULL; in riprecv() 996 pi = (struct in6_pktinfo *)(CMSG_DATA(cm)); in riprecv()
|
/openbsd/usr.sbin/ldpd/ |
H A D | packet.c | 119 #define CMSG_MAXLEN max(sizeof(struct sockaddr_dl), sizeof(struct in6_pktinfo)) 188 ifindex = ((struct in6_pktinfo *) in disc_recv_packet()
|