-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lwip/if_indextoname_compolation_fix_v5.1' into 'release…
…/v5.1' fix(lwip): Fixed compilation error referencing undefined POSIX interface API (v5.1) See merge request espressif/esp-idf!31407
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include "lwip/if_api.h" | ||
|
||
unsigned int if_nametoindex(const char *ifname) | ||
{ | ||
return lwip_if_nametoindex(ifname); | ||
} | ||
|
||
char *if_indextoname(unsigned int ifindex, char *ifname) | ||
{ | ||
return lwip_if_indextoname(ifindex, ifname); | ||
} |