9 static const int ERX_TIMEOUT = 1000; // Expect RX timeout (timeout=failure)
10 static const int NRX_TIMEOUT = 250; // Not expect RX timeout (timeout=success)
12 bool Test_ARP_Basic(void)
16 // Request test machine's IP
17 ARP_SendRequest(0, BLOB(TEST_IP));
19 TEST_ASSERT( ARP_Pkt_IsResponse(rxlen, rxbuf, BLOB(TEST_IP), BLOB(TEST_MAC)) );
21 // Request host machine's IP
22 ARP_SendRequest(0, BLOB(HOST_IP));
26 // Ask test machine to request our IP
27 Stack_SendCommand("arprequest "HOST_IP_STR);
29 TEST_ASSERT( ARP_Pkt_IsRequest(rxlen, rxbuf, HOST_IP) );
32 ARP_SendResponse(0, HOST_IP, HOST_MAC);
34 // Ask test machine to request our IP again (expecting nothing)
35 Stack_SendCommand("arprequest "HOST_IP_STR);