blob: c71fc48af8ecd318bb5c98723ff8e090f2f59c0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include "socket.h"
#include "haven2i.h"
uint32 socket_getifidx(const char* ifname) {
#ifdef HAVE_N2I
return if_nametoindex(ifname);
#else
return 0;
#endif
}
|