13#ifndef ZEPHYR_INCLUDE_CONN_MGR_CONNECTIVITY_H_ 
   14#define ZEPHYR_INCLUDE_CONN_MGR_CONNECTIVITY_H_ 
   36#define _NET_MGMT_CONN_LAYER                    NET_MGMT_LAYER(NET_MGMT_LAYER_L2) 
   37#define _NET_MGMT_CONN_CODE                     NET_MGMT_LAYER_CODE(0x207) 
   38#define _NET_MGMT_CONN_BASE                     (_NET_MGMT_CONN_LAYER | _NET_MGMT_CONN_CODE | \ 
   40#define _NET_MGMT_CONN_IF_EVENT                 (NET_MGMT_IFACE_BIT | _NET_MGMT_CONN_BASE) 
   52#define NET_EVENT_CONN_IF_TIMEOUT                                       \ 
   53        (_NET_MGMT_CONN_IF_EVENT | NET_EVENT_CONN_CMD_IF_TIMEOUT) 
 
   58#define NET_EVENT_CONN_IF_FATAL_ERROR                                   \ 
   59        (_NET_MGMT_CONN_IF_EVENT | NET_EVENT_CONN_CMD_IF_FATAL_ERROR) 
 
   92        CONN_MGR_NUM_IF_FLAGS,
 
 
   99#define CONN_MGR_IF_NO_TIMEOUT 0 
ZTEST_BMEM int timeout
Definition main.c:31
 
int conn_mgr_all_if_disconnect(bool skip_ignored)
Convenience function that disconnects all available ifaces that support connectivity without putting ...
 
int conn_mgr_all_if_connect(bool skip_ignored)
Convenience function that takes all available ifaces into the admin-up state, and connects those that...
 
int conn_mgr_all_if_up(bool skip_ignored)
Convenience function that takes all available ifaces into the admin-up state.
 
int conn_mgr_all_if_down(bool skip_ignored)
Convenience function that takes all available ifaces into the admin-down state.
 
bool conn_mgr_if_is_bound(struct net_if *iface)
Check whether the provided network interface supports connectivity / has been bound to a connectivity...
 
int conn_mgr_if_set_opt(struct net_if *iface, int optname, const void *optval, size_t optlen)
Set implementation-specific connectivity options.
 
bool conn_mgr_if_get_flag(struct net_if *iface, enum conn_mgr_if_flag flag)
Check the value of connectivity flags.
 
int conn_mgr_if_set_timeout(struct net_if *iface, int timeout)
Set the connectivity timeout for an iface.
 
int conn_mgr_if_connect(struct net_if *iface)
Connect interface.
 
int conn_mgr_if_get_opt(struct net_if *iface, int optname, void *optval, size_t *optlen)
Get implementation-specific connectivity options.
 
net_event_conn_cmd
Definition conn_mgr_connectivity.h:44
 
int conn_mgr_if_disconnect(struct net_if *iface)
Disconnect interface.
 
int conn_mgr_if_get_timeout(struct net_if *iface)
Get the connectivity timeout for an iface.
 
int conn_mgr_if_set_flag(struct net_if *iface, enum conn_mgr_if_flag flag, bool value)
Set the value of a connectivity flags.
 
conn_mgr_if_flag
Per-iface connectivity flags.
Definition conn_mgr_connectivity.h:65
 
@ NET_EVENT_CONN_CMD_IF_TIMEOUT
Definition conn_mgr_connectivity.h:45
 
@ NET_EVENT_CONN_CMD_IF_FATAL_ERROR
Definition conn_mgr_connectivity.h:46
 
@ CONN_MGR_IF_PERSISTENT
Persistent.
Definition conn_mgr_connectivity.h:72
 
@ CONN_MGR_IF_NO_AUTO_DOWN
No auto-down.
Definition conn_mgr_connectivity.h:88
 
@ CONN_MGR_IF_NO_AUTO_CONNECT
No auto-connect.
Definition conn_mgr_connectivity.h:80
 
Public API for network interface.
 
Network Management API public header.
 
static ZTEST_DMEM int flag
Definition main.c:26
 
Network Interface structure.
Definition net_if.h:595