Home
last modified time | relevance | path

Searched refs:cmsg_len (Results 1 – 20 of 20) sorted by relevance

/titanic_50/usr/src/uts/common/inet/sockmods/
H A Dsocksctpsubr.c231 ((char *)ocmsg + ocmsg->cmsg_len) > cend) { in sosctp_pack_cmsg()
236 optlen += ROUNDUP_cmsglen(ocmsg->cmsg_len); in sosctp_pack_cmsg()
237 if (ocmsg->cmsg_len > 0) { in sosctp_pack_cmsg()
239 ((uchar_t *)ocmsg + ocmsg->cmsg_len); in sosctp_pack_cmsg()
258 ((char *)ocmsg + ocmsg->cmsg_len) > cend) { in sosctp_pack_cmsg()
261 bcopy(ocmsg, cmsg, ocmsg->cmsg_len); in sosctp_pack_cmsg()
262 if (ocmsg->cmsg_len > 0) { in sosctp_pack_cmsg()
264 ROUNDUP_cmsglen(ocmsg->cmsg_len)); in sosctp_pack_cmsg()
267 ((uchar_t *)ocmsg + ocmsg->cmsg_len); in sosctp_pack_cmsg()
288 ((char *)cmsg + cmsg->cmsg_len) > cend) { in sosctp_find_cmsg()
[all …]
H A Dsocksctp.c749 if (cmsg->cmsg_len < in sosctp_sendmsg()
947 if (cmsg->cmsg_len < (sizeof (*sinfo) + sizeof (*cmsg))) { in sosctp_seq_sendmsg()
2124 ((char *)cmsg + cmsg->cmsg_len) > cend) { in sctp_assoc_recv()
2134 if (cmsg->cmsg_len > 0) { in sctp_assoc_recv()
2136 ((uchar_t *)cmsg + cmsg->cmsg_len); in sctp_assoc_recv()
/titanic_50/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma.c593 if (cmsg->cmsg_len != CMSG_LEN(sizeof (struct rds_rdma_args)) || in rdsv3_cmsg_rdma_args()
597 ASSERT(sizeof (buf) >= cmsg->cmsg_len && ((uintptr_t)buf & 0x7) == 0); in rdsv3_cmsg_rdma_args()
599 bcopy(CMSG_DATA(cmsg), (char *)buf, cmsg->cmsg_len); in rdsv3_cmsg_rdma_args()
621 if (cmsg->cmsg_len != CMSG_LEN(sizeof (rds_rdma_cookie_t)) || in rdsv3_cmsg_rdma_dest()
666 if (cmsg->cmsg_len != CMSG_LEN(sizeof (struct rds_get_mr_args)) || in rdsv3_cmsg_rdma_map()
670 ASSERT(sizeof (buf) >= cmsg->cmsg_len && ((uintptr_t)buf & 0x7) == 0); in rdsv3_cmsg_rdma_map()
672 bcopy(CMSG_DATA(cmsg), (char *)buf, cmsg->cmsg_len); in rdsv3_cmsg_rdma_map()
H A Drdsv3_impl.c1128 cp->cmsg_len = cmlen; in rdsv3_put_cmsg()
1138 RDSV3_DPRINTF4("rdsv3_put_cmsg", "Return(cmsg_len: %d)", cp->cmsg_len); in rdsv3_put_cmsg()
/titanic_50/usr/src/uts/common/sys/
H A Dsocket.h444 socklen_t cmsg_len; /* data byte count, including hdr */ member
479 ((struct cmsghdr *)(c))->cmsg_len) + sizeof (struct cmsghdr)) > \
484 ((struct cmsghdr *)(c))->cmsg_len))))
H A Dsocketvar.h740 ROUNDUP_cmsglen((cmsg)->cmsg_len))
742 #define CMSG_CONTENTLEN(cmsg) ((cmsg)->cmsg_len - sizeof (struct cmsghdr))
747 ((ssize_t)(cmsg)->cmsg_len >= sizeof (struct cmsghdr)) && \
748 ((uintptr_t)(cmsg) + (cmsg)->cmsg_len <= (uintptr_t)(end)))
/titanic_50/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)) && \
90 ((uintptr_t)(cmsg) + (cmsg)->cmsg_len <= (uintptr_t)(end)))
967 startoff -= cmsg->cmsg_len; in so_closefds()
1233 cmsg->cmsg_len = (socklen_t)(fdlen + in so_opt2cmsg()
1258 cmsg->cmsg_len = sizeof (struct timeval) + in so_opt2cmsg()
1272 cmsg->cmsg_len = sizeof (struct timeval32) + in so_opt2cmsg()
1287 cmsg->cmsg_len = (socklen_t)(_TPI_TOPT_DATALEN(tohp) + in so_opt2cmsg()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c204 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - (uchar_t *)cmsgp; in set_ancillary_data()
239 cmsgp->cmsg_len = cmsg_datap + rthdr_space - (uchar_t *)cmsgp; in set_ancillary_data()
264 cmsgp->cmsg_len = cmsg_datap + pktinfo_space - (uchar_t *)cmsgp; in set_ancillary_data()
/titanic_50/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Drdsv3_impl.h318 ((struct cmsghdr *)(c))->cmsg_len) + sizeof (struct cmsghdr)) > \
323 ((struct cmsghdr *)(c))->cmsg_len))))
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c186 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - in set_ancillary_data()
222 cmsgp->cmsg_len = cmsg_datap + rthdr_space - (uchar_t *)cmsgp; in set_ancillary_data()
247 cmsgp->cmsg_len = cmsg_datap + pktinfo_space - (uchar_t *)cmsgp; in set_ancillary_data()
H A Dping.c2568 cmsg->cmsg_len == CMSG_LEN(sizeof (*tv))) { in ping_gettime()
/titanic_50/usr/src/lib/libsctp/common/
H A Dsctp.c332 cmsg->cmsg_len = sizeof (*cmsg) + sizeof (*sinfo); in sctp_send_common()
/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_input.c479 cmsg->cmsg_len = sizeof (*cmsg) + sizeof (*sri); in sctp_input_add_ancillary()
513 cmsg->cmsg_len = sizeof (*cmsg) + sizeof (*pkti); in sctp_input_add_ancillary()
534 cmsg->cmsg_len = sizeof (*cmsg) + sizeof (uint_t); in sctp_input_add_ancillary()
548 cmsg->cmsg_len = sizeof (*cmsg) + sizeof (uint_t); in sctp_input_add_ancillary()
561 cmsg->cmsg_len = sizeof (*cmsg) + ipp->ipp_hopoptslen; in sctp_input_add_ancillary()
577 cmsg->cmsg_len = sizeof (*cmsg) + ipp->ipp_rthdrdstoptslen; in sctp_input_add_ancillary()
593 cmsg->cmsg_len = sizeof (*cmsg) + ipp->ipp_rthdrlen; in sctp_input_add_ancillary()
609 cmsg->cmsg_len = sizeof (*cmsg) + ipp->ipp_dstoptslen; in sctp_input_add_ancillary()
H A Dsctp_output.c196 ((char *)cmsg + cmsg->cmsg_len) > cend) { in sctp_sendmsg()
201 if (cmsg->cmsg_len < in sctp_sendmsg()
213 if (cmsg->cmsg_len > 0) in sctp_sendmsg()
/titanic_50/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-port.c80 cmp[0].cmsg_len = sizeof (struct cmsghdr) + sizeof (int); in sendfd()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Doutput.c228 cmsgp->cmsg_len = (caddr_t)(ipip + 1) - (caddr_t)cmsgp; in sendtoif()
/titanic_50/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dpacket.c975 cmsg->cmsg_len = (char *)(ipi6 + 1) - (char *)cmsg; in send_pkt_internal()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/vrrpd/
H A Dvrrpd.c3166 cmsgp->cmsg_len = cmsg_datap + hoplimit_space - (uchar_t *)cmsgp; in vrrpd_send_adv_v6()
3186 cmsgp->cmsg_len = cmsg_datap + pktinfo_space - (uchar_t *)cmsgp; in vrrpd_send_adv_v6()
/titanic_50/usr/src/lib/libdns_sd/common/
H A Ddnssd_clientstub.c775 cmsg->cmsg_len = CMSG_LEN(sizeof(dnssd_sock_t)); in deliver_request()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A Duds_daemon.c4668 …LogMsg("%3d: Got %d %d %d %d", req->sd, msg.msg_controllen, cmsg->cmsg_len, cmsg->cmsg_level… in read_msg()
4681 LogOperation("%3d: Got len %d, BPF %d", req->sd, cmsg->cmsg_len, x); in read_msg()