diff options
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c index 51ea351..3280c51 100644 --- a/src/options.c +++ b/src/options.c | |||
@@ -207,6 +207,15 @@ int opt_set_tcp_fastopen_connect(lua_State *L, p_socket ps) | |||
207 | #endif | 207 | #endif |
208 | 208 | ||
209 | /*------------------------------------------------------*/ | 209 | /*------------------------------------------------------*/ |
210 | |||
211 | #ifdef TCP_DEFER_ACCEPT | ||
212 | int opt_set_tcp_defer_accept(lua_State *L, p_socket ps) | ||
213 | { | ||
214 | return opt_setint(L, ps, IPPROTO_TCP, TCP_DEFER_ACCEPT); | ||
215 | } | ||
216 | #endif | ||
217 | |||
218 | /*------------------------------------------------------*/ | ||
210 | int opt_set_ip6_unicast_hops(lua_State *L, p_socket ps) | 219 | int opt_set_ip6_unicast_hops(lua_State *L, p_socket ps) |
211 | { | 220 | { |
212 | return opt_setint(L, ps, IPPROTO_IPV6, IPV6_UNICAST_HOPS); | 221 | return opt_setint(L, ps, IPPROTO_IPV6, IPV6_UNICAST_HOPS); |