Home
last modified time | relevance | path

Searched refs:cmsghdr (Results 1 – 25 of 28) sorted by relevance

12

/titanic_41/usr/src/uts/common/sys/
H A Dsocket.h442 struct cmsghdr { struct
469 ((unsigned char *)_CMSG_DATA_ALIGN((struct cmsghdr *)(c) + 1))
472 (((m)->msg_controllen < sizeof (struct cmsghdr)) ? \
473 (struct cmsghdr *)0 : (struct cmsghdr *)((m)->msg_control))
478 ((struct cmsghdr *)(c))->cmsg_len) + sizeof (struct cmsghdr)) > \
481 ((struct cmsghdr *)0) : \
482 ((struct cmsghdr *)_CMSG_HDR_ALIGN((char *)(c) + \
483 ((struct cmsghdr *)(c))->cmsg_len))))
487 ((unsigned int)_CMSG_HDR_ALIGN(sizeof (struct cmsghdr) + (l)))
491 ((unsigned int)_CMSG_DATA_ALIGN(sizeof (struct cmsghdr)) + (l))
H A Dsocketvar.h739 (struct cmsghdr *)((uintptr_t)(cmsg) + \
742 #define CMSG_CONTENTLEN(cmsg) ((cmsg)->cmsg_len - sizeof (struct cmsghdr))
747 ((ssize_t)(cmsg)->cmsg_len >= sizeof (struct cmsghdr)) && \
/titanic_41/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Drdsv3_impl.h309 ((unsigned char *)_CMSG_DATA_ALIGN((struct cmsghdr *)(c) + 1))
312 (((m)->msg_controllen < sizeof (struct cmsghdr)) ? \
313 (struct cmsghdr *)0 : (struct cmsghdr *)((m)->msg_control))
318 ((struct cmsghdr *)(c))->cmsg_len) + sizeof (struct cmsghdr)) > \
321 ((struct cmsghdr *)0) : \
322 ((struct cmsghdr *)_CMSG_HDR_ALIGN((char *)(c) + \
323 ((struct cmsghdr *)(c))->cmsg_len))))
327 ((unsigned int)_CMSG_HDR_ALIGN(sizeof (struct cmsghdr) + (l)))
331 ((unsigned int)_CMSG_DATA_ALIGN(sizeof (struct cmsghdr)) + (l))
H A Drdma.h93 struct cmsghdr *cmsg);
95 struct cmsghdr *cmsg);
97 struct cmsghdr *cmsg);
/titanic_41/usr/src/uts/common/inet/sockmods/
H A Dsocksctpsubr.c220 struct cmsghdr *ocmsg; in sosctp_pack_cmsg()
221 struct cmsghdr *cmsg; in sosctp_pack_cmsg()
226 ocmsg = (struct cmsghdr *)opt; in sosctp_pack_cmsg()
238 ocmsg = (struct cmsghdr *) in sosctp_pack_cmsg()
252 cmsg = (struct cmsghdr *)msg->msg_control; in sosctp_pack_cmsg()
254 ocmsg = (struct cmsghdr *)opt; in sosctp_pack_cmsg()
263 cmsg = (struct cmsghdr *)((uchar_t *)cmsg + in sosctp_pack_cmsg()
266 ocmsg = (struct cmsghdr *) in sosctp_pack_cmsg()
277 struct cmsghdr *
280 struct cmsghdr *cmsg; in sosctp_find_cmsg()
[all …]
H A Dsocksctp.h96 extern struct cmsghdr *sosctp_find_cmsg(const uchar_t *control, socklen_t clen,
H A Dsocksctp.c729 struct cmsghdr *cmsg; in sosctp_sendmsg()
929 struct cmsghdr *cmsg; in sosctp_seq_sendmsg()
2116 struct cmsghdr *cmsg; in sctp_assoc_recv()
2119 cmsg = (struct cmsghdr *) in sctp_assoc_recv()
2135 cmsg = (struct cmsghdr *) in sctp_assoc_recv()
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dsocksubr.c84 #define CMSG_CONTENTLEN(cmsg) ((cmsg)->cmsg_len - sizeof (struct cmsghdr))
89 ((ssize_t)(cmsg)->cmsg_len >= sizeof (struct cmsghdr)) && \
948 struct cmsghdr *cmsg; in so_closefds()
958 for (cmsg = (struct cmsghdr *)control; in so_closefds()
965 startoff - (int)sizeof (struct cmsghdr)); in so_closefds()
982 struct cmsghdr *cmsg; in so_getfdopt()
1005 for (cmsg = (struct cmsghdr *)control; in so_getfdopt()
1033 struct cmsghdr *cmsg; in so_optlen()
1044 for (cmsg = (struct cmsghdr *)control; in so_optlen()
1068 struct cmsghdr *cmsg; in so_cmsg2opt()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c129 struct cmsghdr *cmsgp; in set_ancillary_data()
163 bufspace = sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in set_ancillary_data()
168 bufspace += sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in set_ancillary_data()
174 bufspace += sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in set_ancillary_data()
183 bufspace += sizeof (struct cmsghdr); in set_ancillary_data()
186 msgp->msg_control = (struct cmsghdr *)malloc(bufspace); in set_ancillary_data()
280 struct cmsghdr *cmsg; in update_hoplimit_ancillary_data()
377 struct cmsghdr *cmsg; in find_ancillary_data()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c95 struct cmsghdr *cmsgp; in set_ancillary_data()
133 bufspace += sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in set_ancillary_data()
139 bufspace += sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in set_ancillary_data()
145 bufspace += sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in set_ancillary_data()
154 bufspace += sizeof (struct cmsghdr); in set_ancillary_data()
164 msgp->msg_control = (struct cmsghdr *)malloc(bufspace); in set_ancillary_data()
1020 struct cmsghdr *cmsg; in pr_ext_headers()
/titanic_41/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-misc.c94 struct cmsghdr cmp[1]; in recvfd()
103 msg.msg_controllen = sizeof (struct cmsghdr) + sizeof (int); in recvfd()
H A Dlpd-port.c72 struct cmsghdr cmp[1]; in sendfd()
80 cmp[0].cmsg_len = sizeof (struct cmsghdr) + sizeof (int); in sendfd()
86 msg.msg_controllen = sizeof (struct cmsghdr) + sizeof (int); in sendfd()
/titanic_41/usr/src/cmd/ssh/include/
H A Ddefines.h454 #define CMSG_LEN(len) (__CMSG_ALIGN(sizeof (struct cmsghdr)) + (len))
460 (__CMSG_ALIGN(sizeof (struct cmsghdr)) + __CMSG_ALIGN(len))
/titanic_41/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma.c586 struct cmsghdr *cmsg) in rdsv3_cmsg_rdma_args()
615 struct cmsghdr *cmsg) in rdsv3_cmsg_rdma_dest()
659 struct cmsghdr *cmsg) in rdsv3_cmsg_rdma_map()
H A Drdsv3_impl.c1098 struct cmsghdr *cp; in rdsv3_put_cmsg()
1127 cp = (struct cmsghdr *)(bp + msg->msg_controllen); in rdsv3_put_cmsg()
1133 (unsigned int)_CMSG_DATA_ALIGN(sizeof (struct cmsghdr))); in rdsv3_put_cmsg()
H A Dsend.c887 struct cmsghdr *cmsg; in rdsv3_cmsg_send()
/titanic_41/usr/src/lib/libsctp/common/
H A Dsctp.c266 struct cmsghdr *cmsg; in sctp_recvmsg()
316 struct cmsghdr *cmsg; in sctp_send_common()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dcommon.c229 struct cmsghdr *cmsg; in find_ancillary()
H A Doutput.c202 struct cmsghdr *cmsgp; in sendtoif()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSUNP.c782 struct cmsghdr *cmptr; in recvfrom_flags()
784 struct cmsghdr cm; in recvfrom_flags()
830 if (msg.msg_controllen < (socklen_t)sizeof(struct cmsghdr) || in recvfrom_flags()
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_input.c327 struct cmsghdr *cmsg; in sctp_input_add_ancillary()
476 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
510 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
531 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
545 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
558 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
574 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
590 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
606 cmsg = (struct cmsghdr *)optptr; in sctp_input_add_ancillary()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dinput.c55 struct cmsghdr *cmsg; in find_ancillary()
/titanic_41/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dpacket.c806 struct cmsghdr *cmsg; in send_pkt_internal()
1258 struct cmsghdr *cmsg; in sock_recvpkt()
/titanic_41/usr/src/uts/common/inet/
H A Doptcom.c1944 struct cmsghdr *cmsg; in process_auxiliary_options()
1952 for (cmsg = (struct cmsghdr *)control; in process_auxiliary_options()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c3123 struct cmsghdr *cmsgp; in vrrpd_send_adv_v6()
3137 bufspace += sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in vrrpd_send_adv_v6()
3141 bufspace += sizeof (struct cmsghdr) + _MAX_ALIGNMENT + in vrrpd_send_adv_v6()
3149 bufspace += sizeof (struct cmsghdr); in vrrpd_send_adv_v6()
3152 msg6.msg_control = (struct cmsghdr *)malloc(bufspace); in vrrpd_send_adv_v6()
3477 struct cmsghdr *cmsgp; in vrrpd_process_adv_v6()

12