You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
407 B
25 lines
407 B
|
5 years ago
|
#ifndef _NET_IF_H
|
||
|
|
#define _NET_IF_H 1
|
||
|
|
|
||
|
|
#define IF_NAMESIZE 16
|
||
|
|
|
||
|
|
struct if_nameindex {
|
||
|
4 years ago
|
unsigned int if_index;
|
||
|
|
char *if_name;
|
||
|
5 years ago
|
};
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
unsigned int if_nametoindex(const char *__ifname);
|
||
|
|
char *if_indextoname(unsigned int __ifindex, char *__ifname);
|
||
|
|
struct if_nameindex *if_nameindex();
|
||
|
|
void if_freenameindex(struct if_nameindex *__ptr);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|