hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/net/mptcp.h
....@@ -58,8 +58,6 @@
5858 };
5959
6060 #ifdef CONFIG_MPTCP
61
-extern struct request_sock_ops mptcp_subflow_request_sock_ops;
62
-
6361 void mptcp_init(void);
6462
6563 static inline bool sk_is_mptcp(const struct sock *sk)
....@@ -133,6 +131,9 @@
133131 int mptcp_subflow_init_cookie_req(struct request_sock *req,
134132 const struct sock *sk_listener,
135133 struct sk_buff *skb);
134
+struct request_sock *mptcp_subflow_reqsk_alloc(const struct request_sock_ops *ops,
135
+ struct sock *sk_listener,
136
+ bool attach_listener);
136137 #else
137138
138139 static inline void mptcp_init(void)
....@@ -208,6 +209,13 @@
208209 {
209210 return 0; /* TCP fallback */
210211 }
212
+
213
+static inline struct request_sock *mptcp_subflow_reqsk_alloc(const struct request_sock_ops *ops,
214
+ struct sock *sk_listener,
215
+ bool attach_listener)
216
+{
217
+ return NULL;
218
+}
211219 #endif /* CONFIG_MPTCP */
212220
213221 #if IS_ENABLED(CONFIG_MPTCP_IPV6)