Searched refs:sopt_valsize (Results 1 - 17 of 17) sorted by relevance
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_control.c | 598 if (sopt->sopt_valsize == 0) { 601 MALLOC(data, void *, sopt->sopt_valsize, M_TEMP, M_WAITOK); 604 error = sooptcopyin(sopt, data, sopt->sopt_valsize, sopt->sopt_valsize); 609 data, sopt->sopt_valsize); 619 if (sopt->sopt_valsize && sopt->sopt_val) { 620 MALLOC(data, void *, sopt->sopt_valsize, M_TEMP, M_WAITOK); 624 error = sooptcopyin(sopt, data, sopt->sopt_valsize, sopt->sopt_valsize); 626 len = sopt->sopt_valsize; [all...] |
H A D | kpi_socket.c | 478 sopt.sopt_valsize = *optlen; 481 if (error == 0) *optlen = sopt.sopt_valsize; 509 sopt.sopt_valsize = optlen; 570 sopt.sopt_valsize = sizeof(sotc); 594 sopt.sopt_valsize = optlen; 631 sopt.sopt_valsize = *optlen; 656 if (error == 0) *optlen = sopt.sopt_valsize;
|
H A D | uipc_socket.c | 2884 * wants, we return EINVAL. On success, sopt->sopt_valsize 2887 if ((valsize = sopt->sopt_valsize) < minlen) 2890 sopt->sopt_valsize = valsize = len; 2914 if (sopt->sopt_valsize < sizeof(tv64)) { 2917 sopt->sopt_valsize = sizeof(tv64); 2935 if (sopt->sopt_valsize < sizeof(tv32)) { 2938 sopt->sopt_valsize = sizeof(tv32); 3398 valsize = min(len, sopt->sopt_valsize); 3399 sopt->sopt_valsize = valsize; 3431 valsize = min(len, sopt->sopt_valsize); [all...] |
H A D | uipc_syscalls.c | 1609 sopt.sopt_valsize = uap->valsize; 1665 sopt.sopt_valsize = (size_t)valsize; /* checked non-negative above */ 1679 valsize = sopt.sopt_valsize;
|
H A D | kpi_socketfilter.c | 1403 return sopt->sopt_valsize;
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | ndrv.c | 503 if (sopt->sopt_val != 0 || sopt->sopt_valsize != 0) { 677 if (sopt->sopt_valsize != sizeof(ndrvSpec64)) 693 if (sopt->sopt_valsize != sizeof(ndrvSpec32)) 891 if (sopt->sopt_val == 0 || sopt->sopt_valsize < 2 || 892 sopt->sopt_level != SOL_NDRVPROTO || sopt->sopt_valsize > SOCK_MAXADDRLEN) 901 sizeof(struct sockaddr) + sopt->sopt_valsize, M_IFADDR, M_WAITOK); 906 result = copyin(sopt->sopt_val, &ndrv_multi->addr, sopt->sopt_valsize); 909 if (result == 0 && sopt->sopt_valsize != ndrv_multi->addr.sa_len) 945 if (sopt->sopt_val == 0 || sopt->sopt_valsize < 2 || 952 MALLOC(multi_addr, struct sockaddr*, sopt->sopt_valsize, [all...] |
/darwin-on-arm/xnu/bsd/netat/ |
H A D | aurp_aurpd.c | 150 sopt.sopt_valsize = sizeof(maxbuf); 170 sopt.sopt_valsize = sizeof(maxbuf);
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | ip_output.c | 2312 if (sopt->sopt_valsize > MLEN) { 2322 m->m_len = sopt->sopt_valsize; 2405 if (sopt->sopt_valsize > sizeof(ifname)) { 2411 if (sopt->sopt_valsize != 0) { 2413 sizeof (ifname), sopt->sopt_valsize); 2418 if (sopt->sopt_valsize == 0 || ifname[0] == '\0') { 2425 if (ifname[sopt->sopt_valsize - 1] != '\0') { 2618 sopt->sopt_valsize = 0;
|
H A D | in_mcast.c | 1897 if (sopt->sopt_valsize == sizeof(struct ip_mreqn)) { 1927 if (sopt->sopt_valsize == sizeof(u_char)) 1941 if (sopt->sopt_valsize == sizeof(u_char)) 2591 if (sopt->sopt_valsize == sizeof(struct ip_mreqn)) { 2992 if (sopt->sopt_valsize == sizeof(u_char)) { 3031 if (sopt->sopt_valsize == sizeof(u_char)) {
|
H A D | in_tclass.c | 535 size_t len = sopt->sopt_valsize; 542 sopt->sopt_valsize = len;
|
H A D | ip_fw2.c | 784 valsize = sopt->sopt_valsize; 796 sopt->sopt_valsize = valsize = copyinsize; 821 sopt->sopt_valsize = valsize = copyinsize; 3694 savedsopt_valsize = sopt->sopt_valsize; /* it might get modified in sooptcopyin_fw */ 3702 * adjust sopt_valsize to match what would be expected. 3704 sopt->sopt_valsize = RULESIZE(rule); 3722 sopt->sopt_valsize = sizeof(struct ip_old_fw); 3728 sopt->sopt_valsize = sizeof(struct ip_fw_compat);
|
H A D | ip_fw2_compat.c | 3072 if (!sopt->sopt_val || sopt->sopt_valsize < sizeof(struct ip_fw_compat_32)) 3114 if (!sopt->sopt_val || sopt->sopt_valsize < sizeof(struct ip_fw_compat_64)) 3304 if (!sopt->sopt_val || sopt->sopt_valsize < copyinsize)
|
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ip6_fw.c | 1301 if (!sopt->sopt_val || sopt->sopt_valsize < userrulesize) return EINVAL; 1303 /* save sopt->sopt_valsize */ 1304 valsize = sopt->sopt_valsize; 1371 sopt->sopt_valsize = valsize;
|
H A D | in6_mcast.c | 1987 v4sopt.sopt_valsize = sizeof(v4mreq); 2331 v4sopt.sopt_valsize = sizeof(v4mreq); 2568 if (sopt->sopt_valsize != sizeof(u_int)) 2843 if (sopt->sopt_valsize != sizeof(int)) { 2875 if (sopt->sopt_valsize != sizeof(u_int)) {
|
H A D | ip6_output.c | 1859 optlen = sopt->sopt_valsize; 2296 sopt->sopt_valsize = 0; 2539 optlen = sopt->sopt_valsize;
|
H A D | icmp6.c | 2946 optlen = sopt->sopt_valsize;
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | socketvar.h | 533 size_t sopt_valsize; /* (almost) fifth arg of [gs]etsockopt */ member in struct:sockopt
|
Completed in 147 milliseconds