From 2fd414b22fac3656d6002801f82776bdbe34cb4c Mon Sep 17 00:00:00 2001 From: nvt-se Date: Fri, 30 Apr 2010 22:20:41 +0000 Subject: [PATCH] Support fragmentation testing. --- examples/udp-ipv6/udp-client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/udp-ipv6/udp-client.c b/examples/udp-ipv6/udp-client.c index 03bfe3ae6..e1134171f 100644 --- a/examples/udp-ipv6/udp-client.c +++ b/examples/udp-ipv6/udp-client.c @@ -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