Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
conn_mgr_monitor.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_CONN_MGR_H_
13#define ZEPHYR_INCLUDE_CONN_MGR_H_
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#if defined(CONFIG_NET_CONNECTION_MANAGER) || defined(__DOXYGEN__)
20
30struct net_if;
31struct net_l2;
32
38
50void conn_mgr_ignore_iface(struct net_if *iface);
51
65void conn_mgr_watch_iface(struct net_if *iface);
66
75
83void conn_mgr_ignore_l2(const struct net_l2 *l2);
84
92void conn_mgr_watch_l2(const struct net_l2 *l2);
93
98#else
99
100#define conn_mgr_mon_resend_status(...)
101#define conn_mgr_ignore_iface(...)
102#define conn_mgr_watch_iface(...)
103#define conn_mgr_ignore_l2(...)
104#define conn_mgr_watch_l2(...)
105
106#endif /* CONFIG_NET_CONNECTION_MANAGER */
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif /* ZEPHYR_INCLUDE_CONN_MGR_H_ */
void conn_mgr_ignore_l2(const struct net_l2 *l2)
Mark an L2 to be ignored by conn_mgr.
void conn_mgr_ignore_iface(struct net_if *iface)
Mark an iface to be ignored by conn_mgr.
void conn_mgr_watch_iface(struct net_if *iface)
Watch (stop ignoring) an iface.
void conn_mgr_mon_resend_status(void)
Resend either NET_L4_CONNECTED or NET_L4_DISCONNECTED depending on whether connectivity is currently ...
void conn_mgr_watch_l2(const struct net_l2 *l2)
Watch (stop ignoring) an L2.
bool conn_mgr_is_iface_ignored(struct net_if *iface)
Check whether the provided iface is currently ignored.
Network Interface structure.
Definition net_if.h:692
Network L2 structure.
Definition net_l2.h:58