Searched defs:cmsg (Results 1 - 25 of 27) sorted by relevance

12

/illumos-gate/usr/src/lib/libnsl/rpc/
H A Drpc_callmsg.c51 xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg) argument
57 if (cmsg->rm_call.cb_cred.oa_length > MAX_AUTH_BYTES)
59 if (cmsg->rm_call.cb_verf.oa_length > MAX_AUTH_BYTES)
62 + RNDUP(cmsg->rm_call.cb_cred.oa_length)
64 + RNDUP(cmsg->rm_call.cb_verf.oa_length));
66 IXDR_PUT_INT32(buf, cmsg->rm_xid);
67 IXDR_PUT_ENUM(buf, cmsg->rm_direction);
68 if (cmsg->rm_direction != CALL)
70 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_rpcvers);
71 if (cmsg
[all...]
H A Drpc_prot.c258 xdr_callhdr(XDR *xdrs, struct rpc_msg *cmsg) argument
260 cmsg->rm_direction = CALL;
261 cmsg->rm_call.cb_rpcvers = RPC_MSG_VERSION;
263 xdr_u_int(xdrs, &(cmsg->rm_xid)) &&
264 xdr_enum(xdrs, (enum_t *)&(cmsg->rm_direction)) &&
265 xdr_u_int(xdrs, (uint_t *)&(cmsg->rm_call.cb_rpcvers)) &&
266 xdr_u_int(xdrs, (uint_t *)&(cmsg->rm_call.cb_prog))) {
267 return (xdr_u_int(xdrs, (uint_t *)&(cmsg->rm_call.cb_vers)));
/illumos-gate/usr/src/uts/common/rpc/
H A Drpc_calmsg.c56 xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg) argument
62 if (cmsg->rm_call.cb_cred.oa_length > MAX_AUTH_BYTES)
64 if (cmsg->rm_call.cb_verf.oa_length > MAX_AUTH_BYTES)
67 RNDUP(cmsg->rm_call.cb_cred.oa_length) +
69 RNDUP(cmsg->rm_call.cb_verf.oa_length));
71 IXDR_PUT_INT32(buf, cmsg->rm_xid);
72 IXDR_PUT_ENUM(buf, cmsg->rm_direction);
73 if (cmsg->rm_direction != CALL)
75 IXDR_PUT_INT32(buf, cmsg->rm_call.cb_rpcvers);
76 if (cmsg
[all...]
H A Drpc_prot.c325 xdr_callhdr(XDR *xdrs, struct rpc_msg *cmsg) argument
327 cmsg->rm_direction = CALL;
328 cmsg->rm_call.cb_rpcvers = RPC_MSG_VERSION;
330 xdr_u_int(xdrs, &(cmsg->rm_xid)) &&
331 xdr_enum(xdrs, (enum_t *)&(cmsg->rm_direction)) &&
332 xdr_rpcvers(xdrs, &(cmsg->rm_call.cb_rpcvers)) &&
333 xdr_rpcprog(xdrs, &(cmsg->rm_call.cb_prog)))
334 return (xdr_rpcvers(xdrs, &(cmsg->rm_call.cb_vers)));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dcatgets.c99 char *cmsg = check_format( local
101 if (cmsg == def_str) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dinput.c55 struct cmsghdr *cmsg; local
57 for (cmsg = CMSG_FIRSTHDR(rmsg); cmsg != NULL;
58 cmsg = CMSG_NXTHDR(rmsg, cmsg)) {
59 if (cmsg->cmsg_level == IPPROTO_IPV6 &&
60 cmsg->cmsg_type == cmsg_type) {
61 return (CMSG_DATA(cmsg));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dcommon.c229 struct cmsghdr *cmsg; local
231 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL;
232 cmsg = CMSG_NXTHDR(msg, cmsg)) {
233 if (cmsg->cmsg_level == IPPROTO_IP &&
234 cmsg->cmsg_type == cmsg_type) {
235 return (CMSG_DATA(cmsg));
/illumos-gate/usr/src/lib/libsctp/common/
H A Dsctp.c266 struct cmsghdr *cmsg; local
267 char cinmsg[sizeof (*sinfo) + sizeof (*cmsg) + _CMSG_HDR_ALIGNMENT];
296 for (cmsg = CMSG_FIRSTHDR(&hdr); cmsg != NULL;
297 cmsg = CMSG_NXTHDR(&hdr, cmsg)) {
298 if (cmsg->cmsg_level == IPPROTO_SCTP &&
299 cmsg->cmsg_type == SCTP_SNDRCV) {
300 bcopy(CMSG_DATA(cmsg), sinfo, sizeof (*sinfo));
316 struct cmsghdr *cmsg; local
[all...]
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsocksctpsubr.c221 struct cmsghdr *cmsg; local
252 cmsg = (struct cmsghdr *)msg->msg_control;
253 ASSERT(ISALIGNED_cmsghdr(cmsg));
261 bcopy(ocmsg, cmsg, ocmsg->cmsg_len);
263 cmsg = (struct cmsghdr *)((uchar_t *)cmsg +
265 ASSERT(ISALIGNED_cmsghdr(cmsg));
280 struct cmsghdr *cmsg; local
283 cmsg = (struct cmsghdr *)control;
287 if ((char *)(cmsg
369 struct cmsghdr *cmsg; local
[all...]
H A Dsocksctp.c729 struct cmsghdr *cmsg; local
747 cmsg = sosctp_find_cmsg(msg->msg_control, optlen, SCTP_SNDRCV);
748 if (cmsg != NULL) {
749 if (cmsg->cmsg_len <
750 (sizeof (*sinfo) + sizeof (*cmsg))) {
754 sinfo = (struct sctp_sndrcvinfo *)(cmsg + 1);
929 struct cmsghdr *cmsg; local
944 cmsg = sosctp_find_cmsg(msg->msg_control, msg->msg_controllen,
946 if (cmsg != NULL) {
947 if (cmsg
2116 struct cmsghdr *cmsg; local
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdma.c440 * args is a pointer to an in-kernel copy in the sendmsg cmsg.
586 struct cmsghdr *cmsg)
593 if (cmsg->cmsg_len != CMSG_LEN(sizeof (struct rds_rdma_args)) ||
597 ASSERT(sizeof (buf) >= cmsg->cmsg_len && ((uintptr_t)buf & 0x7) == 0);
599 bcopy(CMSG_DATA(cmsg), (char *)buf, cmsg->cmsg_len);
615 struct cmsghdr *cmsg)
621 if (cmsg->cmsg_len != CMSG_LEN(sizeof (rds_rdma_cookie_t)) ||
625 (void) memcpy(&rm->m_rdma_cookie, CMSG_DATA(cmsg),
659 struct cmsghdr *cmsg)
585 rdsv3_cmsg_rdma_args(struct rdsv3_sock *rs, struct rdsv3_message *rm, struct cmsghdr *cmsg) argument
614 rdsv3_cmsg_rdma_dest(struct rdsv3_sock *rs, struct rdsv3_message *rm, struct cmsghdr *cmsg) argument
658 rdsv3_cmsg_rdma_map(struct rdsv3_sock *rs, struct rdsv3_message *rm, struct cmsghdr *cmsg) argument
[all...]
H A Drds_recv.c347 struct rds_rdma_notify cmsg; local
362 * in the user provided cmsg buffer. We don't try to copy more, to avoid
371 msghdr->msg_controllen / CMSG_SPACE(sizeof (cmsg));
391 cmsg.user_token = notifier->n_user_token;
392 cmsg.status = notifier->n_status;
395 RDS_CMSG_RDMA_STATUS, sizeof (cmsg), &cmsg);
478 /* mark the first cmsg position */
H A Dsend.c887 struct cmsghdr *cmsg; local
892 for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) {
894 if (cmsg->cmsg_level != SOL_RDS)
897 RDSV3_DPRINTF4("rdsv3_cmsg_send", "cmsg(%p, %p) type %d",
898 cmsg, rm, cmsg->cmsg_type);
903 switch (cmsg
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux6.c1022 struct cmsghdr *cmsg; local
1026 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL;
1027 cmsg = CMSG_NXTHDR(msg, cmsg)) {
1028 if (cmsg->cmsg_level == IPPROTO_IPV6) {
1029 switch (cmsg->cmsg_type) {
1045 pr_rthdr((uchar_t *)CMSG_DATA(cmsg));
1049 Printf(" <option type %d>", cmsg->cmsg_type);
H A Dping.c2562 struct cmsghdr *cmsg; local
2564 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL;
2565 cmsg = CMSG_NXTHDR(msg, cmsg)) {
2566 if (cmsg->cmsg_level == SOL_SOCKET &&
2567 cmsg->cmsg_type == SO_TIMESTAMP &&
2568 cmsg->cmsg_len == CMSG_LEN(sizeof (*tv))) {
2569 bcopy(CMSG_DATA(cmsg), tv, sizeof (*tv));
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux6.c280 struct cmsghdr *cmsg; local
283 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL;
284 cmsg = CMSG_NXTHDR(msg, cmsg)) {
285 if (cmsg->cmsg_level == IPPROTO_IPV6 &&
286 cmsg->cmsg_type == IPV6_HOPLIMIT) {
288 intp = (int *)(CMSG_DATA(cmsg));
377 struct cmsghdr *cmsg; local
379 for (cmsg
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dpacket.c806 struct cmsghdr *cmsg; local
959 msg.msg_controllen = sizeof (*cmsg) + _MAX_ALIGNMENT +
960 sizeof (*ipi6) + _MAX_ALIGNMENT + sizeof (*cmsg);
962 cmsg = CMSG_FIRSTHDR(&msg);
963 cmsg->cmsg_level = IPPROTO_IPV6;
964 cmsg->cmsg_type = IPV6_PKTINFO;
966 ipi6 = (struct in6_pktinfo *)CMSG_DATA(cmsg);
975 cmsg->cmsg_len = (char *)(ipi6 + 1) - (char *)cmsg;
980 cmsg
1258 struct cmsghdr *cmsg; local
[all...]
/illumos-gate/usr/src/uts/common/inet/
H A Doptcom.c1944 struct cmsghdr *cmsg; local
1952 for (cmsg = (struct cmsghdr *)control;
1953 CMSG_VALID(cmsg, control, (uintptr_t)control + controllen);
1954 cmsg = CMSG_NEXT(cmsg)) {
1956 len = (t_uscalar_t)CMSG_CONTENTLEN(cmsg);
1958 optd = proto_opt_lookup(cmsg->cmsg_level, cmsg->cmsg_type,
1985 optd->opdes_name, len, (uchar_t *)CMSG_CONTENT(cmsg),
1986 &outlen, (uchar_t *)CMSG_CONTENT(cmsg), optbu
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dndp.c83 struct cmsghdr *cmsg; local
85 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL;
86 cmsg = CMSG_NXTHDR(msg, cmsg)) {
87 if (cmsg->cmsg_level == IPPROTO_IPV6 &&
88 cmsg->cmsg_type == cmsg_type) {
89 return (CMSG_DATA(cmsg));
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dgettext_gnu.c778 uint32_t *cmsg; local
788 cmsg = (uint32_t *)(uintptr_t)gmnp->conv_msgstr[midx];
789 conv_msgstr_len = *cmsg;
790 conv_msgstr = (char *)(cmsg + 1);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_probe.c1333 struct cmsghdr *cmsg; local
1335 for (cmsg = CMSG_FIRSTHDR(msg); cmsg != NULL;
1336 cmsg = CMSG_NXTHDR(msg, cmsg)) {
1337 if (cmsg->cmsg_level == cmsg_level &&
1338 cmsg->cmsg_type == cmsg_type) {
1339 return (CMSG_DATA(cmsg));
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/
H A Dmdmn_commd_server.c1473 md_mn_msg_t *cmsg; /* current msg */ local
1621 cmsg = msglist[curmsg];
1624 cmsg->msg_flags |= inherit_flags;
1630 cmsg->msg_msgid.mid_smid = curmsg + 1;
1633 cmsg->msg_msgid.mid_oclass = orig_class;
1657 cmsg = msglist[curmsg];
1658 msgtype = cmsg->msg_type;
1690 master_err = do_message_locally(cmsg, result);
1695 if (cmsg->msg_flags & MD_MSGF_STOP_ON_ERROR) {
1715 if (cmsg
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_output.c186 struct cmsghdr *cmsg; local
190 cmsg = (struct cmsghdr *)(mproto->b_rptr + tudr->OPT_offset);
191 cend = ((char *)cmsg + tudr->OPT_length);
195 if ((char *)(cmsg + 1) > cend ||
196 ((char *)cmsg + cmsg->cmsg_len) > cend) {
199 if ((cmsg->cmsg_level == IPPROTO_SCTP) &&
200 (cmsg->cmsg_type == SCTP_SNDRCV)) {
201 if (cmsg->cmsg_len <
202 (sizeof (*sndrcv) + sizeof (*cmsg))) {
[all...]
H A Dsctp_input.c327 struct cmsghdr *cmsg; local
357 optlen += sizeof (*cmsg) + sizeof (struct sctp_sndrcvinfo);
364 optlen += sizeof (*cmsg) + sizeof (struct in6_pktinfo);
372 optlen += sizeof (*cmsg) + sizeof (uint_t);
390 optlen += sizeof (*cmsg) + ipp->ipp_hopoptslen -
406 optlen += sizeof (*cmsg) + ipp->ipp_rthdrdstoptslen;
421 optlen += sizeof (*cmsg) + ipp->ipp_rthdrlen;
436 optlen += sizeof (*cmsg) + ipp->ipp_dstoptslen;
476 cmsg = (struct cmsghdr *)optptr;
477 cmsg
[all...]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c1096 mblk_t *cmsg = *dmpp, *mnext; local
1131 rptr = cmsg->b_rptr;
1132 rmax = cmsg->b_wptr;
1141 mnext = cmsg->b_cont; \
1142 freeb(cmsg); \
1143 if ((cmsg = mnext) == NULL) { \
1147 rptr = cmsg->b_rptr; \
1148 rmax = cmsg->b_wptr; \
1184 freemsg(cmsg);
1197 freemsg(cmsg);
[all...]

Completed in 107 milliseconds

12