Lines Matching refs:cmh

3459 	struct cmsghdr cmh;
3472 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3474 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3478 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh);
3479 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3483 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) {
3487 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3488 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3489 if ((cmh.cmsg_level == IPPROTO_SCTP) &&
3490 ((c_type == cmh.cmsg_type) ||
3492 ((cmh.cmsg_type == SCTP_SNDINFO) ||
3493 (cmh.cmsg_type == SCTP_PRINFO) ||
3494 (cmh.cmsg_type == SCTP_AUTHINFO))))) {
3495 if (c_type == cmh.cmsg_type) {
3515 switch (cmh.cmsg_type) {
3560 struct cmsghdr cmh;
3571 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3573 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3578 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh);
3579 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3584 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) {
3589 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3590 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3591 if (cmh.cmsg_level == IPPROTO_SCTP) {
3592 switch (cmh.cmsg_type) {
3730 struct cmsghdr cmh;
3742 for (off = 0; off < tot_len; off += CMSG_ALIGN(cmh.cmsg_len)) {
3744 if (rem_len < (int)CMSG_ALIGN(sizeof(cmh))) {
3749 m_copydata(control, off, sizeof(cmh), (caddr_t)&cmh);
3750 if (cmh.cmsg_len < CMSG_ALIGN(sizeof(cmh))) {
3755 if ((cmh.cmsg_len > INT_MAX) || ((int)cmh.cmsg_len > rem_len)) {
3760 cmsg_data_len = (int)cmh.cmsg_len - CMSG_ALIGN(sizeof(cmh));
3761 cmsg_data_off = off + CMSG_ALIGN(sizeof(cmh));
3762 if (cmh.cmsg_level == IPPROTO_SCTP) {
3763 switch (cmh.cmsg_type) {