Motr
M0
|
#include <unistd.h>
#include "ut/ut.h"
#include "lib/misc.h"
#include "lib/semaphore.h"
#include "lib/memory.h"
#include "net/lnet/lnet.h"
#include "net/test/network.h"
Go to the source code of this file.
Enumerations | |
enum | { NET_TEST_PING_BUF_SIZE = 4096, NET_TEST_PING_BUF_STEP = 511, NET_TEST_BULK_BUF_SIZE = 1024 * 1024, NET_TEST_BUF_DESC_NR = 10 } |
Variables | |
static struct m0_semaphore | recv_sem |
static struct m0_semaphore | send_sem |
static const struct m0_net_tm_callbacks | ping_tm_cb |
static struct m0_net_test_network_buffer_callbacks | ping_buf_cb |
static struct m0_semaphore | bulk_cb_sem [M0_NET_QT_NR] |
static bool | bulk_offset_mismatch |
static const struct m0_net_tm_callbacks | bulk_tm_cb |
static struct m0_net_test_network_buffer_callbacks | bulk_buf_cb |
static const struct m0_net_tm_callbacks | tm_cb_empty |
static struct m0_net_test_network_buffer_callbacks | buf_cb_empty |
anonymous enum |
Enumerator | |
---|---|
NET_TEST_PING_BUF_SIZE | |
NET_TEST_PING_BUF_STEP | |
NET_TEST_BULK_BUF_SIZE |
|
NET_TEST_BUF_DESC_NR |
|
static |
|
static |
|
static |
|
static |
void m0_net_test_network_ut_addr_decode | ( | void | ) |
TODO: decode: corrupted FQDN of type tcp/verbs Currently it is assumed that if FQDN resoultion fails, then by default ip format is used.
memset(&ep_str, 0, sizeof(ep_str)); sprintf(ep_str, "inet:tcp:%s@3005", &hostname[4]); rc = m0_net_test_network_ep_add(&send, ep_str); M0_UT_ASSERT(rc == -EPROTO);
memset(&ep_str, 0, sizeof(ep_str)); sprintf(ep_str, "inet:verbs:%s@3006", &hostname[4]); rc = m0_net_test_network_ep_add(&send, ep_str); M0_UT_ASSERT(rc == -EPROTO);
Definition at line 503 of file network.c.
void m0_net_test_network_ut_buf_desc | ( | void | ) |
void m0_net_test_network_ut_bulk | ( | void | ) |
void m0_net_test_network_ut_ping | ( | void | ) |
|
static |
|
static |
Definition at line 54 of file network.c.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |