Home
last modified time | relevance | path

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

1234

/freebsd-12.1/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-12.1/lib/libc/net/
H A Dsctp_sys_calls.c606 cmsg->cmsg_type = SCTP_SNDRCV; in sctp_sendmsg()
673 cmsg->cmsg_type = SCTP_SNDRCV; in sctp_send()
862 if (cmsg->cmsg_type == SCTP_SNDRCV) { in sctp_recvmsg()
1030 cmsg->cmsg_type = SCTP_SNDINFO; in sctp_sendv()
1044 cmsg->cmsg_type = SCTP_PRINFO; in sctp_sendv()
1057 cmsg->cmsg_type = SCTP_AUTHINFO; in sctp_sendv()
1072 cmsg->cmsg_type = SCTP_SNDINFO; in sctp_sendv()
1081 cmsg->cmsg_type = SCTP_PRINFO; in sctp_sendv()
1089 cmsg->cmsg_type = SCTP_AUTHINFO; in sctp_sendv()
1120 cmsg->cmsg_type = SCTP_DSTADDRV4; in sctp_sendv()
[all …]
H A Dip6opt.c92 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-12.1/crypto/openssh/
H A Dmonitor_fdpass.c79 cmsg->cmsg_type = SCM_RIGHTS; in mm_send_fd()
174 if (cmsg->cmsg_type != SCM_RIGHTS) { in mm_receive_fd()
176 SCM_RIGHTS, cmsg->cmsg_type); in mm_receive_fd()
/freebsd-12.1/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-12.1/lib/libnv/
H A Dmsgio.c76 cmsg->cmsg_type = SCM_RIGHTS; in msghdr_add_fd()
89 cmsg->cmsg_type != SCM_RIGHTS || in msghdr_get_fd()
198 cmsg->cmsg_type = SCM_CREDS; in cred_send()
233 cmsg->cmsg_level != SOL_SOCKET || cmsg->cmsg_type != SCM_CREDS) { in cred_recv()
/freebsd-12.1/tools/regression/capsicum/syscalls/
H A Dmisc.c75 cmsg->cmsg_type = SCM_RIGHTS; in descriptor_send()
122 cmsg->cmsg_type != SCM_RIGHTS) { in descriptor_recv()
/freebsd-12.1/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-12.1/sys/compat/linux/
H A Dlinux_socket.c520 linux_to_bsd_cmsg_type(int cmsg_type) in linux_to_bsd_cmsg_type() argument
523 switch (cmsg_type) { in linux_to_bsd_cmsg_type()
533 bsd_to_linux_cmsg_type(int cmsg_type) in bsd_to_linux_cmsg_type() argument
536 switch (cmsg_type) { in bsd_to_linux_cmsg_type()
1165 cmsg->cmsg_type = in linux_sendmsg_common()
1169 if (cmsg->cmsg_type == -1 in linux_sendmsg_common()
1182 if (cmsg->cmsg_type == SCM_CREDS) { in linux_sendmsg_common()
1350 linux_cmsg->cmsg_type = in linux_recvmsg_common()
1351 bsd_to_linux_cmsg_type(cm->cmsg_type); in linux_recvmsg_common()
1354 if (linux_cmsg->cmsg_type == -1 || in linux_recvmsg_common()
[all …]
/freebsd-12.1/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-12.1/sys/compat/cloudabi/
H A Dcloudabi_sock.c116 chdr->cmsg_type == SCM_RIGHTS) { in cloudabi_sock_recv()
170 chdr->cmsg_type = SCM_RIGHTS; in cloudabi_sock_send()
/freebsd-12.1/sbin/hastd/
H A Dproto_common.c84 cmsg->cmsg_type = SCM_RIGHTS; in proto_descriptor_send()
187 cmsg->cmsg_type != SCM_RIGHTS) { in proto_descriptor_recv()
/freebsd-12.1/usr.sbin/rtsold/
H A Dprobe.c171 cm->cmsg_type = IPV6_PKTINFO; in sendprobe()
180 cm->cmsg_type = IPV6_HOPLIMIT; in sendprobe()
H A Drtsol.c206 cm->cmsg_type = IPV6_PKTINFO; in sendpacket()
215 cm->cmsg_type = IPV6_HOPLIMIT; in sendpacket()
276 cm->cmsg_type == IPV6_PKTINFO && in rtsol_input()
282 cm->cmsg_type == IPV6_HOPLIMIT && in rtsol_input()
/freebsd-12.1/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-12.1/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-12.1/tools/tools/net80211/wesside/dics/
H A Ddics.c140 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-12.1/contrib/bsnmp/snmpd/
H A Dtrans_inet.c620 cmsg->cmsg_type == IP_RECVDSTADDR) { in ipv4_parse_ctrl()
625 cmsg->cmsg_type == SCM_CREDS) { in ipv4_parse_ctrl()
649 cmsg->cmsg_type = IP_SENDSRCADDR; in ipv4_setsrc()
855 cmsg->cmsg_type == IPV6_PKTINFO) { in ipv6_parse_ctrl()
864 cmsg->cmsg_type == SCM_CREDS) { in ipv6_parse_ctrl()
888 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-12.1/contrib/blacklist/lib/
H A Dbl.c403 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-12.1/tools/regression/netinet/ipbroadcast/
H A Dipbroadcast.c316 cmsgp->cmsg_type = IP_SENDSRCADDR; in main()
327 cmsgp->cmsg_type = IP_SENDIF; in main()
/freebsd-12.1/lib/libsysdecode/
H A Dflags.c1188 sysdecode_cmsg_type(int cmsg_level, int cmsg_type) in sysdecode_cmsg_type() argument
1192 return (lookup_value(cmsgtypesocket, cmsg_type)); in sysdecode_cmsg_type()
1194 return (lookup_value(cmsgtypeip, cmsg_type)); in sysdecode_cmsg_type()
1196 return (lookup_value(cmsgtypeipv6, cmsg_type)); in sysdecode_cmsg_type()
1198 return (lookup_value(cmsgtypesctp, cmsg_type)); in sysdecode_cmsg_type()
/freebsd-12.1/usr.sbin/mld6query/
H A Dmld6.c269 cmsgp->cmsg_type = IPV6_PKTINFO; in make_msg()
277 cmsgp->cmsg_type = IPV6_HOPOPTS; in make_msg()
/freebsd-12.1/tests/sys/kern/
H A Dunix_passfd_test.c130 cm->cmsg_type = SCM_RIGHTS; in putfds()
231 cmsghdr->cmsg_type == SCM_RIGHTS && in recvfd_payload()
236 cmsghdr->cmsg_type == SCM_CREDS) in recvfd_payload()
/freebsd-12.1/tools/regression/sockets/unix_cmsg/
H A Duc_common.c436 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()

1234