From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ALgHhnvCQtDoWHrElJeB9c4EM+L/lJZ7KQN+mUoCQnk=; b=elhDOowXN4eyYWRb9MWt1WEE5JF8uYxYPYEL4zwBEVGcwUEElFUAcgsoaWxU+WGqr8 6LZJos9lXH4xBPzJ9cJ79kzGXhpjkcTORq5W7sVXtEzB1vBLRMjNm//+IDUgc20bMMa7 kU+kopsF2QYAKDe0uccS+X+0SUbSjKC1j8ODBSN8G8J+JUY6DNpxzQwaeplfWXiPzWE1 TBVhkoX94ckVBwbyY3UmatCv+etnEk/9rtxkJj4Ll051C51Vc4jJyS79+n6TwvtUChAt 98JWm8lJvzYmDMN34ZE8BgOJnk9smDSvLLMmcEHKSPFgYS9Z3urWfQw7+BWH/e9mgBca MKmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ALgHhnvCQtDoWHrElJeB9c4EM+L/lJZ7KQN+mUoCQnk=; b=i15lCPousWTDS6GAuD6aVn979a2FvIDWBELur4uHJVqNg0gRDgdoHMK8eOoEfw3dIa TuJdgdyiD0rl3mxk/aLoasGYhwRA8XEc2kSvq+yroSG5EnQdCPPh+S0OArBowZA8xJVu xJKJmiyuvKIzWrC7z9ZwhIA2akK2qhpdgk8HjPBjdtaRAuP+tX2GqlMdn7jJG+QMs2UV 79eX36mi1pVQf2E5vq4HFJsRDhbsv3UkBfo+IOBZArcRUO8fvuZReKleL+pn52cbqVLi 2cSNClckYoRXbT72+O0V7GZ6dtf04pZsdZkRXRO7TKwFKUSm6qX8TZ1DU+c7MpqV9UsA 8CpA== X-Gm-Message-State: APt69E2uIg0pi+p9TjjNq98caXXKXejJcIw1OCRPFtu2E73BIWOEHSBN jUg6n7/oQqBjaLGyMrJz0VmWUSDkz20= X-Google-Smtp-Source: ADUXVKL+32cVhlOHGgVitH/JNMwbmXLCofINx+6UfrsoFhQId1ZOHeVNAAr41RzeOjJVYdHBXrAtpw== X-Received: by 2002:a62:c61d:: with SMTP id m29-v6mr331872pfg.26.1528741531507; Mon, 11 Jun 2018 11:25:31 -0700 (PDT) Received: from xeon-e3.lan (204-195-35-107.wavecable.com. [204.195.35.107]) by smtp.gmail.com with ESMTPSA id g2-v6sm2982041pfc.4.2018.06.11.11.25.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 11:25:30 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Stephen Hemminger Date: Mon, 11 Jun 2018 11:25:25 -0700 Message-Id: <20180611182526.32327-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180611182526.32327-1-stephen@networkplumber.org> References: <20180611182526.32327-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH v2 1/2] testpmd: use RFC values for Tx address and port X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2018 18:25:32 -0000 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