Change the IP address and UDP port used for testpmd Tx only test. The old values overlap common NAT local networks; instead use reserved addresses in IETF RFC 2544.
Signed-off-by: Stephen Hemminger <sthem...@microsoft.com> --- app/test-pmd/txonly.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c index 1f08b6ed37a2..a24000e3af44 100644 --- a/app/test-pmd/txonly.c +++ b/app/test-pmd/txonly.c @@ -40,11 +40,13 @@ #include "testpmd.h" -#define UDP_SRC_PORT 1024 -#define UDP_DST_PORT 1024 +/* RFC863 discard port */ +#define UDP_SRC_PORT 9 +#define UDP_DST_PORT 9 -#define IP_SRC_ADDR ((192U << 24) | (168 << 16) | (0 << 8) | 1) -#define IP_DST_ADDR ((192U << 24) | (168 << 16) | (0 << 8) | 2) +/* RFC2544 reserved test subnet 192.18.0.0 */ +#define IP_SRC_ADDR ((192U << 24) | (18 << 16) | (0 << 8) | 1) +#define IP_DST_ADDR ((192U << 24) | (18 << 16) | (0 << 8) | 2) #define IP_DEFTTL 64 /* from RFC 1340. */ #define IP_VERSION 0x40 -- 2.17.1