Home
last modified time | relevance | path

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

1234

/freebsd-14.2/contrib/pf/pflogd/
H A Dprivsep_fdpass.c70 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-14.2/crypto/openssh/
H A Dmonitor_fdpass.c79 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-14.2/lib/libc/net/
H A Dsctp_sys_calls.c598 cmsg->cmsg_type = SCTP_SNDRCV; in sctp_sendmsg()
665 cmsg->cmsg_type = SCTP_SNDRCV; in sctp_send()
854 if (cmsg->cmsg_type == SCTP_SNDRCV) { in sctp_recvmsg()
1022 cmsg->cmsg_type = SCTP_SNDINFO; in sctp_sendv()
1036 cmsg->cmsg_type = SCTP_PRINFO; in sctp_sendv()
1049 cmsg->cmsg_type = SCTP_AUTHINFO; in sctp_sendv()
1064 cmsg->cmsg_type = SCTP_SNDINFO; in sctp_sendv()
1073 cmsg->cmsg_type = SCTP_PRINFO; in sctp_sendv()
1081 cmsg->cmsg_type = SCTP_AUTHINFO; in sctp_sendv()
1112 cmsg->cmsg_type = SCTP_DSTADDRV4; in sctp_sendv()
[all …]
H A Dip6opt.c89 ch->cmsg_type = type; in inet6_option_init()
245 (!is_ipv6_hopopts(cmsg->cmsg_type) && in inet6_option_next()
246 !is_ipv6_dstopts(cmsg->cmsg_type))) in inet6_option_next()
301 (!is_ipv6_hopopts(cmsg->cmsg_type) && in inet6_option_find()
302 !is_ipv6_dstopts(cmsg->cmsg_type))) in inet6_option_find()
/freebsd-14.2/crypto/openssl/include/internal/
H A Dktls.h103 cmsg->cmsg_type = TLS_SET_RECORD_TYPE; in ktls_send_ctrl_message()
172 if (cmsg->cmsg_level != IPPROTO_TCP || cmsg->cmsg_type != TLS_GET_RECORD in ktls_read_record()
320 cmsg->cmsg_type = TLS_SET_RECORD_TYPE; in ktls_send_ctrl_message()
391 if (cmsg->cmsg_type == TLS_GET_RECORD_TYPE) { in ktls_read_record()
/freebsd-14.2/contrib/netbsd-tests/net/fdpass/
H A Dfdpass.c70 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-14.2/tools/regression/capsicum/syscalls/
H A Dmisc.c72 cmsg->cmsg_type = SCM_RIGHTS; in descriptor_send()
119 cmsg->cmsg_type != SCM_RIGHTS) { in descriptor_recv()
/freebsd-14.2/lib/libnv/
H A Dmsgio.c80 cmsg->cmsg_type = SCM_RIGHTS; in msghdr_add_fd()
178 cmsg->cmsg_type = SCM_CREDS; in cred_send()
213 cmsg->cmsg_level != SOL_SOCKET || cmsg->cmsg_type != SCM_CREDS) { in cred_recv()
313 cmsg->cmsg_type != SCM_RIGHTS) { in fd_package_recv()
/freebsd-14.2/contrib/wpa/src/crypto/
H A Dcrypto_linux.c468 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-14.2/sys/compat/linux/
H A Dlinux_socket.c647 linux_to_bsd_cmsg_type(int cmsg_type) in linux_to_bsd_cmsg_type() argument
650 switch (cmsg_type) { in linux_to_bsd_cmsg_type()
660 bsd_to_linux_ip_cmsg_type(int cmsg_type) in bsd_to_linux_ip_cmsg_type() argument
663 switch (cmsg_type) { in bsd_to_linux_ip_cmsg_type()
682 switch (cmsg_type) { in bsd_to_linux_cmsg_type()
1453 cmsg->cmsg_type = in linux_sendmsg_common()
1457 if (cmsg->cmsg_type == -1 in linux_sendmsg_common()
1474 if (cmsg->cmsg_type == SCM_CREDS) { in linux_sendmsg_common()
1854 lcm->cmsg_type = bsd_to_linux_cmsg_type(p, cm->cmsg_type, in linux_recvmsg_common()
1858 if (lcm->cmsg_type == -1 || in linux_recvmsg_common()
[all …]
/freebsd-14.2/tools/test/stress2/misc/
H A Dsendmsg2.sh77 cmh->cmsg_type = SCM_RIGHTS;
118 if (c->cmsg_level == SOL_SOCKET && c->cmsg_type == SCM_RIGHTS) {
H A Dsendmsg.sh167 cmsg->cmsg_type = SCM_RIGHTS;
181 if (cmsg->cmsg_type != SCM_RIGHTS)
H A Ddatagram2.sh88 m.msg_hdr.cmsg_type = SCM_RIGHTS;
H A Doverflow3.sh70 chdr->cmsg_type = SCM_RIGHTS;
/freebsd-14.2/sbin/hastd/
H A Dproto_common.c82 cmsg->cmsg_type = SCM_RIGHTS; in proto_descriptor_send()
185 cmsg->cmsg_type != SCM_RIGHTS) { in proto_descriptor_recv()
/freebsd-14.2/contrib/openbsm/bin/auditdistd/
H A Dproto_common.c81 cmsg->cmsg_type = SCM_RIGHTS; in proto_descriptor_send()
184 cmsg->cmsg_type != SCM_RIGHTS) { in proto_descriptor_recv()
/freebsd-14.2/contrib/netbsd-tests/net/net/
H A Dt_pktinfo.c128 switch (cmsg->cmsg_type) { in receive()
137 ERRX("bad type %d", cmsg->cmsg_type); in receive()
/freebsd-14.2/contrib/netbsd-tests/include/sys/
H A Dt_socket.c49 cmp->cmsg_type = SCM_RIGHTS; in ATF_TC_BODY()
138 cmp->cmsg_type = SCM_RIGHTS; in ATF_TC_BODY()
/freebsd-14.2/tools/tools/net80211/wesside/dics/
H A Ddics.c138 ctl.hdr.cmsg_type != IP_TTL in check_signal()
140 ctl.hdr.cmsg_type != IP_RECVTTL in check_signal()
145 ctl.hdr.cmsg_len, ctl.hdr.cmsg_level, ctl.hdr.cmsg_type); in check_signal()
/freebsd-14.2/contrib/bsnmp/snmpd/
H A Dtrans_inet.c617 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 Dtrans_udp.c244 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-14.2/usr.sbin/rtsold/
H A Dcap_sendmsg.c107 cm->cmsg_type = IPV6_PKTINFO; in sendpacket()
116 cm->cmsg_type = IPV6_HOPLIMIT; in sendpacket()
/freebsd-14.2/lib/libsysdecode/
H A Dflags.c1106 sysdecode_cmsg_type(int cmsg_level, int cmsg_type) in sysdecode_cmsg_type() argument
1110 return (lookup_value(cmsgtypesocket, cmsg_type)); in sysdecode_cmsg_type()
1112 return (lookup_value(cmsgtypeip, cmsg_type)); in sysdecode_cmsg_type()
1114 return (lookup_value(cmsgtypeipv6, cmsg_type)); in sysdecode_cmsg_type()
1116 return (lookup_value(cmsgtypesctp, cmsg_type)); in sysdecode_cmsg_type()
/freebsd-14.2/tools/regression/netinet/ipbroadcast/
H A Dipbroadcast.c314 cmsgp->cmsg_type = IP_SENDSRCADDR; in main()
325 cmsgp->cmsg_type = IP_SENDIF; in main()
/freebsd-14.2/contrib/blocklist/lib/
H A Dbl.c403 cmsg->cmsg_type = SCM_RIGHTS; in bl_send()
469 switch (cmsg->cmsg_type) { in bl_recv()
492 __func__, cmsg->cmsg_type); in bl_recv()

1234