Lines Matching refs:msg_controllen

93 		 const size_t msg_controllen,  in test_scm_rights1()  argument
101 && aligned_cms_len + CMSG_LEN(0) <= msg_controllen) in test_scm_rights1()
104 struct cmsghdr *cmsg = get_cmsghdr(page, msg_controllen); in test_scm_rights1()
106 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_len)) in test_scm_rights1()
108 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights1()
110 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights1()
114 cmsg_len < msg_controllen ? cmsg_len : msg_controllen; in test_scm_rights1()
119 mh->msg_controllen = msg_controllen; in test_scm_rights1()
126 if (msg_controllen < CMSG_LEN(0)) { in test_scm_rights1()
127 if (msg_controllen) in test_scm_rights1()
134 if (aligned_cms_len < msg_controllen) in test_scm_rights1()
141 (unsigned long) msg_controllen, rc, errno2name()); in test_scm_rights1()
146 const size_t msg_controllen, in test_scm_rights2() argument
156 || aligned_cms_len[0] + CMSG_LEN(0) > msg_controllen in test_scm_rights2()
157 || aligned_cms_len[0] + aligned_cms_len[1] + CMSG_LEN(0) <= msg_controllen) in test_scm_rights2()
161 get_cmsghdr(page, msg_controllen), in test_scm_rights2()
162 (void *) get_cmsghdr(page, msg_controllen) + aligned_cms_len[0] in test_scm_rights2()
170 const size_t msg_controllen1 = msg_controllen - aligned_cms_len[0]; in test_scm_rights2()
173 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_level)) in test_scm_rights2()
175 if (msg_controllen >= MIN_SIZE_OF(struct cmsghdr, cmsg_type)) in test_scm_rights2()
183 mh->msg_controllen = msg_controllen; in test_scm_rights2()
203 (unsigned long) msg_controllen, rc, errno2name()); in test_scm_rights2()
221 mh->msg_controllen = len; in test_scm_rights3()
247 mh->msg_controllen = len; in test_scm_timestamp()
267 mh->msg_controllen = len; in test_scm_timestamp()
292 mh->msg_controllen = len; in test_scm_timestampns()
312 mh->msg_controllen = len; in test_scm_timestampns()
342 mh->msg_controllen = len; in test_scm_timestamping()
367 mh->msg_controllen = len; in test_scm_timestamping()
391 const size_t msg_controllen, in test_scm_security() argument
401 && aligned_cms_len + CMSG_LEN(0) <= msg_controllen) in test_scm_security()
404 struct cmsghdr *cmsg = get_cmsghdr(page, msg_controllen); in test_scm_security()
411 cmsg_len < msg_controllen ? cmsg_len : msg_controllen; in test_scm_security()
416 mh->msg_controllen = msg_controllen; in test_scm_security()
427 if (aligned_cms_len < msg_controllen) in test_scm_security()
433 (unsigned long) msg_controllen, rc, errno2name()); in test_scm_security()
450 mh->msg_controllen = cmsg->cmsg_len; in test_unknown_type()
458 cmsg_type_str, (unsigned) mh->msg_controllen, rc, errno2name()); in test_unknown_type()
466 size_t msg_controllen, max_msg_controllen; in test_sol_socket() local
469 for (msg_controllen = 0; in test_sol_socket()
470 msg_controllen <= max_msg_controllen; in test_sol_socket()
471 msg_controllen++) { in test_sol_socket()
475 cmsg_len <= msg_controllen + CMSG_LEN(0); in test_sol_socket()
477 test_scm_rights1(mh, msg_controllen, in test_sol_socket()
485 for (msg_controllen = CMSG_LEN(0) * 2; in test_sol_socket()
486 msg_controllen <= max_msg_controllen; in test_sol_socket()
487 msg_controllen++) { in test_sol_socket()
492 CMSG_ALIGN(cmsg_len[0]) + CMSG_LEN(0) <= msg_controllen in test_sol_socket()
496 msg_controllen - CMSG_ALIGN(cmsg_len[0]); in test_sol_socket()
501 test_scm_rights2(mh, msg_controllen, in test_sol_socket()
509 for (msg_controllen = CMSG_LEN(0); in test_sol_socket()
510 msg_controllen <= max_msg_controllen; in test_sol_socket()
511 msg_controllen++) { in test_sol_socket()
515 cmsg_len <= msg_controllen + CMSG_LEN(0) in test_sol_socket()
518 test_scm_security(mh, msg_controllen, in test_sol_socket()
552 mh->msg_controllen = len; in test_ip_pktinfo()
580 mh->msg_controllen = len; in test_ip_uint()
604 mh->msg_controllen = len; in test_ip_uint8_t()
649 mh->msg_controllen = len; in test_ip_opts()
696 mh->msg_controllen = len; in test_ip_recverr()
732 mh->msg_controllen = len; in test_ip_origdstaddr()
786 mh->msg_controllen = cmsg->cmsg_len; in test_unknown_level()
794 (unsigned) mh->msg_controllen, rc, errno2name()); in test_unknown_level()
815 mh->msg_controllen = len; in test_big_len()
845 mh->msg_controllen = CMSG_LEN(0); in main()