summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/if.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/net/if.h b/include/net/if.h
new file mode 100644
index 00000000..fcebbc62
--- /dev/null
+++ b/include/net/if.h
@@ -0,0 +1,16 @@
+#ifndef __NET_IF_H__
+#define __NET_IF_H__
+
+struct if_nameindex {
+ unsigned if_index;
+ char *if_name;
+};
+
+#define IF_NAMESIZE 16
+
+void if_freenameindex(struct if_nameindex *);
+char *if_indextoname(unsigned, char *);
+struct if_nameindex *if_nameindex(void);
+unsigned if_nametoindex(const char *);
+
+#endif