summaryrefslogtreecommitdiff
path: root/include/net/if.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/net/if.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/net/if.h')
-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