Searched refs:subflow (Results 1 – 9 of 9) sorted by relevance
/net/mptcp/ |
D | subflow.c | 255 static bool subflow_thmac_valid(struct mptcp_subflow_context *subflow) in subflow_thmac_valid() argument 260 subflow_generate_hmac(subflow->remote_key, subflow->local_key, in subflow_thmac_valid() 261 subflow->remote_nonce, subflow->local_nonce, in subflow_thmac_valid() 266 subflow, subflow->token, in subflow_thmac_valid() 268 (unsigned long long)subflow->thmac); in subflow_thmac_valid() 270 return thmac == subflow->thmac; in subflow_thmac_valid() 275 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in mptcp_subflow_reset() local 276 struct sock *sk = subflow->conn; in mptcp_subflow_reset() 287 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in subflow_finish_connect() local 289 struct sock *parent = subflow->conn; in subflow_finish_connect() [all …]
|
D | options.c | 336 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in mptcp_syn_options() local 341 subflow->snd_isn = TCP_SKB_CB(skb)->end_seq; in mptcp_syn_options() 342 if (subflow->request_mptcp) { in mptcp_syn_options() 346 } else if (subflow->request_join) { in mptcp_syn_options() 347 pr_debug("remote_token=%u, nonce=%u", subflow->remote_token, in mptcp_syn_options() 348 subflow->local_nonce); in mptcp_syn_options() 350 opts->join_id = subflow->local_id; in mptcp_syn_options() 351 opts->token = subflow->remote_token; in mptcp_syn_options() 352 opts->nonce = subflow->local_nonce; in mptcp_syn_options() 353 opts->backup = subflow->request_bkup; in mptcp_syn_options() [all …]
|
D | protocol.c | 50 if (!msk->subflow || READ_ONCE(msk->can_ack)) in __mptcp_nmpc_socket() 53 return msk->subflow; in __mptcp_nmpc_socket() 92 struct mptcp_subflow_context *subflow; in __mptcp_socket_create() local 102 msk->subflow = ssock; in __mptcp_socket_create() 103 subflow = mptcp_subflow_ctx(ssock->sk); in __mptcp_socket_create() 104 list_add(&subflow->node, &msk->conn_list); in __mptcp_socket_create() 105 subflow->request_mptcp = 1; in __mptcp_socket_create() 268 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(ssk); in __mptcp_move_skb() local 292 MPTCP_SKB_CB(skb)->map_seq = mptcp_subflow_get_mapped_dsn(subflow); in __mptcp_move_skb() 415 struct mptcp_subflow_context *subflow; in mptcp_check_data_fin() local [all …]
|
D | protocol.h | 224 struct socket *subflow; /* outgoing connect/listener/!mp_capable */ member 345 mptcp_subflow_tcp_sock(const struct mptcp_subflow_context *subflow) in mptcp_subflow_tcp_sock() argument 347 return subflow->tcp_sock; in mptcp_subflow_tcp_sock() 351 mptcp_subflow_get_map_offset(const struct mptcp_subflow_context *subflow) in mptcp_subflow_get_map_offset() argument 353 return tcp_sk(mptcp_subflow_tcp_sock(subflow))->copied_seq - in mptcp_subflow_get_map_offset() 354 subflow->ssn_offset - in mptcp_subflow_get_map_offset() 355 subflow->map_subflow_seq; in mptcp_subflow_get_map_offset() 359 mptcp_subflow_get_mapped_dsn(const struct mptcp_subflow_context *subflow) in mptcp_subflow_get_mapped_dsn() argument 361 return subflow->map_seq + mptcp_subflow_get_map_offset(subflow); in mptcp_subflow_get_mapped_dsn() 365 void mptcp_subflow_fully_established(struct mptcp_subflow_context *subflow, [all …]
|
D | token.c | 154 struct mptcp_subflow_context *subflow = mptcp_subflow_ctx(sk); in mptcp_token_new_connect() local 155 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_token_new_connect() 160 mptcp_crypto_key_gen_sha(&subflow->local_key, &subflow->token, in mptcp_token_new_connect() 161 &subflow->idsn); in mptcp_token_new_connect() 163 bucket = token_bucket(subflow->token); in mptcp_token_new_connect() 165 if (__token_bucket_busy(bucket, subflow->token)) { in mptcp_token_new_connect() 173 sk, subflow->local_key, subflow->token, subflow->idsn); in mptcp_token_new_connect() 175 WRITE_ONCE(msk->token, subflow->token); in mptcp_token_new_connect()
|
D | pm_netlink.c | 116 struct mptcp_subflow_context *subflow; in lookup_subflow_by_saddr() local 120 list_for_each_entry(subflow, list, node) { in lookup_subflow_by_saddr() 121 skc = (struct sock_common *)mptcp_subflow_tcp_sock(subflow); in lookup_subflow_by_saddr() 402 struct mptcp_subflow_context *subflow, *tmp; in mptcp_pm_nl_rm_addr_received() local 413 list_for_each_entry_safe(subflow, tmp, &msk->conn_list, node) { in mptcp_pm_nl_rm_addr_received() 414 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_pm_nl_rm_addr_received() 418 if (msk->pm.rm_id != subflow->remote_id) in mptcp_pm_nl_rm_addr_received() 423 __mptcp_close_ssk(sk, ssk, subflow, timeout); in mptcp_pm_nl_rm_addr_received() 438 struct mptcp_subflow_context *subflow, *tmp; in mptcp_pm_nl_rm_subflow_received() local 449 list_for_each_entry_safe(subflow, tmp, &msk->conn_list, node) { in mptcp_pm_nl_rm_subflow_received() [all …]
|
D | Makefile | 4 mptcp-y := protocol.o subflow.o options.o token.o crypto.o ctrl.o pm.o diag.o \
|
D | Kconfig | 10 subflows in order to utilize multiple network paths. Each subflow
|
D | pm.c | 121 struct mptcp_subflow_context *subflow) in mptcp_pm_subflow_established() argument
|