Home
last modified time | relevance | path

Searched refs:size_subflow_data (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.c62 __u32 size_subflow_data; /* size of this structure in userspace */ member
286 good_data.size_subflow_data = olen; in do_getsockopt_bogus_sf_data()
323 bd.d.size_subflow_data = sizeof(bd); in do_getsockopt_bogus_sf_data()
331 assert(bd.d.size_subflow_data == sizeof(bd)); in do_getsockopt_bogus_sf_data()
334 bd.d.size_subflow_data += 1; in do_getsockopt_bogus_sf_data()
336 olen = bd.d.size_subflow_data + 1; in do_getsockopt_bogus_sf_data()
345 assert(bd.d.size_subflow_data == sizeof(good_data) + 1); in do_getsockopt_bogus_sf_data()
384 ti.d.size_subflow_data = sizeof(struct mptcp_subflow_data); in do_getsockopt_tcp_info()
439 addrs.d.size_subflow_data = sizeof(struct mptcp_subflow_data); in do_getsockopt_subflow_addrs()
477 addrs.d.size_subflow_data = sizeof(struct mptcp_subflow_data); in do_getsockopt_subflow_addrs()
/linux-6.12.1/net/mptcp/
Dsockopt.c1024 u32 copylen = min_t(u32, sfd->size_subflow_data, sizeof(*sfd)); in mptcp_put_subflow_data()
1027 copied += sfd->size_subflow_data; in mptcp_put_subflow_data()
1064 if (sfd->size_subflow_data > INT_MAX || in mptcp_get_subflow_data()
1068 if (sfd->size_subflow_data < MIN_INFO_OPTLEN_SIZE || in mptcp_get_subflow_data()
1069 sfd->size_subflow_data > len) in mptcp_get_subflow_data()
1075 return len - sfd->size_subflow_data; in mptcp_get_subflow_data()
1096 infoptr = optval + sfd.size_subflow_data; in mptcp_getsockopt_tcpinfo()
1188 addrptr = optval + sfd.size_subflow_data; in mptcp_getsockopt_subflow_addrs()
/linux-6.12.1/include/uapi/linux/
Dmptcp.h77 __u32 size_subflow_data; /* size of this structure in userspace */ member