Home
last modified time | relevance | path

Searched refs:mgmt_event (Results 1 – 25 of 53) sorted by relevance

123

/Zephyr-latest/subsys/net/ip/
Dnet_mgmt.c54 static void mgmt_run_callbacks(const struct mgmt_event_entry * const mgmt_event);
70 static inline void mgmt_push_event(uint32_t mgmt_event, struct net_if *iface, in mgmt_push_event() argument
89 mgmt_event, length, NET_EVENT_INFO_MAX_SIZE); in mgmt_push_event()
97 new_event.event = mgmt_event; in mgmt_push_event()
105 mgmt_event); in mgmt_push_event()
115 struct mgmt_event_entry mgmt_event; in mgmt_event_work_handler() local
119 while (k_msgq_get(&event_msgq, &mgmt_event, K_NO_WAIT) == 0) { in mgmt_event_work_handler()
122 mgmt_run_callbacks(&mgmt_event); in mgmt_event_work_handler()
138 const struct mgmt_event_entry mgmt_event = { in mgmt_push_event() local
147 mgmt_run_callbacks(&mgmt_event); in mgmt_push_event()
[all …]
Dipv4_autoconf.c58 uint32_t mgmt_event, struct net_if *iface) in acd_event_handler() argument
72 if (mgmt_event != NET_EVENT_IPV4_ACD_SUCCEED && in acd_event_handler()
73 mgmt_event != NET_EVENT_IPV4_ACD_FAILED && in acd_event_handler()
74 mgmt_event != NET_EVENT_IPV4_ACD_CONFLICT) { in acd_event_handler()
88 switch (mgmt_event) { in acd_event_handler()
/Zephyr-latest/subsys/net/conn_mgr/
Devents_handler.c22 uint32_t mgmt_event, in conn_mgr_iface_events_handler() argument
27 NET_DBG("%s event 0x%x received on iface %d (%p)", "Iface", mgmt_event, in conn_mgr_iface_events_handler()
30 if ((mgmt_event & CONN_MGR_IFACE_EVENTS_MASK) != mgmt_event) { in conn_mgr_iface_events_handler()
40 switch (NET_MGMT_GET_COMMAND(mgmt_event)) { in conn_mgr_iface_events_handler()
58 uint32_t mgmt_event, in conn_mgr_ipv6_events_handler() argument
63 NET_DBG("%s event 0x%x received on iface %d (%p)", "IPv6", mgmt_event, in conn_mgr_ipv6_events_handler()
66 if ((mgmt_event & CONN_MGR_IPV6_EVENTS_MASK) != mgmt_event) { in conn_mgr_ipv6_events_handler()
76 switch (NET_MGMT_GET_COMMAND(mgmt_event)) { in conn_mgr_ipv6_events_handler()
104 uint32_t mgmt_event, in conn_mgr_ipv6_events_handler() argument
108 ARG_UNUSED(mgmt_event); in conn_mgr_ipv6_events_handler()
[all …]
Dconn_mgr_connectivity.c321 static void conn_mgr_conn_iface_handler(struct net_mgmt_event_callback *cb, uint32_t mgmt_event, in conn_mgr_conn_iface_handler() argument
324 if ((mgmt_event & CONN_MGR_CONN_IFACE_EVENTS_MASK) != mgmt_event) { in conn_mgr_conn_iface_handler()
328 switch (mgmt_event) { in conn_mgr_conn_iface_handler()
339 static void conn_mgr_conn_self_handler(struct net_mgmt_event_callback *cb, uint32_t mgmt_event, in conn_mgr_conn_self_handler() argument
342 if ((mgmt_event & CONN_MGR_CONN_SELF_EVENTS_MASK) != mgmt_event) { in conn_mgr_conn_self_handler()
346 switch (NET_MGMT_GET_COMMAND(mgmt_event)) { in conn_mgr_conn_self_handler()
/Zephyr-latest/samples/net/mqtt_sn_publisher/src/
Dmain.c33 static void net_event_handler(struct net_mgmt_event_callback *cb, uint32_t mgmt_event, in net_event_handler() argument
36 if ((mgmt_event & EVENT_MASK) != mgmt_event) { in net_event_handler()
40 if (mgmt_event == NET_EVENT_L4_CONNECTED) { in net_event_handler()
48 if (mgmt_event == NET_EVENT_L4_DISCONNECTED) { in net_event_handler()
/Zephyr-latest/samples/subsys/mgmt/updatehub/src/
Dmain.c66 uint32_t mgmt_event, struct net_if *iface) in event_handler() argument
68 if ((mgmt_event & EVENT_MASK) != mgmt_event) { in event_handler()
72 if (mgmt_event == NET_EVENT_L4_CONNECTED) { in event_handler()
78 if (mgmt_event == NET_EVENT_L4_DISCONNECTED) { in event_handler()
/Zephyr-latest/samples/net/sockets/echo_client/src/
Decho-client.c232 uint32_t mgmt_event, struct net_if *iface) in ipv6_event_handler() argument
240 if ((mgmt_event & IPV6_EVENT_MASK) != mgmt_event) { in ipv6_event_handler()
249 if (mgmt_event == NET_EVENT_IPV6_ADDR_ADD) { in ipv6_event_handler()
277 if (mgmt_event == NET_EVENT_IPV6_ADDR_DEPRECATED) { in ipv6_event_handler()
300 uint32_t mgmt_event, struct net_if *iface) in event_handler() argument
302 if ((mgmt_event & EVENT_MASK) != mgmt_event) { in event_handler()
306 if (mgmt_event == NET_EVENT_L4_CONNECTED) { in event_handler()
320 if (mgmt_event == NET_EVENT_L4_DISCONNECTED) { in event_handler()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Decho-server.c85 uint32_t mgmt_event, struct net_if *iface) in event_handler() argument
90 if ((mgmt_event & EVENT_MASK) != mgmt_event) { in event_handler()
99 if (mgmt_event == NET_EVENT_L4_CONNECTED) { in event_handler()
108 if (mgmt_event == NET_EVENT_L4_DISCONNECTED) { in event_handler()
/Zephyr-latest/include/zephyr/net/
Dnet_mgmt.h136 uint32_t mgmt_event,
199 typedef void (*net_mgmt_event_static_handler_t)(uint32_t mgmt_event,
291 void net_mgmt_event_notify_with_info(uint32_t mgmt_event, struct net_if *iface,
304 static inline void net_mgmt_event_notify(uint32_t mgmt_event, in net_mgmt_event_notify() argument
307 net_mgmt_event_notify_with_info(mgmt_event, iface, NULL, 0); in net_mgmt_event_notify()
/Zephyr-latest/samples/net/capture/src/
Dmain.c288 uint32_t mgmt_event, struct net_if *iface) in event_handler() argument
293 if ((mgmt_event & EVENT_MASK) != mgmt_event) { in event_handler()
297 if (mgmt_event == NET_EVENT_CAPTURE_STARTED) { in event_handler()
301 if (mgmt_event == NET_EVENT_CAPTURE_STOPPED) { in event_handler()
/Zephyr-latest/samples/net/sockets/coap_server/src/
Devents.c16 void coap_event_handler(uint32_t mgmt_event, struct net_if *iface, in coap_event_handler() argument
22 switch (mgmt_event) { in coap_event_handler()
/Zephyr-latest/subsys/net/lib/config/
Dinit.c105 uint32_t mgmt_event, in ipv4_addr_add_handler() argument
108 if (mgmt_event == NET_EVENT_IPV4_ADDR_ADD) { in ipv4_addr_add_handler()
116 if (mgmt_event == NET_EVENT_IPV4_ACD_SUCCEED) { in ipv4_addr_add_handler()
247 uint32_t mgmt_event, struct net_if *iface) in ipv6_event_handler() argument
256 if (mgmt_event == NET_EVENT_IPV6_ADDR_ADD) { in ipv6_event_handler()
268 if (mgmt_event == NET_EVENT_IPV6_DAD_SUCCEED) { in ipv6_event_handler()
305 if (mgmt_event == NET_EVENT_IPV6_ROUTER_ADD) { in ipv6_event_handler()
366 uint32_t mgmt_event, struct net_if *iface) in iface_up_handler() argument
368 if (mgmt_event == NET_EVENT_IF_UP) { in iface_up_handler()
/Zephyr-latest/samples/net/ipv4_autoconf/src/
Dmain.c28 uint32_t mgmt_event, in handler() argument
39 if (mgmt_event != NET_EVENT_IPV4_ADDR_ADD) { in handler()
/Zephyr-latest/samples/net/cloud/tagoio_http_post/src/
Dwifi.c29 uint32_t mgmt_event, struct net_if *iface) in wifi_mgmt_event_handler() argument
31 switch (mgmt_event) { in wifi_mgmt_event_handler()
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_mgmt.rst100 uint32_t mgmt_event,
103 if (mgmt_event == NET_EVENT_IF_xxx) {
105 } else if (mgmt_event == NET_EVENT_IF_yyy) {
107 } else if (mgmt_event == NET_EVENT_IPV4_xxx) {
109 } else if (mgmt_event == NET_EVENT_IPV4_yyy) {
142 static void event_handler(uint32_t mgmt_event, struct net_if *iface,
146 if (mgmt_event == NET_EVENT_IF_xxx) {
148 } else if (mgmt_event == NET_EVENT_IF_yyy) {
150 } else if (mgmt_event == NET_EVENT_IPV4_xxx) {
152 } else if (mgmt_event == NET_EVENT_IPV4_yyy) {
[all …]
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/
Dmain.c33 uint32_t mgmt_event, struct net_if *iface) in net_l4_evt_handler() argument
35 switch (mgmt_event) { in net_l4_evt_handler()
/Zephyr-latest/samples/net/dhcpv4_client/src/
Dmain.c41 uint32_t mgmt_event, in handler() argument
46 if (mgmt_event != NET_EVENT_IPV4_ADDR_ADD) { in handler()
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/src/
Dmain.c101 uint32_t mgmt_event, struct net_if *iface) in event_handler() argument
103 if ((mgmt_event & EVENT_MASK) != mgmt_event) { in event_handler()
112 if (mgmt_event == NET_EVENT_L4_CONNECTED) { in event_handler()
121 if (mgmt_event == NET_EVENT_L4_DISCONNECTED) { in event_handler()
/Zephyr-latest/samples/boards/nxp/s32/netc/src/
Dmain.c72 uint32_t mgmt_event, struct net_if *iface) in iface_up_handler() argument
74 if (mgmt_event == NET_EVENT_IF_UP) { in iface_up_handler()
/Zephyr-latest/tests/net/mgmt/src/
Dmgmt.c70 static void test_mgmt_event_handler(uint32_t mgmt_event, struct net_if *iface, void *info, in test_mgmt_event_handler() argument
77 TC_PRINT("\t\tReceived static event 0x%08X\n", mgmt_event); in test_mgmt_event_handler()
93 rx_event = mgmt_event; in test_mgmt_event_handler()
429 uint32_t mgmt_event, struct net_if *iface) in net_mgmt_event_handler() argument
435 ARG_UNUSED(mgmt_event); in net_mgmt_event_handler()
/Zephyr-latest/subsys/net/l2/ethernet/lldp/
Dlldp.c231 static int lldp_start(struct net_if *iface, uint32_t mgmt_event) in lldp_start() argument
250 if (mgmt_event == NET_EVENT_IF_DOWN) { in lldp_start()
259 } else if (mgmt_event == NET_EVENT_IF_UP) { in lldp_start()
316 uint32_t mgmt_event, struct net_if *iface) in iface_event_handler() argument
318 lldp_start(iface, mgmt_event); in iface_event_handler()
/Zephyr-latest/samples/net/sockets/coap_download/src/
Dmain.c24 static void net_event_handler(uint32_t mgmt_event, struct net_if *iface, void *info, in net_event_handler() argument
27 if (NET_EVENT_L4_CONNECTED == mgmt_event) { in net_event_handler()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c490 uint32_t mgmt_event, struct net_if *iface) in l4_event_handler() argument
492 if ((mgmt_event & L4_EVENT_MASK) != mgmt_event) { in l4_event_handler()
496 if (mgmt_event == NET_EVENT_L4_CONNECTED) { in l4_event_handler()
503 if (mgmt_event == NET_EVENT_L4_DISCONNECTED) { in l4_event_handler()
/Zephyr-latest/drivers/wifi/simplelink/
Dsimplelink_support.h37 typedef void (*simplelink_wifi_cb_t)(uint32_t mgmt_event,
/Zephyr-latest/samples/net/wifi/apsta_mode/src/
Dmain.c39 static void wifi_event_handler(struct net_mgmt_event_callback *cb, uint32_t mgmt_event, in wifi_event_handler() argument
42 switch (mgmt_event) { in wifi_event_handler()

123