aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp.c
diff options
context:
space:
mode:
authorYoann Desmouceaux <ydesmouc@cisco.com>2017-09-20 10:34:22 +0200
committerDave Wallace <dwallacelf@gmail.com>2017-09-20 13:46:26 +0000
commit6b297aa1f5cf8de294dc839edbce5470318606c8 (patch)
tree6f2cc53e5d172a7358f0c643f3abcfb84aaed41a /src/vnet/tcp/tcp.c
parent7fe51f3e3e80ed6ffe989df1c6963527166afc25 (diff)
TCP: fix "tcp src-address" command with IPv6
When given a single IPv6 address, the "tcp src-address" command incorrectly infers the end of the range by copying sizeof(ip4_address_t) bytes from the given address. Change-Id: I100d5c6674d3a3980b8c018588988bdd32ff7269 Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp.c')
-rw-r--r--src/vnet/tcp/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c
index f457ef7e536..d43fb149855 100644
--- a/src/vnet/tcp/tcp.c
+++ b/src/vnet/tcp/tcp.c
@@ -1657,7 +1657,7 @@ tcp_src_address (vlib_main_t * vm,
v6set = 1;
else if (unformat (input, "%U", unformat_ip6_address, &v6start))
{
- memcpy (&v6end, &v6start, sizeof (v4start));
+ memcpy (&v6end, &v6start, sizeof (v6start));
v6set = 1;
}
else if (unformat (input, "fib-table %d", &table_id))