1*49cdfc7eSAndroid Build Coastguard Worker // SPDX-License-Identifier: GPL-2.0-or-later 2*49cdfc7eSAndroid Build Coastguard Worker /* 3*49cdfc7eSAndroid Build Coastguard Worker * Copyright (c) 2017 Petr Vorel <[email protected]> 4*49cdfc7eSAndroid Build Coastguard Worker */ 5*49cdfc7eSAndroid Build Coastguard Worker 6*49cdfc7eSAndroid Build Coastguard Worker #ifndef LAPI_TCP_H__ 7*49cdfc7eSAndroid Build Coastguard Worker #define LAPI_TCP_H__ 8*49cdfc7eSAndroid Build Coastguard Worker 9*49cdfc7eSAndroid Build Coastguard Worker #include <netinet/tcp.h> 10*49cdfc7eSAndroid Build Coastguard Worker 11*49cdfc7eSAndroid Build Coastguard Worker #ifndef TCP_FASTOPEN 12*49cdfc7eSAndroid Build Coastguard Worker # define TCP_FASTOPEN 23 13*49cdfc7eSAndroid Build Coastguard Worker #endif 14*49cdfc7eSAndroid Build Coastguard Worker 15*49cdfc7eSAndroid Build Coastguard Worker #ifndef TCP_ULP 16*49cdfc7eSAndroid Build Coastguard Worker # define TCP_ULP 31 17*49cdfc7eSAndroid Build Coastguard Worker #endif 18*49cdfc7eSAndroid Build Coastguard Worker 19*49cdfc7eSAndroid Build Coastguard Worker #ifndef TCP_FASTOPEN_CONNECT 20*49cdfc7eSAndroid Build Coastguard Worker # define TCP_FASTOPEN_CONNECT 30 /* Attempt FastOpen with connect */ 21*49cdfc7eSAndroid Build Coastguard Worker #endif 22*49cdfc7eSAndroid Build Coastguard Worker 23*49cdfc7eSAndroid Build Coastguard Worker #endif /* LAPI_TCP_H__ */ 24