23 lines
510 B
C
23 lines
510 B
C
![]() |
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
/* Multipath TCP
|
||
|
*
|
||
|
* Copyright (c) 2017 - 2019, Intel Corporation.
|
||
|
*/
|
||
|
|
||
|
#ifndef __MPTCP_PROTOCOL_H
|
||
|
#define __MPTCP_PROTOCOL_H
|
||
|
|
||
|
/* MPTCP connection sock */
|
||
|
struct mptcp_sock {
|
||
|
/* inet_connection_sock must be the first member */
|
||
|
struct inet_connection_sock sk;
|
||
|
struct socket *subflow; /* outgoing connect/listener/!mp_capable */
|
||
|
};
|
||
|
|
||
|
static inline struct mptcp_sock *mptcp_sk(const struct sock *sk)
|
||
|
{
|
||
|
return (struct mptcp_sock *)sk;
|
||
|
}
|
||
|
|
||
|
#endif /* __MPTCP_PROTOCOL_H */
|