diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inet.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -16,7 +16,7 @@ | |||
16 | * Internal function prototypes. | 16 | * Internal function prototypes. |
17 | \*=========================================================================*/ | 17 | \*=========================================================================*/ |
18 | static int inet_global_toip(lua_State *L); | 18 | static int inet_global_toip(lua_State *L); |
19 | static int inet_global_toip6(lua_State *L); | 19 | static int inet_global_getaddrinfo(lua_State *L); |
20 | static int inet_global_tohostname(lua_State *L); | 20 | static int inet_global_tohostname(lua_State *L); |
21 | static void inet_pushresolved(lua_State *L, struct hostent *hp); | 21 | static void inet_pushresolved(lua_State *L, struct hostent *hp); |
22 | static int inet_global_gethostname(lua_State *L); | 22 | static int inet_global_gethostname(lua_State *L); |
@@ -24,7 +24,7 @@ static int inet_global_gethostname(lua_State *L); | |||
24 | /* DNS functions */ | 24 | /* DNS functions */ |
25 | static luaL_reg func[] = { | 25 | static luaL_reg func[] = { |
26 | { "toip", inet_global_toip}, | 26 | { "toip", inet_global_toip}, |
27 | { "toip6", inet_global_toip6}, | 27 | { "getaddrinfo", inet_global_getaddrinfo}, |
28 | { "tohostname", inet_global_tohostname}, | 28 | { "tohostname", inet_global_tohostname}, |
29 | { "gethostname", inet_global_gethostname}, | 29 | { "gethostname", inet_global_gethostname}, |
30 | { NULL, NULL} | 30 | { NULL, NULL} |
@@ -97,7 +97,7 @@ static int inet_global_toip(lua_State *L) | |||
97 | return 2; | 97 | return 2; |
98 | } | 98 | } |
99 | 99 | ||
100 | static int inet_global_toip6(lua_State *L) | 100 | static int inet_global_getaddrinfo(lua_State *L) |
101 | { | 101 | { |
102 | const char *hostname = luaL_checkstring(L, 1); | 102 | const char *hostname = luaL_checkstring(L, 1); |
103 | struct addrinfo *iterator = NULL, *resolved = NULL; | 103 | struct addrinfo *iterator = NULL, *resolved = NULL; |