ucspi-ssl
0.99e
TLS encryption for IPv6 communication
ucspi-ssl-0.99e
src
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
}
socket_getifname
const char * socket_getifname(uint32 interface)
Definition:
socket_getifname.c:8
socket.h
Generated on Wed Jul 11 2018 22:50:46 for ucspi-ssl by
1.8.13