Lines Matching defs:cmsg
266 struct cmsghdr *cmsg;
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;
317 char coutmsg[sizeof (*sinfo) + sizeof (*cmsg) + _CMSG_HDR_ALIGNMENT];
324 hdr.msg_controllen = sizeof (*cmsg) + sizeof (*sinfo);
329 cmsg = CMSG_FIRSTHDR(&hdr);
330 cmsg->cmsg_level = IPPROTO_SCTP;
331 cmsg->cmsg_type = SCTP_SNDRCV;
332 cmsg->cmsg_len = sizeof (*cmsg) + sizeof (*sinfo);
334 sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg);