Home
last modified time | relevance | path

Searched refs:NET_ASSERT (Results 1 – 25 of 38) sorted by relevance

12

/Zephyr-latest/include/zephyr/net/
Dnet_offload.h150 NET_ASSERT(iface); in net_offload_get()
151 NET_ASSERT(net_if_offload(iface)); in net_offload_get()
152 NET_ASSERT(net_if_offload(iface)->get); in net_offload_get()
175 NET_ASSERT(iface); in net_offload_bind()
176 NET_ASSERT(net_if_offload(iface)); in net_offload_bind()
177 NET_ASSERT(net_if_offload(iface)->bind); in net_offload_bind()
198 NET_ASSERT(iface); in net_offload_listen()
199 NET_ASSERT(net_if_offload(iface)); in net_offload_listen()
200 NET_ASSERT(net_if_offload(iface)->listen); in net_offload_listen()
242 NET_ASSERT(iface); in net_offload_connect()
[all …]
Dnet_context.h438 NET_ASSERT(context); in net_context_is_used()
452 NET_ASSERT(context); in net_context_is_bound_to_iface()
466 NET_ASSERT(context); in net_context_is_accepting()
480 NET_ASSERT(context); in net_context_set_accepting()
498 NET_ASSERT(context); in net_context_is_closing()
512 NET_ASSERT(context); in net_context_set_closing()
540 NET_ASSERT(context); in net_context_get_state()
558 NET_ASSERT(context); in net_context_set_state()
577 NET_ASSERT(context); in net_context_get_family()
596 NET_ASSERT(context); in net_context_set_family()
[all …]
Dnet_core.h68 #define NET_ASSERT(cond, ...) __ASSERT(cond, "" __VA_ARGS__) macro
Dnet_if.h741 NET_ASSERT(iface); in net_if_lock()
748 NET_ASSERT(iface); in net_if_unlock()
758 NET_ASSERT(iface); in net_if_tx_lock()
769 NET_ASSERT(iface); in net_if_tx_unlock()
/Zephyr-latest/subsys/net/
Dhostname.c78 NET_ASSERT(postfix_len > 0); in net_hostname_set_postfix()
116 NET_ASSERT(postfix_len > 0); in net_hostname_set_postfix_str()
/Zephyr-latest/subsys/net/ip/
Droute.c63 NET_ASSERT(idx < CONFIG_NET_MAX_NEXTHOPS, "idx %d >= max %d", in get_nexthop_nbr()
133 NET_ASSERT(route); in net_route_get_nbr()
241 NET_ASSERT(nbr); in nbr_nexthop_put()
255 NET_ASSERT(naddr, "Unknown nexthop address"); \
339 NET_ASSERT(addr); in net_route_add()
340 NET_ASSERT(iface); in net_route_add()
341 NET_ASSERT(nexthop); in net_route_add()
359 NET_ASSERT(nexthop_lladdr); in net_route_add()
451 NET_ASSERT(tmp == nbr_nexthop); in net_route_add()
621 NET_ASSERT(iface); in net_route_del_by_nexthop()
[all …]
Dnbr.c62 NET_ASSERT(idx < CONFIG_NET_IPV6_MAX_NEIGHBORS); in get_nbr()
143 NET_ASSERT(nbr->idx < CONFIG_NET_IPV6_MAX_NEIGHBORS); in net_nbr_unlink()
144 NET_ASSERT(net_neighbor_lladdr[nbr->idx].ref > 0); in net_nbr_unlink()
181 NET_ASSERT(idx < CONFIG_NET_IPV6_MAX_NEIGHBORS, in net_nbr_get_lladdr()
Dnet_tc.c170 NET_ASSERT(tc < ARRAY_SIZE(thread_priorities)); in tx_tc2thread()
187 NET_ASSERT(tc < ARRAY_SIZE(thread_priorities)); in rx_tc2thread()
Dnet_context.c681 NET_ASSERT(context); in net_context_put()
846 NET_ASSERT(addr); in net_context_bind()
847 NET_ASSERT(PART_OF_ARRAY(contexts, context)); in net_context_bind()
1204 NET_ASSERT(PART_OF_ARRAY(contexts, context)); in net_context_listen()
1235 NET_ASSERT((( in net_context_create_ipv4_new()
1289 NET_ASSERT((( in net_context_create_ipv6_new()
1327 NET_ASSERT(addr); in net_context_connect()
1328 NET_ASSERT(PART_OF_ARRAY(contexts, context)); in net_context_connect()
1343 NET_ASSERT(addr->sa_family == net_context_get_family(context), in net_context_connect()
1489 NET_ASSERT(laddr != NULL); in net_context_connect()
[all …]
Dnet_mgmt.c403 NET_ASSERT(NET_MGMT_ON_IFACE(mgmt_event_mask)); in net_mgmt_event_wait_on_iface()
404 NET_ASSERT(iface); in net_mgmt_event_wait_on_iface()
Dtp.c368 NET_ASSERT(ret == 0); in udp_finalize_pkt()
453 NET_ASSERT(net_pkt_get_len(pkt) <= net_if_get_mtu(pkt->iface)); in _tp_output()
459 NET_ASSERT(false); in _tp_output()
Dipv4_fragment.c150 NET_ASSERT(reass->pkt[0]); in reassemble_packet()
617 NET_ASSERT(pkt && pkt->buffer); in net_ipv4_prepare_for_send_fragment()
D6lo.c368 NET_ASSERT(net_pkt_lladdr_src(pkt)->addr); in compress_sa()
414 NET_ASSERT(net_pkt_lladdr_src(pkt)->addr); in compress_sa_ctx()
513 NET_ASSERT(net_pkt_lladdr_dst(pkt)->addr); in compress_da()
1580 NET_ASSERT(pkt && pkt->frags); in net_6lo_uncompress()
Dipv6_mld.c293 NET_ASSERT(ipv6); in send_mld_report()
Dtcp.c827 NET_ASSERT(ctx->tcp != NULL); in tcp_install_close_cb()
1052 NET_ASSERT(s, "Invalid TCP state: %u", state); in tcp_state_to_str()
1689 NET_ASSERT(len == 0, "Not all bytes written"); in tcp_pkt_append()
3175 NET_ASSERT((conn->send_data_total == 0) || in tcp_in()
3556 NET_ASSERT(false, "%s is unimplemented", in tcp_in()
4343 NET_ASSERT(false, "Unimplemented tp command: %s", tp->msg); in tp_input()
4532 NET_ASSERT(context); in net_tcp_set_option()
4536 NET_ASSERT(conn); in net_tcp_set_option()
4569 NET_ASSERT(context); in net_tcp_get_option()
4573 NET_ASSERT(conn); in net_tcp_get_option()
/Zephyr-latest/subsys/net/l2/ppp/
Dmisc.c83 NET_ASSERT(ctx); in ppp_change_phase_debug()
89 NET_ASSERT(new_phase >= PPP_DEAD && in ppp_change_phase_debug()
274 NET_ASSERT(fsm); in ppp_change_state_debug()
280 NET_ASSERT(new_state >= PPP_INITIAL && in ppp_change_state_debug()
Dipv6cp.c40 NET_ASSERT(linkaddr->len >= 6); in ipv6cp_add_iid()
/Zephyr-latest/subsys/net/l2/ethernet/gptp/
Dgptp_messages.c61 NET_ASSERT(buf); in gptp_get_hdr()
191 NET_ASSERT((port >= GPTP_PORT_START) && (port <= GPTP_PORT_END)); in gptp_prepare_sync()
193 NET_ASSERT(iface); in gptp_prepare_sync()
245 NET_ASSERT(sync); in gptp_prepare_follow_up()
246 NET_ASSERT((port >= GPTP_PORT_START) && (port <= GPTP_PORT_END)); in gptp_prepare_follow_up()
248 NET_ASSERT(iface); in gptp_prepare_follow_up()
296 NET_ASSERT((port >= GPTP_PORT_START) && (port <= GPTP_PORT_END)); in gptp_prepare_pdelay_req()
298 NET_ASSERT(iface); in gptp_prepare_pdelay_req()
479 NET_ASSERT((port >= GPTP_PORT_START) && (port <= GPTP_PORT_END)); in gptp_prepare_announce()
483 NET_ASSERT(iface); in gptp_prepare_announce()
[all …]
/Zephyr-latest/modules/nrf_wifi/os/
Dshim.c880 NET_ASSERT(test_val == val, "%s", msg); in zep_shim_assert()
883 NET_ASSERT(test_val != val, "%s", msg); in zep_shim_assert()
886 NET_ASSERT(test_val < val, "%s", msg); in zep_shim_assert()
889 NET_ASSERT(test_val <= val, "%s", msg); in zep_shim_assert()
892 NET_ASSERT(test_val > val, "%s", msg); in zep_shim_assert()
895 NET_ASSERT(test_val >= val, "%s", msg); in zep_shim_assert()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_hpack.c171 NET_ASSERT(n < 8); in hpack_integer_decode()
218 NET_ASSERT(type == HPACK_HEADER_NAME || type == HPACK_HEADER_VALUE); in hpack_huffman_decode()
247 NET_ASSERT(type == HPACK_HEADER_NAME || type == HPACK_HEADER_VALUE); in hpack_string_decode()
/Zephyr-latest/subsys/net/lib/shell/
Dsockets.c102 NET_ASSERT(svc->pev != NULL); in walk_socket_services()
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c714 NET_ASSERT(pkt, "Out of TX packets"); in ZTEST()
737 NET_ASSERT(pkt, "Out of TX packets"); in ZTEST()
1041 NET_ASSERT(pkt, "Out of TX packets"); in ZTEST()
1092 NET_ASSERT(pkt, "Out of TX packets"); in ZTEST()
1152 NET_ASSERT(pkt, "Out of TX packets"); in ZTEST()
1315 NET_ASSERT(pkt, "Out of TX packets"); in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_can.c260 NET_ASSERT(len == sizeof(struct socketcan_frame)); in zcan_sendto_ctx()
338 NET_ASSERT(recv_len == sizeof(struct socketcan_frame)); in zcan_recvfrom_ctx()
Dsocket_dispatcher.c100 NET_ASSERT(sock_family->is_supported); in sock_dispatch_find()
/Zephyr-latest/subsys/net/lib/capture/
Dcooked.c261 NET_ASSERT(config->link_types.count == ctx->link_type_count); in interface_get_config()

12