Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
net_config.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) 2017 Intel Corporation
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10
11#ifndef ZEPHYR_INCLUDE_NET_NET_CONFIG_H_
12#define ZEPHYR_INCLUDE_NET_NET_CONFIG_H_
13
14#include <zephyr/types.h>
15#include <device.h>
16#include <net/net_if.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
29/* Flags that tell what kind of functionality is needed by the client. */
35#define NET_CONFIG_NEED_ROUTER 0x00000001
36
41#define NET_CONFIG_NEED_IPV6 0x00000002
42
47#define NET_CONFIG_NEED_IPV4 0x00000004
48
62int net_config_init(const char *app_info, uint32_t flags, int32_t timeout);
63
79int net_config_init_by_iface(struct net_if *iface, const char *app_info,
81
97int net_config_init_app(const struct device *dev, const char *app_info);
98
103#ifdef __cplusplus
104}
105#endif
106
107#endif /* ZEPHYR_INCLUDE_NET_NET_CONFIG_H_ */
ZTEST_BMEM int timeout
Definition: main.c:31
int net_config_init(const char *app_info, uint32_t flags, int32_t timeout)
Initialize this network application.
int net_config_init_app(const struct device *dev, const char *app_info)
Initialize this network application.
int net_config_init_by_iface(struct net_if *iface, const char *app_info, uint32_t flags, int32_t timeout)
Initialize this network application using a specific network interface.
flags
Definition: http_parser.h:131
Public API for network interface.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__INT32_TYPE__ int32_t
Definition: stdint.h:44
Runtime device structure (in ROM) per driver instance.
Definition: device.h:367
Network Interface structure.
Definition: net_if.h:468