Zephyr API Documentation
3.6.99
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
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
struct
if_nameindex
{
20
unsigned
int
if_index
;
21
char
*
if_name
;
22
};
23
24
char
*
if_indextoname
(
unsigned
int
ifindex,
char
*ifname);
25
void
if_freenameindex
(
struct
if_nameindex
*ptr);
26
struct
if_nameindex
*
if_nameindex
(
void
);
27
unsigned
int
if_nametoindex
(
const
char
*ifname);
28
29
#ifdef __cplusplus
30
}
31
#endif
32
33
#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:19
if_nameindex::if_index
unsigned int if_index
Definition:
if.h:20
if_nameindex::if_name
char * if_name
Definition:
if.h:21
zephyr
posix
net
if.h
Generated on Thu Jul 4 2024 12:22:48 for Zephyr API Documentation by
1.9.6