| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include <linux/if.h> /* IWYU pragma: export */ |
| 5 |
|
| 6 |
#define IF_NAMESIZE 16 |
| 7 |
|
| 8 |
extern unsigned int if_nametoindex(const char *__ifname); |
| 9 |
extern char *if_indextoname(unsigned int __ifindex, char __ifname[IF_NAMESIZE]); |