Lines Matching refs:net_ctx
638 struct net_context *net_ctx; in test_udp_context_prepare() local
695 ret = net_context_get(family, SOCK_DGRAM, IPPROTO_UDP, &net_ctx); in test_udp_context_prepare()
699 ret = net_context_bind(net_ctx, &src_addr, addrlen); in test_udp_context_prepare()
715 return net_ctx; in test_udp_context_prepare()
723 struct net_context *net_ctx; in test_tx_chksum() local
727 net_ctx = test_udp_context_prepare(family, offloaded, &dst_addr); in test_tx_chksum()
728 zassert_not_null(net_ctx, "Failed to obtain net_ctx"); in test_tx_chksum()
734 ret = net_context_sendto(net_ctx, test_data, len, &dst_addr, in test_tx_chksum()
743 net_context_unref(net_ctx); in test_tx_chksum()
771 struct net_context *net_ctx; in test_tx_chksum_udp_frag() local
775 net_ctx = test_udp_context_prepare(family, offloaded, &dst_addr); in test_tx_chksum_udp_frag()
776 zassert_not_null(net_ctx, "Failed to obtain net_ctx"); in test_tx_chksum_udp_frag()
783 ret = net_context_sendto(net_ctx, test_data_large, len, &dst_addr, in test_tx_chksum_udp_frag()
792 net_context_unref(net_ctx); in test_tx_chksum_udp_frag()
1000 struct net_context *net_ctx; in test_rx_chksum() local
1004 net_ctx = test_udp_context_prepare(family, offloaded, &dst_addr); in test_rx_chksum()
1005 zassert_not_null(net_ctx, "Failed to obtain net_ctx"); in test_rx_chksum()
1011 ret = net_context_recv(net_ctx, cb, K_NO_WAIT, NULL); in test_rx_chksum()
1015 ret = net_context_sendto(net_ctx, test_data, len, &dst_addr, in test_rx_chksum()
1027 net_context_unref(net_ctx); in test_rx_chksum()
1057 struct net_context *net_ctx; in test_rx_chksum_udp_frag() local
1061 net_ctx = test_udp_context_prepare(family, offloaded, &dst_addr); in test_rx_chksum_udp_frag()
1062 zassert_not_null(net_ctx, "Failed to obtain net_ctx"); in test_rx_chksum_udp_frag()
1069 ret = net_context_recv(net_ctx, cb, K_NO_WAIT, NULL); in test_rx_chksum_udp_frag()
1073 ret = net_context_sendto(net_ctx, test_data_large, len, &dst_addr, in test_rx_chksum_udp_frag()
1085 net_context_unref(net_ctx); in test_rx_chksum_udp_frag()
1115 struct net_context *net_ctx; in test_rx_chksum_udp_frag_bad() local
1119 net_ctx = test_udp_context_prepare(family, offloaded, &dst_addr); in test_rx_chksum_udp_frag_bad()
1120 zassert_not_null(net_ctx, "Failed to obtain net_ctx"); in test_rx_chksum_udp_frag_bad()
1128 ret = net_context_recv(net_ctx, cb, K_NO_WAIT, NULL); in test_rx_chksum_udp_frag_bad()
1132 ret = net_context_sendto(net_ctx, test_data_large, len, &dst_addr, in test_rx_chksum_udp_frag_bad()
1144 net_context_unref(net_ctx); in test_rx_chksum_udp_frag_bad()