Searched refs:cmh (Results 1 – 2 of 2) sorted by relevance
| /f-stack/freebsd/netinet/ |
| H A D | sctp_indata.c | 178 struct cmsghdr *cmh; in sctp_build_ctl_nchunk() local 228 memset(cmh, 0, len); in sctp_build_ctl_nchunk() 230 cmh->cmsg_level = IPPROTO_SCTP; in sctp_build_ctl_nchunk() 232 cmh->cmsg_type = SCTP_RCVINFO; in sctp_build_ctl_nchunk() 242 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_rcvinfo))); in sctp_build_ctl_nchunk() 246 cmh->cmsg_level = IPPROTO_SCTP; in sctp_build_ctl_nchunk() 248 cmh->cmsg_type = SCTP_NXTINFO; in sctp_build_ctl_nchunk() 264 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_nxtinfo))); in sctp_build_ctl_nchunk() 268 cmh->cmsg_level = IPPROTO_SCTP; in sctp_build_ctl_nchunk() 272 cmh->cmsg_type = SCTP_EXTRCV; in sctp_build_ctl_nchunk() [all …]
|
| H A D | sctp_output.c | 3478 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh); in sctp_find_cmsg() 3479 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) { in sctp_find_cmsg() 3483 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) { in sctp_find_cmsg() 3487 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh)); in sctp_find_cmsg() 3578 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh); in sctp_process_cmsgs_for_init() 3579 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) { in sctp_process_cmsgs_for_init() 3584 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) { in sctp_process_cmsgs_for_init() 3589 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh)); in sctp_process_cmsgs_for_init() 3749 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh); in sctp_findassociation_cmsgs() 3750 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) { in sctp_findassociation_cmsgs() [all …]
|