examples/nettest: The send buffer size is now a configuration option.

This commit is contained in:
Gregory Nutt 2017-06-24 09:49:44 -06:00
parent 3c97bfeae6
commit b868fbe879
2 changed files with 13 additions and 1 deletions

View File

@ -12,6 +12,14 @@ config EXAMPLES_NETTEST
if EXAMPLES_NETTEST
config EXAMPLES_NETTEST_SENDSIZE
int "Payload size"
default 4096
---help---
The test client sends well-known packets to ther server. The server
will receive and verfity those packets. This setting determines
size of each packet.
config EXAMPLES_NETTEST_PROGNAME1
string "Target1 program name"
default "nettest"

View File

@ -81,7 +81,11 @@
# define CONFIG_EXAMPLES_NETTEST_SERVER_PORTNO 5471
#endif
#define SENDSIZE 4096
#ifdef CONFIG_EXAMPLES_NETTEST_SENDSIZE
# define SENDSIZE CONFIG_EXAMPLES_NETTEST_SENDSIZE
#else
# define SENDSIZE 4096
#endif
/****************************************************************************
* Public Data