blob: b2a5a29ce3b179950c89c4456e72cad321f28859 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/net_if.h.html
#include "core.h"
#include <net/if.h>
TEST(net_if_h)
{
TYPE(struct if_nameindex);
STRUCT_MEMBER(struct if_nameindex, unsigned, if_index);
STRUCT_MEMBER(struct if_nameindex, char *, if_name);
MACRO(IF_NAMESIZE);
FUNCTION(if_freenameindex, FN(void, struct if_nameindex *));
FUNCTION(if_indextoname, FN(char *, unsigned, char *));
FUNCTION(if_nameindex, FN(struct if_nameindex *));
FUNCTION(if_nametoindex, FN(unsigned, const char *));
}
|