diff options
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/options.c b/src/options.c index 55b65a7..8ac2a14 100644 --- a/src/options.c +++ b/src/options.c | |||
@@ -285,14 +285,6 @@ static int opt_ip6_setmembership(lua_State *L, p_socket ps, int level, int name) | |||
285 | if (!lua_isnil(L, -1)) { | 285 | if (!lua_isnil(L, -1)) { |
286 | if (lua_isnumber(L, -1)) { | 286 | if (lua_isnumber(L, -1)) { |
287 | val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1); | 287 | val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1); |
288 | #if 0 | ||
289 | } else if (lua_isstring(L, -1)) { | ||
290 | if (!(val.ipv6mr_interface = if_nametoindex(lua_tostring(L, -1)))) { | ||
291 | lua_pushnil(L); | ||
292 | lua_pushstring(L, "nonexistent interface"); | ||
293 | return 2; | ||
294 | } | ||
295 | #endif | ||
296 | } else | 288 | } else |
297 | luaL_argerror(L, -1, "number 'interface' field expected"); | 289 | luaL_argerror(L, -1, "number 'interface' field expected"); |
298 | } | 290 | } |