Home
last modified time | relevance | path

Searched refs:size_user (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.c60 __u32 size_user; /* size of one element in data[] */ member
259 assert(bd.d.size_user == 0); in do_getsockopt_bogus_sf_data()
295 bd.d.size_user = 1; in do_getsockopt_bogus_sf_data()
344 ti.d.size_user = sizeof(struct tcp_info); in do_getsockopt_tcp_info()
352 assert(ti.d.size_user == ti.d.size_kernel); in do_getsockopt_tcp_info()
353 assert(ti.d.size_user == sizeof(struct tcp_info)); in do_getsockopt_tcp_info()
396 addrs.d.size_user = sizeof(struct mptcp_subflow_addrs); in do_getsockopt_subflow_addrs()
404 assert(addrs.d.size_user == addrs.d.size_kernel); in do_getsockopt_subflow_addrs()
405 assert(addrs.d.size_user == sizeof(struct mptcp_subflow_addrs)); in do_getsockopt_subflow_addrs()
432 addrs.d.size_user = sizeof(sa_family_t); in do_getsockopt_subflow_addrs()
/linux-6.1.9/net/mptcp/
Dsockopt.c980 sfd->size_user > INT_MAX) in mptcp_get_subflow_data()
1008 sfd.size_user = min_t(unsigned int, sfd.size_user, in mptcp_getsockopt_tcpinfo()
1020 if (len && len >= sfd.size_user) { in mptcp_getsockopt_tcpinfo()
1025 if (copy_to_user(infoptr, &info, sfd.size_user)) { in mptcp_getsockopt_tcpinfo()
1030 infoptr += sfd.size_user; in mptcp_getsockopt_tcpinfo()
1031 copied += sfd.size_user; in mptcp_getsockopt_tcpinfo()
1032 len -= sfd.size_user; in mptcp_getsockopt_tcpinfo()
1100 sfd.size_user = min_t(unsigned int, sfd.size_user, in mptcp_getsockopt_subflow_addrs()
1112 if (len && len >= sfd.size_user) { in mptcp_getsockopt_subflow_addrs()
1117 if (copy_to_user(addrptr, &a, sfd.size_user)) { in mptcp_getsockopt_subflow_addrs()
[all …]
/linux-6.1.9/include/uapi/linux/
Dmptcp.h219 __u32 size_user; /* size of one element in data[] */ member
/linux-6.1.9/net/bridge/netfilter/
Debtables.c2195 static int compat_copy_entries(unsigned char *data, unsigned int size_user, in compat_copy_entries() argument
2198 unsigned int size_remaining = size_user; in compat_copy_entries()
2201 ret = EBT_ENTRY_ITERATE(data, size_user, size_entry_mwt, data, in compat_copy_entries()