From fc00c656c96528112d05cf0edf8631bd5eaea446 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 20:10:31 +0100 Subject: Add build system scaffolding and libc headers --- include/net/if.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/net/if.h (limited to 'include/net') 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 -- cgit v1.2.3