Home
last modified time | relevance | path

Searched refs:sopt_valsize (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/sys/netpfil/ipfw/
H A Dip_dummynet.c1359 size_t sopt_valsize; in get_aqm_parms() local
1362 sopt_valsize = sopt->sopt_valsize; in get_aqm_parms()
1364 if (sopt->sopt_valsize < l) { in get_aqm_parms()
1366 (int) sopt->sopt_valsize , l); in get_aqm_parms()
1379 sopt->sopt_valsize = sopt_valsize; in get_aqm_parms()
1414 size_t sopt_valsize; in get_sched_parms() local
1417 sopt_valsize = sopt->sopt_valsize; in get_sched_parms()
1419 if (sopt->sopt_valsize < l) { in get_sched_parms()
1421 (int) sopt->sopt_valsize , l); in get_sched_parms()
1434 sopt->sopt_valsize = sopt_valsize; in get_sched_parms()
[all …]
H A Dip_dn_glue.c792 int len = sopt->sopt_valsize; in ip_dummynet_compat()
840 int original_size = sopt->sopt_valsize; in ip_dummynet_compat()
846 size = sopt->sopt_valsize; in ip_dummynet_compat()
847 sopt->sopt_valsize = original_size; in ip_dummynet_compat()
H A Dip_fw_sockopt.c3611 sopt->sopt_valsize = sd->ktotal; in ipfw_flush_sopt_data()
3692 valsize = sopt->sopt_valsize; in ipfw_ctl3()
3699 sopt->sopt_valsize = valsize; in ipfw_ctl3()
3792 sopt->sopt_valsize = sdata.ktotal; in ipfw_ctl3()
3850 if (size >= sopt->sopt_valsize) in ipfw_ctl()
3888 size = sopt->sopt_valsize; in ipfw_ctl()
3943 size = sopt->sopt_valsize; in ipfw_ctl()
4039 if (sopt->sopt_valsize < sizeof(*tbl)) { in ipfw_ctl()
4043 size = sopt->sopt_valsize; in ipfw_ctl()
/freebsd/sys/sys/
H A Dsockopt.h53 size_t sopt_valsize; /* (almost) fifth arg of [gs]etsockopt */ member
/freebsd/sys/netinet/
H A Dtcp_log_buf.c2154 if (sopt->sopt_valsize / (sizeof(struct tcp_log_buffer) + in tcp_log_getlogbuf()
2169 if ((sopt->sopt_valsize - outsize) < entrysize) in tcp_log_getlogbuf()
2175 KASSERT(outsize <= sopt->sopt_valsize, in tcp_log_getlogbuf()
2177 "space (%zu)", __func__, outsize, sopt->sopt_valsize)); in tcp_log_getlogbuf()
2195 if (sopt->sopt_valsize > outsize) in tcp_log_getlogbuf()
2196 sopt->sopt_valsize = outsize; in tcp_log_getlogbuf()
2271 sopt->sopt_valsize = (size_t)((caddr_t)out_entry - in tcp_log_getlogbuf()
2310 sopt.sopt_valsize = sizeof(struct tcp_log_header) + in tcp_log_expandlogbuf()
2313 hdr = malloc(sopt.sopt_valsize, M_TCPLOGDEV, M_NOWAIT); in tcp_log_expandlogbuf()
2321 sopt.sopt_valsize -= sizeof(struct tcp_log_header); in tcp_log_expandlogbuf()
H A Dtcp_usrreq.c1907 buf[sopt->sopt_valsize] = '\0'; in tcp_set_cc_mod()
2053 if (sopt->sopt_valsize > CC_ALGOOPT_LIMIT) in tcp_default_ctloutput()
2055 pbuf = malloc(sopt->sopt_valsize, M_TEMP, M_WAITOK | M_ZERO); in tcp_default_ctloutput()
2056 error = sooptcopyin(sopt, pbuf, sopt->sopt_valsize, in tcp_default_ctloutput()
2057 sopt->sopt_valsize); in tcp_default_ctloutput()
2069 error = sooptcopyout(sopt, pbuf, sopt->sopt_valsize); in tcp_default_ctloutput()
2391 if (sopt->sopt_valsize == in tcp_default_ctloutput()
2428 buf[sopt->sopt_valsize] = '\0'; in tcp_default_ctloutput()
2441 buf[sopt->sopt_valsize] = '\0'; in tcp_default_ctloutput()
2513 socklen_t outsbsz = sopt->sopt_valsize; in tcp_default_ctloutput()
[all …]
H A Din_mcast.c1781 if (sopt->sopt_valsize == sizeof(struct ip_mreqn)) { in inp_getmoptions()
1796 if (sopt->sopt_valsize == sizeof(u_char)) in inp_getmoptions()
1808 if (sopt->sopt_valsize == sizeof(u_char)) in inp_getmoptions()
1930 if (sopt->sopt_valsize == sizeof(struct ip_mreqn)) in inp_join_group()
1946 if (sopt->sopt_valsize == sizeof(struct ip_mreqn) && in inp_join_group()
2457 if (sopt->sopt_valsize == sizeof(struct ip_mreqn)) { in inp_set_multicast_if()
2746 if (sopt->sopt_valsize == sizeof(u_char)) { in inp_setmoptions()
2779 if (sopt->sopt_valsize == sizeof(u_char)) { in inp_setmoptions()
H A Dip_output.c1115 if (sopt->sopt_valsize > MLEN) { in ip_ctloutput()
1124 m->m_len = sopt->sopt_valsize; in ip_ctloutput()
1361 sopt->sopt_valsize = 0; in ip_ctloutput()
H A Dip_gre.c312 sopt.sopt_valsize = sizeof(value); in in_gre_setup_socket()
/freebsd/sys/nfs/
H A Dkrpc_subr.c230 sopt.sopt_valsize = sizeof tv; in krpc_call()
242 sopt.sopt_valsize = sizeof on; in krpc_call()
H A Dbootp_subr.c506 sopt.sopt_valsize = sizeof tv; in bootpc_call()
518 sopt.sopt_valsize = sizeof on; in bootpc_call()
531 sopt.sopt_valsize = sizeof on; in bootpc_call()
/freebsd/sys/dev/iscsi/
H A Dicl_soft_proxy.c266 sopt.sopt_valsize = sizeof(one); in icl_listen_add_tcp()
/freebsd/sys/netgraph/
H A Dng_ksocket.c829 sopt.sopt_valsize = NG_KSOCKET_MAX_OPTLEN; in ng_ksocket_rcvmsg()
839 + sopt.sopt_valsize; in ng_ksocket_rcvmsg()
861 sopt.sopt_valsize = valsize; in ng_ksocket_rcvmsg()
/freebsd/sys/rpc/
H A Drpc_generic.c204 opt.sopt_valsize = sizeof type; in __rpc_socket2sockinfo()
829 opt.sopt_valsize = sizeof(old); in bindresvport()
H A Dsvc_vc.c273 opt.sopt_valsize = sizeof(one); in svc_vc_create_conn()
285 opt.sopt_valsize = sizeof(one); in svc_vc_create_conn()
H A Dclnt_vc.c197 sopt.sopt_valsize = sizeof(one); in clnt_vc_create()
207 sopt.sopt_valsize = sizeof(one); in clnt_vc_create()
/freebsd/sys/kern/
H A Duipc_socket.c3729 if ((valsize = sopt->sopt_valsize) < minlen)
3732 sopt->sopt_valsize = valsize = len;
3756 sopt.sopt_valsize = optlen;
4030 valsize = min(len, sopt->sopt_valsize);
4031 sopt->sopt_valsize = valsize;
4273 int sopt_size = sopt->sopt_valsize;
4324 while (m != NULL && sopt->sopt_valsize >= m->m_len) {
4336 sopt->sopt_valsize -= m->m_len;
4353 while (m != NULL && sopt->sopt_valsize >= m->m_len) {
4365 sopt->sopt_valsize -= m->m_len;
[all …]
H A Duipc_syscalls.c1236 sopt.sopt_valsize = valsize; in kern_setsockopt()
1303 sopt.sopt_valsize = (size_t)*valsize; /* checked non-negative above */ in kern_getsockopt()
1321 *valsize = sopt.sopt_valsize;
/freebsd/sys/netinet6/
H A Dip6_output.c1633 optlen = sopt->sopt_valsize; in ip6_ctloutput()
2042 optlen = sopt->sopt_valsize; in ip6_ctloutput()
2133 sopt->sopt_valsize = 0; in ip6_ctloutput()
2377 optlen = sopt->sopt_valsize; in ip6_raw_ctloutput()
2533 optdata = malloc(sopt->sopt_valsize, M_TEMP, M_WAITOK); \
2543 optdatalen = min(lenexpr, sopt->sopt_valsize); \
H A Dip6_gre.c307 sopt.sopt_valsize = sizeof(value); in in6_gre_setup_socket()
/freebsd/sys/netipsec/
H A Dipsec_pcb.c444 optlen = sopt->sopt_valsize; in ipsec_control_pcbpolicy()
/freebsd/sys/netinet/cc/
H A Dcc_newreno.c456 if (sopt->sopt_valsize != sizeof(struct cc_newreno_opts)) in newreno_ctl_output()
/freebsd/sys/net/
H A Dif_vxlan.c1014 sopt.sopt_valsize = sizeof(val); in vxlan_socket_init()
1171 sopt.sopt_valsize = sizeof(mreq); in vxlan_socket_mc_join_group()
1202 sopt.sopt_valsize = sizeof(mreq); in vxlan_socket_mc_join_group()
1237 sopt.sopt_valsize = sizeof(mreq); in vxlan_socket_mc_leave_group()
1249 sopt.sopt_valsize = sizeof(mreq); in vxlan_socket_mc_leave_group()
/freebsd/sys/netsmb/
H A Dsmb_trantcp.c88 sopt.sopt_valsize = sizeof(val); in nb_setsockopt_int()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dcm.c829 sopt.sopt_valsize = sizeof on; in setiwsockopt()
1651 sopt.sopt_valsize = sizeof l; in send_abort()
2549 sopt.sopt_valsize = sizeof(on); in c4iw_sock_create()
2561 sopt.sopt_valsize = sizeof(on); in c4iw_sock_create()

12