summaryrefslogtreecommitdiff
path: root/examples/l3fwd
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2019-11-05 08:09:21 -0800
committerDavid Marchand <david.marchand@redhat.com>2019-11-08 15:34:10 +0100
commit7cc1bd4613a54dc71597b21b91837da2200b5d99 (patch)
tree9685c238e797b0e33bee234073fab9a6ea47ca50 /examples/l3fwd
parentdb8af647daa00a23acec29766b1acce9f7b7fdbb (diff)
downloaddpdk-7cc1bd4613a54dc71597b21b91837da2200b5d99.zip
dpdk-7cc1bd4613a54dc71597b21b91837da2200b5d99.tar.gz
dpdk-7cc1bd4613a54dc71597b21b91837da2200b5d99.tar.xz
examples/l3fwd: fix IP reserved address range
The original patch used incorrect subnet range for testing. Fixes: 37afe381bde4 ("examples/l3fwd: use reserved IP addresses") Cc: stable@dpdk.org Reported-by: Hemant Agrawal <hemant.agrawal@nxp.com> Reported-by: Ferruh Yigit <ferruh.yigit@intel.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Diffstat (limited to 'examples/l3fwd')
-rw-r--r--examples/l3fwd/l3fwd_lpm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/l3fwd/l3fwd_lpm.c b/examples/l3fwd/l3fwd_lpm.c
index a3a65f7..349de27 100644
--- a/examples/l3fwd/l3fwd_lpm.c
+++ b/examples/l3fwd/l3fwd_lpm.c
@@ -41,16 +41,16 @@ struct ipv6_l3fwd_lpm_route {
uint8_t if_out;
};
-/* 192.18.0.0/16 are set aside for RFC2544 benchmarking. */
+/* 198.18.0.0/16 are set aside for RFC2544 benchmarking (RFC5735). */
static struct ipv4_l3fwd_lpm_route ipv4_l3fwd_lpm_route_array[] = {
- {RTE_IPV4(192, 18, 0, 0), 24, 0},
- {RTE_IPV4(192, 18, 1, 0), 24, 1},
- {RTE_IPV4(192, 18, 2, 0), 24, 2},
- {RTE_IPV4(192, 18, 3, 0), 24, 3},
- {RTE_IPV4(192, 18, 4, 0), 24, 4},
- {RTE_IPV4(192, 18, 5, 0), 24, 5},
- {RTE_IPV4(192, 18, 6, 0), 24, 6},
- {RTE_IPV4(192, 18, 7, 0), 24, 7},
+ {RTE_IPV4(198, 18, 0, 0), 24, 0},
+ {RTE_IPV4(198, 18, 1, 0), 24, 1},
+ {RTE_IPV4(198, 18, 2, 0), 24, 2},
+ {RTE_IPV4(198, 18, 3, 0), 24, 3},
+ {RTE_IPV4(198, 18, 4, 0), 24, 4},
+ {RTE_IPV4(198, 18, 5, 0), 24, 5},
+ {RTE_IPV4(198, 18, 6, 0), 24, 6},
+ {RTE_IPV4(198, 18, 7, 0), 24, 7},
};
/* 2001:0200::/48 is IANA reserved range for IPv6 benchmarking (RFC5180) */