Home
last modified time | relevance | path

Searched refs:cmsg_type (Results 1 – 25 of 64) sorted by relevance

123

/openbsd/src/usr.sbin/npppd/common/
Drecvfromto.c91 && cm->cmsg_type == IPV6_PKTINFO in recvfromto_nat_t()
116 && cm->cmsg_type == IP_IPSECFLOWINFO in recvfromto_nat_t()
126 && cm->cmsg_type == IP_PKTINFO in recvfromto_nat_t()
144 && cm->cmsg_type == IPV6_RECVDSTADDR in recvfromto_nat_t()
162 && cm->cmsg_type == IP_RECVDSTADDR in recvfromto_nat_t()
216 cmsg->cmsg_type = IP_IPSECFLOWINFO; in sendto_nat_t()
/openbsd/src/sbin/isakmpd/
Dmonitor_fdpass.c57 cmsg->cmsg_type = SCM_RIGHTS; in mm_send_fd()
112 if (cmsg->cmsg_type != SCM_RIGHTS) { in mm_receive_fd()
114 cmsg->cmsg_type); in mm_receive_fd()
/openbsd/src/libexec/ftpd/
Dmonitor_fdpass.c52 cmsg->cmsg_type = SCM_RIGHTS; in send_fd()
104 if (cmsg->cmsg_type != SCM_RIGHTS) in recv_fd()
106 SCM_RIGHTS, cmsg->cmsg_type); in recv_fd()
/openbsd/src/usr.sbin/syslogd/
Dprivsep_fdpass.c65 cmsg->cmsg_type = SCM_RIGHTS; in send_fd()
121 if (cmsg->cmsg_type != SCM_RIGHTS) in receive_fd()
123 SCM_RIGHTS, cmsg->cmsg_type); in receive_fd()
/openbsd/src/sbin/pflogd/
Dprivsep_fdpass.c70 cmsg->cmsg_type = SCM_RIGHTS; in send_fd()
123 if (cmsg->cmsg_type != SCM_RIGHTS) in receive_fd()
125 SCM_RIGHTS, cmsg->cmsg_type); in receive_fd()
/openbsd/src/usr.sbin/tcpdump/
Dprivsep_fdpass.c53 cmsg->cmsg_type = SCM_RIGHTS; in send_fd()
105 if (cmsg->cmsg_type != SCM_RIGHTS) in receive_fd()
107 SCM_RIGHTS, cmsg->cmsg_type); in receive_fd()
/openbsd/src/usr.bin/ssh/
Dmonitor_fdpass.c60 cmsg->cmsg_type = SCM_RIGHTS; in mm_send_fd()
134 if (cmsg->cmsg_type != SCM_RIGHTS) { in mm_receive_fd()
135 error_f("expected %d got %d", SCM_RIGHTS, cmsg->cmsg_type); in mm_receive_fd()
/openbsd/src/usr.sbin/snmpd/
Dutil.c65 cmsg->cmsg_type = IP_SENDSRCADDR; in sendtofrom()
73 cmsg->cmsg_type = IPV6_PKTINFO; in sendtofrom()
125 cmsg->cmsg_type == IP_RECVDSTADDR) { in recvfromto()
135 cmsg->cmsg_type == IPV6_PKTINFO) { in recvfromto()
/openbsd/src/regress/sys/kern/pledge/filedescriptor/
Dpass.c58 cmsg->cmsg_type = SCM_RIGHTS; in fdops()
67 cmsg->cmsg_type = SCM_RIGHTS; in fdops()
/openbsd/src/regress/usr.sbin/ospfd/
DPassFd.xs48 cmsg->cmsg_type = SCM_RIGHTS;
85 cmsg->cmsg_type == SCM_RIGHTS) {
Dopentap.c74 cmsg->cmsg_type = SCM_RIGHTS; in main()
/openbsd/src/regress/sys/kern/pledge/ioctl/
Dunfdpass.c165 switch (cmp->cmsg_type) { in main()
226 cmp->cmsg_type = SCM_RIGHTS; in child()
/openbsd/src/regress/sys/netinet/sendsrcaddr/
Druntest.c222 cmsg->cmsg_type = IP_SENDSRCADDR; in udp_send()
230 cmsg->cmsg_type = IPV6_UNICAST_HOPS; in udp_send()
237 cmsg->cmsg_type = IPV6_UNICAST_HOPS; in udp_send()
/openbsd/src/regress/sys/kern/pledge/sendrecvfd/
Dsendrecvfd.c85 cmsg->cmsg_type == SCM_RIGHTS) { in do_receiver()
131 cmsg->cmsg_type = SCM_RIGHTS; in do_sender()
/openbsd/src/regress/sys/kern/unfdpass/
Dunfdpass.c210 switch (cmp->cmsg_type) { in main()
295 cmp->cmsg_type = SCM_RIGHTS; in child()
/openbsd/src/sbin/iked/
Dutil.c319 cmsg->cmsg_type = IP_SENDSRCADDR; in sendtofrom()
327 cmsg->cmsg_type = IPV6_PKTINFO; in sendtofrom()
378 cmsg->cmsg_type == IP_RECVDSTADDR) { in recvfromto()
388 cmsg->cmsg_type == IPV6_PKTINFO) { in recvfromto()
/openbsd/src/regress/sys/kern/kqueue/
Dkqueue-fdpass.c59 cmp->cmsg_type = SCM_RIGHTS; in do_fdpass()
/openbsd/src/regress/sys/kern/recvwait/
Dmcontrol-stream.c78 cmsg->cmsg_type = SCM_RIGHTS; in main()
/openbsd/src/usr.sbin/tftp-proxy/
Dtftp-proxy.c506 cmsg->cmsg_type = SCM_RIGHTS; in privproc_push()
636 switch (cmsg->cmsg_type) { in proxy_dst4()
660 switch (cmsg->cmsg_type) { in proxy_dst6()
838 if (cmsg->cmsg_type != SCM_RIGHTS) { in unprivproc_pop()
840 SCM_RIGHTS, cmsg->cmsg_type); in unprivproc_pop()
/openbsd/src/usr.bin/sndiod/
Dfdpass.c99 cmsg->cmsg_type = SCM_RIGHTS; in fdpass_send()
174 cmsg->cmsg_type == SCM_RIGHTS) { in fdpass_recv()
/openbsd/src/usr.bin/kdump/
Dktrstruct.c526 switch (cmsg->cmsg_type) { in ktrcmsghdr()
540 printf("%d", cmsg->cmsg_type); in ktrcmsghdr()
547 p != NULL ? p->p_name : "unknown", cmsg->cmsg_type); in ktrcmsghdr()
/openbsd/src/regress/sys/kern/cmsgsize/
Dcmsgsize.c137 cmsg->cmsg_type = IP_SENDSRCADDR; in test_cmsgsize()
/openbsd/src/usr.bin/dig/lib/isc/unix/
Dsocket.c437 && cmsgp->cmsg_type == IPV6_PKTINFO) { in process_cmsg()
452 && cmsgp->cmsg_type == SCM_TIMESTAMP) { in process_cmsg()
462 && cmsgp->cmsg_type == IPV6_TCLASS) { in process_cmsg()
470 && (cmsgp->cmsg_type == IP_TOS)) { in process_cmsg()
584 cmsgp->cmsg_type = IPV6_PKTINFO; in build_msghdr_send()
603 cmsgp->cmsg_type = IPV6_USE_MIN_MTU; in build_msghdr_send()
630 cmsgp->cmsg_type = IP_TOS; in build_msghdr_send()
654 cmsgp->cmsg_type = IPV6_TCLASS; in build_msghdr_send()
/openbsd/src/sbin/slaacd/
Dfrontend.c227 cm->cmsg_type = IPV6_PKTINFO; in frontend()
235 cm->cmsg_type = IPV6_HOPLIMIT; in frontend()
957 cm->cmsg_type == IPV6_PKTINFO && in icmp6_receive()
963 cm->cmsg_type == IPV6_HOPLIMIT && in icmp6_receive()
/openbsd/src/usr.sbin/dhcpd/
Dudpsock.c131 cm->cmsg_type == IP_RECVIF) in udpsock_handler()

123