[dpdk-dev] [RFC] testpmd: use RFC2544 reserved IP addresses
Stephen Hemminger
stephen at networkplumber.org
Wed Mar 21 04:44:36 CET 2018
Change the transmit only side of testpmd to use the IP addresses
that are marked as reserved for benchmarking by RFC2544 192.18.0.0/27;
rather than the commonly used subnet 192.168.0.0/24 which is likely
to used for administrative interface.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/test-pmd/txonly.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/test-pmd/txonly.c b/app/test-pmd/txonly.c
index 1f08b6ed37a2..22785bdcbe44 100644
--- a/app/test-pmd/txonly.c
+++ b/app/test-pmd/txonly.c
@@ -43,8 +43,9 @@
#define UDP_SRC_PORT 1024
#define UDP_DST_PORT 1024
-#define IP_SRC_ADDR ((192U << 24) | (168 << 16) | (0 << 8) | 1)
-#define IP_DST_ADDR ((192U << 24) | (168 << 16) | (0 << 8) | 2)
+/* RFC 2544 reserved IP addresses for benchmarking */
+#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.16.2
More information about the dev
mailing list