Home
last modified time | relevance | path

Searched refs:in6_pktinfo (Results 1 – 25 of 34) sorted by relevance

12

/openbsd/usr.sbin/snmpd/
H A Dutil.c38 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 Dutil.c41 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 Druntest.c166 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 Dfrontend.c135 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 Dsocket.h98 struct in6_pktinfo pktinfo; /*%< ipv6 pktinfo */
452 struct sockaddr_storage *address, struct in6_pktinfo *pktinfo,
/openbsd/sbin/iked/
H A Dutil.c292 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 Din6_src.c105 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 Dip6_var.h180 struct in6_pktinfo *ip6po_pktinfo;
H A Dip6_output.c446 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 Din6.h365 struct in6_pktinfo { struct
/openbsd/usr.sbin/ospf6d/
H A Dpacket.c120 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 Dbpf.c222 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 Ddhcrelay6.c950 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 Drecvfromto.c56 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 Dfrontend.c254 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 Dtraceroute.h162 extern struct in6_pktinfo *rcvpktinfo;
H A Dtraceroute.c273 struct in6_pktinfo *rcvpktinfo;
775 rcvcmsglen = CMSG_SPACE(sizeof(struct in6_pktinfo)) + in main()
/openbsd/usr.bin/dig/lib/isc/unix/
H A Dsocket.c406 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 Dpacket.c479 #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 Dnetevent.c675 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 Dnetevent.h148 struct in6_pktinfo v6info;
/openbsd/usr.sbin/unbound/util/
H A Dnetevent.c675 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 Dnetevent.h148 struct in6_pktinfo v6info;
/openbsd/usr.sbin/route6d/
H A Droute6d.c888 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 Dpacket.c119 #define CMSG_MAXLEN max(sizeof(struct sockaddr_dl), sizeof(struct in6_pktinfo))
188 ifindex = ((struct in6_pktinfo *) in disc_recv_packet()

12