mptcp: Add MPTCP socket stubs
[linux-2.6-block.git] / net / mptcp / protocol.h
CommitLineData
f870fa0b
MM
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Multipath TCP
3 *
4 * Copyright (c) 2017 - 2019, Intel Corporation.
5 */
6
7#ifndef __MPTCP_PROTOCOL_H
8#define __MPTCP_PROTOCOL_H
9
10/* MPTCP connection sock */
11struct mptcp_sock {
12 /* inet_connection_sock must be the first member */
13 struct inet_connection_sock sk;
14 struct socket *subflow; /* outgoing connect/listener/!mp_capable */
15};
16
17static inline struct mptcp_sock *mptcp_sk(const struct sock *sk)
18{
19 return (struct mptcp_sock *)sk;
20}
21
22#endif /* __MPTCP_PROTOCOL_H */