ucspi-ssl  0.99e
TLS encryption for IPv6 communication
socket_getifname.c
Go to the documentation of this file.
1 #include <sys/types.h>
2 #include <sys/socket.h>
3 #include <net/if.h>
4 #include "socket.h"
5 
6 static char ifname[IFNAMSIZ];
7 
8 const char* socket_getifname(uint32 interface) {
9  char *tmp=if_indextoname(interface,ifname);
10  if (tmp)
11  return tmp;
12  else
13  return "[unknown]";
14 }
const char * socket_getifname(uint32 interface)