aboutsummaryrefslogtreecommitdiff
path: root/system/include/net/if.h
blob: 9a4badf31e9fd85877b2ac8dca7255a32c872e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _NET_IF_H
#define _NET_IF_H

#ifdef __cplusplus
extern "C" {
#endif

struct if_nameindex {
  unsigned  if_index;
  char     *if_name;
};

#define IF_NAMESIZE abort(0);

unsigned             if_nametoindex(const char *a);
char                *if_indextoname(unsigned int a, char *b);
struct if_nameindex *if_nameindex();
void                 if_freenameindex(struct if_nameindex *a);

#ifdef __cplusplus
}
#endif

#endif