diff options
author | Steven Barth <steven@midlink.org> | 2009-04-26 19:10:36 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-04-26 19:10:36 +0000 |
commit | d81b3548a92a7a9db95d2587d6d15aebdc9b8652 (patch) | |
tree | 0ce5776c20b7864c8275fe582e738552cc8ae8e2 /libs/nixio/src/nixio.h | |
parent | a8da3a09a3fb34327cf02306726dad640e309f20 (diff) |
nixio:
Added binding for getifaddrs(): List network interfaces, their flags,
addresses and statistics
Cleanups
Diffstat (limited to 'libs/nixio/src/nixio.h')
-rw-r--r-- | libs/nixio/src/nixio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/nixio/src/nixio.h b/libs/nixio/src/nixio.h index 8caa5b969..0c43cfe8a 100644 --- a/libs/nixio/src/nixio.h +++ b/libs/nixio/src/nixio.h @@ -33,6 +33,7 @@ typedef struct nixio_address { int family; char host[128]; int port; + int prefix; } nixio_addr; int nixio__perror(lua_State *L); @@ -47,7 +48,6 @@ int nixio__pstatus(lua_State *L, int condition); #include <arpa/inet.h> #include <netinet/in.h> #include <netinet/tcp.h> -#include <net/if.h> #include <sys/un.h> #include <netdb.h> #include <poll.h> @@ -90,6 +90,8 @@ int nixio__mode_write(int mode, char *modestr); int nixio__push_stat(lua_State *L, nixio_stat_t *buf); +const char nixio__bin2hex[16]; + /* Module functions */ void nixio_open_file(lua_State *L); void nixio_open_socket(lua_State *L); |