blob: ff79a90171a75ae49faa1e666d531f8ceea62899 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibC/errno.h>
#include <LibC/net/if.h>
#include <LibC/netinet/in.h>
in6_addr in6addr_any = IN6ADDR_ANY_INIT;
unsigned int if_nametoindex([[maybe_unused]] const char* ifname)
{
errno = ENODEV;
return -1;
}
char* if_indextoname([[maybe_unused]] unsigned int ifindex, [[maybe_unused]] char* ifname)
{
errno = ENXIO;
return nullptr;
}
|