10 bool Test_TCP_Basic(void)
12 TEST_SETNAME(__func__);
16 // 1. Test connection to closed port
17 uint32_t seq_tx = 0x1000;
19 TCP_Send(0, 4, BLOB(TEST_IP), 1234, 80, seq_tx, seq_exp, TCP_SYN, 0x1000, 0, NULL);
21 TEST_ASSERT( rxlen = Net_Receive(0, sizeof(rxbuf), rxbuf, 1000) );
22 TEST_ASSERT( TCP_Pkt_Check(rxlen, rxbuf, &ofs, 4, BLOB(TEST_IP), 80, 1234, TCP_RST) );
23 TEST_ASSERT_REL(ofs, ==, rxlen);