diff options
author | John Denker <jsd@av8n.com> | 2012-07-31 22:34:58 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-31 22:36:28 -0700 |
commit | ef6722750b4518fcb29bf983755b5f02451ef224 (patch) | |
tree | 966e94ffd01cd8abb59e16a6992e142db345aa9f /ucspi-tcp-0.88/socket_getifidx.c | |
parent | b95f5ec1d83519c603f6e2145865c14932c4a813 (diff) |
a bunch of files added by the ipv6 patch
Diffstat (limited to 'ucspi-tcp-0.88/socket_getifidx.c')
-rw-r--r-- | ucspi-tcp-0.88/socket_getifidx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/socket_getifidx.c b/ucspi-tcp-0.88/socket_getifidx.c new file mode 100644 index 0000000..452d6d7 --- /dev/null +++ b/ucspi-tcp-0.88/socket_getifidx.c @@ -0,0 +1,8 @@ +#include <sys/types.h> +#include <sys/socket.h> +#include <net/if.h> +#include "socket.h" + +uint32 socket_getifidx(const char* ifname) { + return if_nametoindex(ifname); +} |