From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH v2 1/2] testpmd: use RFC values for Tx address and port Date: Mon, 11 Jun 2018 11:25:25 -0700 Message-ID: <20180611182526.32327-2-stephen@networkplumber.org> References: <20180611182526.32327-1-stephen@networkplumber.org> Cc: Stephen Hemminger , Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-pg0-f48.google.com (mail-pg0-f48.google.com [74.125.83.48]) by dpdk.org (Postfix) with ESMTP id A01D01E371 for ; Mon, 11 Jun 2018 20:25:32 +0200 (CEST) Received: by mail-pg0-f48.google.com with SMTP id e11-v6so10162551pgq.0 for ; Mon, 11 Jun 2018 11:25:32 -0700 (PDT) In-Reply-To: <20180611182526.32327-1-stephen@networkplumber.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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