Lines Matching defs:cmh

3455 	struct cmsghdr cmh;
3468 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3470 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3474 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh);
3475 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3479 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) {
3483 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3484 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3485 if ((cmh.cmsg_level == IPPROTO_SCTP) &&
3486 ((c_type == cmh.cmsg_type) ||
3488 ((cmh.cmsg_type == SCTP_SNDINFO) ||
3489 (cmh.cmsg_type == SCTP_PRINFO) ||
3490 (cmh.cmsg_type == SCTP_AUTHINFO))))) {
3491 if (c_type == cmh.cmsg_type) {
3511 switch (cmh.cmsg_type) {
3556 struct cmsghdr cmh;
3567 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3569 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3574 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh);
3575 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3580 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) {
3585 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3586 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3587 if (cmh.cmsg_level == IPPROTO_SCTP) {
3588 switch (cmh.cmsg_type) {
3726 struct cmsghdr cmh;
3738 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3740 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3745 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh);
3746 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3751 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) {
3756 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3757 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3758 if (cmh.cmsg_level == IPPROTO_SCTP) {
3759 switch (cmh.cmsg_type) {