Support fragmentation testing.
This commit is contained in:
parent
b8a3a4109e
commit
2fd414b22f
1 changed files with 4 additions and 0 deletions
|
@ -75,7 +75,11 @@ timeout_handler(void)
|
|||
PRINT6ADDR(&client_conn->ripaddr);
|
||||
sprintf(buf, "Hello %d from the client", ++seq_id);
|
||||
printf(" (msg: %s)\n", buf);
|
||||
#if SEND_TOO_LARGE_PACKET_TO_TEST_FRAGMENTATION
|
||||
uip_udp_packet_send(client_conn, buf, UIP_APPDATA_SIZE);
|
||||
#else /* SEND_TOO_LARGE_PACKET_TO_TEST_FRAGMENTATION */
|
||||
uip_udp_packet_send(client_conn, buf, strlen(buf));
|
||||
#endif /* SEND_TOO_LARGE_PACKET_TO_TEST_FRAGMENTATION */
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue