Zephyr API Documentation  3.6.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
28struct net_if;
29struct net_l2;
30
36
48void conn_mgr_ignore_iface(struct net_if *iface);
49
63void conn_mgr_watch_iface(struct net_if *iface);
64
73
81void conn_mgr_ignore_l2(const struct net_l2 *l2);
82
90void conn_mgr_watch_l2(const struct net_l2 *l2);
91
96#else
97
98#define conn_mgr_mon_resend_status(...)
99#define conn_mgr_ignore_iface(...)
100#define conn_mgr_watch_iface(...)
101#define conn_mgr_ignore_l2(...)
102#define conn_mgr_watch_l2(...)
103
104#endif /* CONFIG_NET_CONNECTION_MANAGER */
105
106#ifdef __cplusplus
107}
108#endif
109
110#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:678
Network L2 structure.
Definition: net_l2.h:55