2020-01-18 09:38:21 +01:00
|
|
|
/*
|
2021-08-14 18:06:44 +02:00
|
|
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
2020-01-18 09:38:21 +01:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
2019-09-23 19:06:03 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2021-08-14 18:06:44 +02:00
|
|
|
#include <Kernel/API/POSIX/net/if.h>
|
2022-08-16 01:57:43 +10:00
|
|
|
#include <sys/cdefs.h>
|
2019-09-23 19:06:03 +02:00
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
2021-08-14 18:06:44 +02:00
|
|
|
unsigned int if_nametoindex(char const* ifname);
|
2021-05-09 19:50:26 +02:00
|
|
|
char* if_indextoname(unsigned int ifindex, char* ifname);
|
2022-01-08 15:32:59 +01:00
|
|
|
struct if_nameindex* if_nameindex(void);
|
2021-12-05 01:45:27 +02:00
|
|
|
void if_freenameindex(struct if_nameindex* ptr);
|
2021-05-09 19:50:26 +02:00
|
|
|
|
2019-09-23 19:06:03 +02:00
|
|
|
__END_DECLS
|