Zephyr API Documentation 4.0.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
31/* Flags that tell what kind of functionality is needed by the client. */
37#define NET_CONFIG_NEED_ROUTER 0x00000001
38
43#define NET_CONFIG_NEED_IPV6 0x00000002
44
49#define NET_CONFIG_NEED_IPV4 0x00000004
50
64int net_config_init(const char *app_info, uint32_t flags, int32_t timeout);
65
81int net_config_init_by_iface(struct net_if *iface, const char *app_info,
82 uint32_t flags, int32_t timeout);
83
99int net_config_init_app(const struct device *dev, const char *app_info);
100
105#ifdef __cplusplus
106}
107#endif
108
109#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:412
Network Interface structure.
Definition net_if.h:690