Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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 <zephyr/device.h>
16#include <zephyr/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,
80 uint32_t flags, int32_t timeout);
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_ */
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.
Public API for network interface.
flags
Definition: parser.h:96
__UINT32_TYPE__ uint32_t
Definition: stdint.h:90
__INT32_TYPE__ int32_t
Definition: stdint.h:74
Runtime device structure (in ROM) per driver instance.
Definition: device.h:399
Network Interface structure.
Definition: net_if.h:675