Searched refs:txcounters (Results 1 – 3 of 3) sorted by relevance
| /lib/liblwip/test/unit/tcp/ |
| D | test_tcp.c | 126 struct test_tcp_txcounters txcounters; in START_TEST() local 145 test_tcp_init_netif(&netif, &txcounters, &local_ip, &netmask); in START_TEST() 161 EXPECT_RET(txcounters.num_tx_calls == 1); in START_TEST() 162 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data1) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST() 163 memset(&txcounters, 0, sizeof(txcounters)); in START_TEST() 168 EXPECT_RET(txcounters.num_tx_calls == 0); in START_TEST() 175 EXPECT_RET(txcounters.num_tx_calls == 1); in START_TEST() 176 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST() 177 memset(&txcounters, 0, sizeof(txcounters)); in START_TEST() 182 EXPECT_RET(txcounters.num_tx_calls == 0); in START_TEST() [all …]
|
| D | tcp_helper.c | 257 struct test_tcp_txcounters *txcounters = (struct test_tcp_txcounters*)netif->state; in test_tcp_netif_output() local 259 txcounters->num_tx_calls++; in test_tcp_netif_output() 260 txcounters->num_tx_bytes += p->tot_len; in test_tcp_netif_output() 261 if (txcounters->copy_tx_packets) { in test_tcp_netif_output() 267 if (txcounters->tx_packets == NULL) { in test_tcp_netif_output() 268 txcounters->tx_packets = p_copy; in test_tcp_netif_output() 270 pbuf_cat(txcounters->tx_packets, p_copy); in test_tcp_netif_output() 276 void test_tcp_init_netif(struct netif *netif, struct test_tcp_txcounters *txcounters, in test_tcp_init_netif() argument 281 memset(txcounters, 0, sizeof(struct test_tcp_txcounters)); in test_tcp_init_netif() 283 netif->state = txcounters; in test_tcp_init_netif()
|
| D | tcp_helper.h | 48 void test_tcp_init_netif(struct netif *netif, struct test_tcp_txcounters *txcounters,
|