Lines Matching refs:a
1104 static void mptcp_get_sub_addrs(const struct sock *sk, struct mptcp_subflow_addrs *a) in mptcp_get_sub_addrs() argument
1108 memset(a, 0, sizeof(*a)); in mptcp_get_sub_addrs()
1111 a->sin_local.sin_family = AF_INET; in mptcp_get_sub_addrs()
1112 a->sin_local.sin_port = inet->inet_sport; in mptcp_get_sub_addrs()
1113 a->sin_local.sin_addr.s_addr = inet->inet_rcv_saddr; in mptcp_get_sub_addrs()
1115 if (!a->sin_local.sin_addr.s_addr) in mptcp_get_sub_addrs()
1116 a->sin_local.sin_addr.s_addr = inet->inet_saddr; in mptcp_get_sub_addrs()
1118 a->sin_remote.sin_family = AF_INET; in mptcp_get_sub_addrs()
1119 a->sin_remote.sin_port = inet->inet_dport; in mptcp_get_sub_addrs()
1120 a->sin_remote.sin_addr.s_addr = inet->inet_daddr; in mptcp_get_sub_addrs()
1128 a->sin6_local.sin6_family = AF_INET6; in mptcp_get_sub_addrs()
1129 a->sin6_local.sin6_port = inet->inet_sport; in mptcp_get_sub_addrs()
1132 a->sin6_local.sin6_addr = np->saddr; in mptcp_get_sub_addrs()
1134 a->sin6_local.sin6_addr = sk->sk_v6_rcv_saddr; in mptcp_get_sub_addrs()
1136 a->sin6_remote.sin6_family = AF_INET6; in mptcp_get_sub_addrs()
1137 a->sin6_remote.sin6_port = inet->inet_dport; in mptcp_get_sub_addrs()
1138 a->sin6_remote.sin6_addr = sk->sk_v6_daddr; in mptcp_get_sub_addrs()
1171 struct mptcp_subflow_addrs a; in mptcp_getsockopt_subflow_addrs() local
1173 mptcp_get_sub_addrs(ssk, &a); in mptcp_getsockopt_subflow_addrs()
1175 if (copy_to_user(addrptr, &a, sfd.size_user)) { in mptcp_getsockopt_subflow_addrs()