1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 17:05:07 +00:00
serenity/Userland/Libraries/LibC/net/if.h
Idan Horowitz 468ae105d8 Kernel+LibC: Stub out if_nameindex() and if_freenameindex()
These should allow users to receive the names of network interfaces in
the system, but for now these are only stubs required to compile some
ports.
2021-12-22 00:02:36 -08:00

18 lines
390 B
C

/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/API/POSIX/net/if.h>
__BEGIN_DECLS
unsigned int if_nametoindex(char const* ifname);
char* if_indextoname(unsigned int ifindex, char* ifname);
struct if_nameindex* if_nameindex();
void if_freenameindex(struct if_nameindex* ptr);
__END_DECLS