summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/socket_getifidx.c
blob: 452d6d7c7b48d20830d0065fc254c4062708966c (plain)
1
2
3
4
5
6
7
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);
}