summaryrefslogtreecommitdiffstats
path: root/lib/nexthop_group.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-02-14 23:00:14 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-02-14 23:01:30 +0100
commitb43bb64f82f599ec9fec0cb89bd2dd05cb54ab87 (patch)
treeaa47676d1c26ea943dc1752f579b9ad109ad13f6 /lib/nexthop_group.h
parentlib: consolidate nexthop-group deletion in a single place (diff)
downloadfrr-b43bb64f82f599ec9fec0cb89bd2dd05cb54ab87.tar.xz
frr-b43bb64f82f599ec9fec0cb89bd2dd05cb54ab87.zip
lib: change how nexthop groups store nexthop addresses
Use a pointer to a sockunion instead of a full sockunion in the nexthop_hold structure. This prepares the ground for the next commit, which will make nexthop addresses optional (in this commit we assume nh->addr will never be NULL, but this will change). Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/nexthop_group.h')
-rw-r--r--lib/nexthop_group.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h
index b14cbb5b5..c6e290eee 100644
--- a/lib/nexthop_group.h
+++ b/lib/nexthop_group.h
@@ -68,7 +68,7 @@ void copy_nexthops(struct nexthop **tnh, struct nexthop *nh,
struct nexthop_hold {
char *nhvrf_name;
- union sockunion addr;
+ union sockunion *addr;
char *intf;
};