blob: 15dc12ad30504e391eec32fd5decb67eea2ae69f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <assert.h>
#include <net/if.h>
#include <stdio.h>
int main() {
char name[IF_NAMESIZE];
assert(name == if_indextoname(1, name));
printf("test: name '%s'\n", name);
assert(1 == if_nametoindex(name));
}
|