summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2016-06-10 14:34:41 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2016-12-22 13:23:52 +0100
commitec5e5d23faa482495c84163c4ae38d9a31bdc00f (patch)
treedb050c0a90a18b4452630b2929d97d1a9ebe19ef /nest/rt-table.c
parent5b208e296fed0beddce16188478c5119df610d89 (diff)
Nexthop: Support for label stack in nest
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 46857d0d..a7ceddb8 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1782,7 +1782,7 @@ static inline rte *
rt_next_hop_update_rte(rtable *tab UNUSED, rte *old)
{
rta a;
- memcpy(&a, old->attrs, sizeof(rta));
+ memcpy(&a, old->attrs, rta_size(old->attrs));
rta_apply_hostentry(&a, old->attrs->hostentry);
a.aflags = 0;