Zephyr API Documentation
4.4.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
if.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Linaro Limited
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
#ifndef ZEPHYR_INCLUDE_POSIX_NET_IF_H_
7
#define ZEPHYR_INCLUDE_POSIX_NET_IF_H_
8
9
#ifdef CONFIG_NET_INTERFACE_NAME_LEN
10
#define IF_NAMESIZE CONFIG_NET_INTERFACE_NAME_LEN
11
#else
12
#define IF_NAMESIZE 1
13
#endif
14
15
#if !defined(IFNAMSIZ)
16
#define IFNAMSIZ IF_NAMESIZE
17
#endif
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
23
struct
if_nameindex
{
24
unsigned
int
if_index
;
25
char
*
if_name
;
26
};
27
28
char
*
if_indextoname
(
unsigned
int
ifindex,
char
*ifname);
29
void
if_freenameindex
(
struct
if_nameindex
*ptr);
30
struct
if_nameindex
*
if_nameindex
(
void
);
31
unsigned
int
if_nametoindex
(
const
char
*ifname);
32
33
#ifdef __cplusplus
34
}
35
#endif
36
37
#endif
/* ZEPHYR_INCLUDE_POSIX_NET_IF_H_ */
if_freenameindex
void if_freenameindex(struct if_nameindex *ptr)
if_indextoname
char * if_indextoname(unsigned int ifindex, char *ifname)
if_nametoindex
unsigned int if_nametoindex(const char *ifname)
if_nameindex
Definition
if.h:23
if_nameindex::if_index
unsigned int if_index
Definition
if.h:24
if_nameindex::if_name
char * if_name
Definition
if.h:25
zephyr
posix
net
if.h
Generated on Mon Aug 3 2026 10:12:00 for Zephyr API Documentation by
1.9.8