Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c65 __u32 size_user; /* size of one element in data[] */ member
299 assert(bd.d.size_user == 0); in do_getsockopt_bogus_sf_data()
335 bd.d.size_user = 1; in do_getsockopt_bogus_sf_data()
385 ti.d.size_user = sizeof(struct tcp_info); in do_getsockopt_tcp_info()
394 assert(ti.d.size_user == in do_getsockopt_tcp_info()
400 assert(olen == ti.d.size_user); in do_getsockopt_tcp_info()
440 addrs.d.size_user = sizeof(struct mptcp_subflow_addrs); in do_getsockopt_subflow_addrs()
449 assert(addrs.d.size_user == in do_getsockopt_subflow_addrs()
455 assert(olen == addrs.d.size_user); in do_getsockopt_subflow_addrs()
478 addrs.d.size_user = sizeof(sa_family_t); in do_getsockopt_subflow_addrs()
/linux/net/mptcp/
H A Dsockopt.c1065 sfd->size_user > INT_MAX) in mptcp_get_subflow_data()
1093 sfd.size_user = min_t(unsigned int, sfd.size_user, in mptcp_getsockopt_tcpinfo()
1105 if (len && len >= sfd.size_user) { in mptcp_getsockopt_tcpinfo()
1110 if (copy_to_user(infoptr, &info, sfd.size_user)) { in mptcp_getsockopt_tcpinfo()
1115 infoptr += sfd.size_user; in mptcp_getsockopt_tcpinfo()
1116 copied += sfd.size_user; in mptcp_getsockopt_tcpinfo()
1117 len -= sfd.size_user; in mptcp_getsockopt_tcpinfo()
1185 sfd.size_user = min_t(unsigned int, sfd.size_user, in mptcp_getsockopt_subflow_addrs()
1197 if (len && len >= sfd.size_user) { in mptcp_getsockopt_subflow_addrs()
1202 if (copy_to_user(addrptr, &a, sfd.size_user)) { in mptcp_getsockopt_subflow_addrs()
[all …]
/linux/include/uapi/linux/
H A Dmptcp.h80 __u32 size_user; /* size of one element in data[] */ member
/linux/net/bridge/netfilter/
H A Debtables.c2198 static int compat_copy_entries(unsigned char *data, unsigned int size_user, in compat_copy_entries() argument
2201 unsigned int size_remaining = size_user; in compat_copy_entries()
2204 ret = EBT_ENTRY_ITERATE(data, size_user, size_entry_mwt, data, in compat_copy_entries()