| /freebsd-13.1/contrib/pf/pflogd/ |
| H A D | privsep_fdpass.c | 70 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()
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | monitor_fdpass.c | 79 cmsg->cmsg_type = SCM_RIGHTS; in mm_send_fd() 173 if (cmsg->cmsg_type != SCM_RIGHTS) { in mm_receive_fd() 174 error_f("expected %d got %d", SCM_RIGHTS, cmsg->cmsg_type); in mm_receive_fd()
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | sctp_sys_calls.c | 601 cmsg->cmsg_type = SCTP_SNDRCV; in sctp_sendmsg() 668 cmsg->cmsg_type = SCTP_SNDRCV; in sctp_send() 857 if (cmsg->cmsg_type == SCTP_SNDRCV) { in sctp_recvmsg() 1025 cmsg->cmsg_type = SCTP_SNDINFO; in sctp_sendv() 1039 cmsg->cmsg_type = SCTP_PRINFO; in sctp_sendv() 1052 cmsg->cmsg_type = SCTP_AUTHINFO; in sctp_sendv() 1067 cmsg->cmsg_type = SCTP_SNDINFO; in sctp_sendv() 1076 cmsg->cmsg_type = SCTP_PRINFO; in sctp_sendv() 1084 cmsg->cmsg_type = SCTP_AUTHINFO; in sctp_sendv() 1115 cmsg->cmsg_type = SCTP_DSTADDRV4; in sctp_sendv() [all …]
|
| H A D | ip6opt.c | 92 ch->cmsg_type = type; in inet6_option_init() 248 (!is_ipv6_hopopts(cmsg->cmsg_type) && in inet6_option_next() 249 !is_ipv6_dstopts(cmsg->cmsg_type))) in inet6_option_next() 304 (!is_ipv6_hopopts(cmsg->cmsg_type) && in inet6_option_find() 305 !is_ipv6_dstopts(cmsg->cmsg_type))) in inet6_option_find()
|
| /freebsd-13.1/crypto/openssl/include/internal/ |
| H A D | ktls.h | 101 cmsg->cmsg_type = TLS_SET_RECORD_TYPE; in ktls_send_ctrl_message() 170 if (cmsg->cmsg_level != IPPROTO_TCP || cmsg->cmsg_type != TLS_GET_RECORD in ktls_read_record() 318 cmsg->cmsg_type = TLS_SET_RECORD_TYPE; in ktls_send_ctrl_message() 389 if (cmsg->cmsg_type == TLS_GET_RECORD_TYPE) { in ktls_read_record()
|
| /freebsd-13.1/contrib/netbsd-tests/net/fdpass/ |
| H A D | fdpass.c | 70 cmsg->cmsg_type = SCM_RIGHTS; in send_fd() 145 if (cmsg->cmsg_type != SCM_RIGHTS) in recv_fd() 147 SCM_RIGHTS, cmsg->cmsg_type); in recv_fd()
|
| /freebsd-13.1/tools/regression/capsicum/syscalls/ |
| H A D | misc.c | 75 cmsg->cmsg_type = SCM_RIGHTS; in descriptor_send() 122 cmsg->cmsg_type != SCM_RIGHTS) { in descriptor_recv()
|
| /freebsd-13.1/lib/libnv/ |
| H A D | msgio.c | 82 cmsg->cmsg_type = SCM_RIGHTS; in msghdr_add_fd() 180 cmsg->cmsg_type = SCM_CREDS; in cred_send() 215 cmsg->cmsg_level != SOL_SOCKET || cmsg->cmsg_type != SCM_CREDS) { in cred_recv() 315 cmsg->cmsg_type != SCM_RIGHTS) { in fd_package_recv()
|
| /freebsd-13.1/contrib/wpa/src/crypto/ |
| H A D | crypto_linux.c | 468 hdr->cmsg_type = ALG_SET_OP; in linux_af_alg_skcipher_oper() 570 hdr->cmsg_type = ALG_SET_OP; in rc4_skip() 643 hdr->cmsg_type = ALG_SET_OP; in des_encrypt() 704 hdr->cmsg_type = ALG_SET_OP; in aes_128_cbc_oper() 711 hdr->cmsg_type = ALG_SET_IV; in aes_128_cbc_oper() 813 hdr->cmsg_type = ALG_SET_OP; in aes_unwrap() 820 hdr->cmsg_type = ALG_SET_IV; in aes_unwrap() 909 hdr->cmsg_type = ALG_SET_IV; in crypto_cipher_init() 949 hdr->cmsg_type = ALG_SET_OP; in crypto_cipher_oper()
|
| /freebsd-13.1/sbin/hastd/ |
| H A D | proto_common.c | 84 cmsg->cmsg_type = SCM_RIGHTS; in proto_descriptor_send() 187 cmsg->cmsg_type != SCM_RIGHTS) { in proto_descriptor_recv()
|
| /freebsd-13.1/contrib/openbsm/bin/auditdistd/ |
| H A D | proto_common.c | 81 cmsg->cmsg_type = SCM_RIGHTS; in proto_descriptor_send() 184 cmsg->cmsg_type != SCM_RIGHTS) { in proto_descriptor_recv()
|
| /freebsd-13.1/sys/compat/cloudabi/ |
| H A D | cloudabi_sock.c | 116 chdr->cmsg_type == SCM_RIGHTS) { in cloudabi_sock_recv() 170 chdr->cmsg_type = SCM_RIGHTS; in cloudabi_sock_send()
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_socket.c | 632 linux_to_bsd_cmsg_type(int cmsg_type) in linux_to_bsd_cmsg_type() argument 635 switch (cmsg_type) { in linux_to_bsd_cmsg_type() 645 bsd_to_linux_cmsg_type(int cmsg_type) in bsd_to_linux_cmsg_type() argument 648 switch (cmsg_type) { in bsd_to_linux_cmsg_type() 1405 cmsg->cmsg_type = in linux_sendmsg_common() 1409 if (cmsg->cmsg_type == -1 in linux_sendmsg_common() 1426 if (cmsg->cmsg_type == SCM_CREDS) { in linux_sendmsg_common() 1604 linux_cmsg->cmsg_type = in linux_recvmsg_common() 1608 if (linux_cmsg->cmsg_type == -1 || in linux_recvmsg_common() 1612 cm->cmsg_level, cm->cmsg_type); in linux_recvmsg_common() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/net/net/ |
| H A D | t_pktinfo.c | 128 switch (cmsg->cmsg_type) { in receive() 137 ERRX("bad type %d", cmsg->cmsg_type); in receive()
|
| /freebsd-13.1/contrib/netbsd-tests/include/sys/ |
| H A D | t_socket.c | 49 cmp->cmsg_type = SCM_RIGHTS; in ATF_TC_BODY() 138 cmp->cmsg_type = SCM_RIGHTS; in ATF_TC_BODY()
|
| /freebsd-13.1/tools/tools/net80211/wesside/dics/ |
| H A D | dics.c | 140 ctl.hdr.cmsg_type != IP_TTL in check_signal() 142 ctl.hdr.cmsg_type != IP_RECVTTL in check_signal() 147 ctl.hdr.cmsg_len, ctl.hdr.cmsg_level, ctl.hdr.cmsg_type); in check_signal()
|
| /freebsd-13.1/contrib/bsnmp/snmpd/ |
| H A D | trans_inet.c | 617 cmsg->cmsg_type == IP_RECVDSTADDR) { in ipv4_parse_ctrl() 622 cmsg->cmsg_type == SCM_CREDS) { in ipv4_parse_ctrl() 650 cmsg->cmsg_type = IP_SENDSRCADDR; in ipv4_setsrc() 854 cmsg->cmsg_type == IPV6_PKTINFO) { in ipv6_parse_ctrl() 864 cmsg->cmsg_type == SCM_CREDS) { in ipv6_parse_ctrl() 892 cmsg->cmsg_type = IPV6_PKTINFO; in ipv6_setsrc()
|
| H A D | trans_udp.c | 244 cmsg->cmsg_type = IP_SENDSRCADDR; in udp_send() 327 cmsg->cmsg_type == IP_RECVDSTADDR) in udp_recv() 331 cmsg->cmsg_type == SCM_CREDS) in udp_recv()
|
| /freebsd-13.1/contrib/blacklist/lib/ |
| H A D | bl.c | 403 cmsg->cmsg_type = SCM_RIGHTS; in bl_send() 468 switch (cmsg->cmsg_type) { in bl_recv() 491 __func__, cmsg->cmsg_type); in bl_recv()
|
| /freebsd-13.1/usr.sbin/rtsold/ |
| H A D | cap_sendmsg.c | 109 cm->cmsg_type = IPV6_PKTINFO; in sendpacket() 118 cm->cmsg_type = IPV6_HOPLIMIT; in sendpacket()
|
| /freebsd-13.1/tools/regression/netinet/ipbroadcast/ |
| H A D | ipbroadcast.c | 316 cmsgp->cmsg_type = IP_SENDSRCADDR; in main() 327 cmsgp->cmsg_type = IP_SENDIF; in main()
|
| /freebsd-13.1/usr.sbin/mld6query/ |
| H A D | mld6.c | 269 cmsgp->cmsg_type = IPV6_PKTINFO; in make_msg() 277 cmsgp->cmsg_type = IPV6_HOPOPTS; in make_msg()
|
| /freebsd-13.1/lib/libsysdecode/ |
| H A D | flags.c | 1219 sysdecode_cmsg_type(int cmsg_level, int cmsg_type) in sysdecode_cmsg_type() argument 1223 return (lookup_value(cmsgtypesocket, cmsg_type)); in sysdecode_cmsg_type() 1225 return (lookup_value(cmsgtypeip, cmsg_type)); in sysdecode_cmsg_type() 1227 return (lookup_value(cmsgtypeipv6, cmsg_type)); in sysdecode_cmsg_type() 1229 return (lookup_value(cmsgtypesctp, cmsg_type)); in sysdecode_cmsg_type()
|
| /freebsd-13.1/tools/regression/sockets/unix_cmsg/ |
| H A D | uc_common.c | 436 if (cmsghdr->cmsg_type != type) { in uc_check_cmsghdr() 438 cmsghdr->cmsg_type, type); in uc_check_cmsghdr() 496 cmsghdr->cmsg_type = type; in uc_msghdr_init_client()
|
| /freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/ |
| H A D | t_kevent.c | 132 msg->cmsg_type = SCM_RIGHTS; in ATF_TC_BODY()
|