Home
last modified time | relevance | path

Searched refs:sfinfo (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c497 struct mptcp_subflow_info sfinfo[2]; in do_getsockopt_mptcp_full_info() local
505 memset(sfinfo, 0, sizeof(sfinfo)); in do_getsockopt_mptcp_full_info()
510 mfi.subflow_info = (unsigned long)&sfinfo[0]; in do_getsockopt_mptcp_full_info()
542 assert(sfinfo[0].id == 1); in do_getsockopt_mptcp_full_info()
545 assert(!memcmp(&sfinfo->addrs, &s->addrs, sizeof(struct mptcp_subflow_addrs))); in do_getsockopt_mptcp_full_info()
/linux/net/mptcp/
H A Dsockopt.c1302 struct mptcp_subflow_info sfinfo; in mptcp_getsockopt_full_info() local
1311 memset(&sfinfo, 0, sizeof(sfinfo)); in mptcp_getsockopt_full_info()
1312 sfinfo.id = subflow->subflow_id; in mptcp_getsockopt_full_info()
1315 mptcp_get_sub_addrs(ssk, &sfinfo.addrs); in mptcp_getsockopt_full_info()
1316 if (copy_to_user(sfinfoptr, &sfinfo, mfi.size_sfinfo_user)) in mptcp_getsockopt_full_info()