diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2011-06-14 02:47:43 +0200 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:33:34 -0700 |
commit | f871a29f27ea28dea480d0e061a6d6ec1670384b (patch) | |
tree | 04166246bc1f890eae702312428fe74b285afe06 /src/options.c | |
parent | 4df1618aaba49a35d5a262970b3f4773dcd0ee25 (diff) | |
download | luasocket-f871a29f27ea28dea480d0e061a6d6ec1670384b.tar.gz luasocket-f871a29f27ea28dea480d0e061a6d6ec1670384b.tar.bz2 luasocket-f871a29f27ea28dea480d0e061a6d6ec1670384b.zip |
Add support for the IPV6_V6ONLY socket option defaulting to on.
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c index 1f5afa8..281a00f 100644 --- a/src/options.c +++ b/src/options.c | |||
@@ -154,6 +154,11 @@ int opt_set_ip_drop_membersip(lua_State *L, p_socket ps) | |||
154 | return opt_setmembership(L, ps, IPPROTO_IP, IP_DROP_MEMBERSHIP); | 154 | return opt_setmembership(L, ps, IPPROTO_IP, IP_DROP_MEMBERSHIP); |
155 | } | 155 | } |
156 | 156 | ||
157 | int opt_set_ip6_v6only(lua_State *L, p_socket ps) | ||
158 | { | ||
159 | return opt_setboolean(L, ps, IPPROTO_IPV6, IPV6_V6ONLY); | ||
160 | } | ||
161 | |||
157 | /*=========================================================================*\ | 162 | /*=========================================================================*\ |
158 | * Auxiliar functions | 163 | * Auxiliar functions |
159 | \*=========================================================================*/ | 164 | \*=========================================================================*/ |