Zephyr API 3.6.99
|
Connection Manager API . More...
Functions | |
void | conn_mgr_mon_resend_status (void) |
Resend either NET_L4_CONNECTED or NET_L4_DISCONNECTED depending on whether connectivity is currently available. | |
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. | |
bool | conn_mgr_is_iface_ignored (struct net_if *iface) |
Check whether the provided iface is currently ignored. | |
void | conn_mgr_ignore_l2 (const struct net_l2 *l2) |
Mark an L2 to be ignored by conn_mgr. | |
void | conn_mgr_watch_l2 (const struct net_l2 *l2) |
Watch (stop ignoring) an L2. | |
Connection Manager API .
void conn_mgr_ignore_iface | ( | struct net_if * | iface | ) |
#include <zephyr/net/conn_mgr_monitor.h>
Mark an iface to be ignored by conn_mgr.
Ignoring an iface forces conn_mgr to consider it unready/disconnected.
This means that events related to the iface connecting/disconnecting will not be fired, and if the iface was connected before being ignored, events will be fired as though it disconnected at that moment.
iface | iface to be ignored. |
void conn_mgr_ignore_l2 | ( | const struct net_l2 * | l2 | ) |
#include <zephyr/net/conn_mgr_monitor.h>
Mark an L2 to be ignored by conn_mgr.
This is a wrapper for conn_mgr_ignore_iface that ignores all ifaces that use the L2.
l2 | L2 to be ignored. |
#include <zephyr/net/conn_mgr_monitor.h>
Check whether the provided iface is currently ignored.
iface | The iface to check. |
true | if the iface is being ignored by conn_mgr. |
false | if the iface is being watched by conn_mgr. |
void conn_mgr_mon_resend_status | ( | void | ) |
#include <zephyr/net/conn_mgr_monitor.h>
Resend either NET_L4_CONNECTED or NET_L4_DISCONNECTED depending on whether connectivity is currently available.
void conn_mgr_watch_iface | ( | struct net_if * | iface | ) |
#include <zephyr/net/conn_mgr_monitor.h>
Watch (stop ignoring) an iface.
conn_mgr will no longer be forced to consider the iface unreadly/disconnected.
Events related to the iface connecting/disconnecting will no longer be blocked, and if the iface was connected before being watched, events will be fired as though it connected in that moment.
All ifaces default to watched at boot.
iface | iface to no longer ignore. |
void conn_mgr_watch_l2 | ( | const struct net_l2 * | l2 | ) |
#include <zephyr/net/conn_mgr_monitor.h>
Watch (stop ignoring) an L2.
This is a wrapper for conn_mgr_watch_iface that watches all ifaces that use the L2.
l2 | L2 to watch. |