mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-10-23 10:29:07 +00:00
Support fragmentation testing.
This commit is contained in:
parent
b8a3a4109e
commit
2fd414b22f
@ -75,7 +75,11 @@ timeout_handler(void)
|
|||||||
PRINT6ADDR(&client_conn->ripaddr);
|
PRINT6ADDR(&client_conn->ripaddr);
|
||||||
sprintf(buf, "Hello %d from the client", ++seq_id);
|
sprintf(buf, "Hello %d from the client", ++seq_id);
|
||||||
printf(" (msg: %s)\n", buf);
|
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));
|
uip_udp_packet_send(client_conn, buf, strlen(buf));
|
||||||
|
#endif /* SEND_TOO_LARGE_PACKET_TO_TEST_FRAGMENTATION */
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user