aboutsummaryrefslogtreecommitdiff
path: root/system/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/net')
-rw-r--r--system/include/net/if.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/system/include/net/if.h b/system/include/net/if.h
new file mode 100644
index 00000000..9a4badf3
--- /dev/null
+++ b/system/include/net/if.h
@@ -0,0 +1,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
+