diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2019-02-14 23:00:14 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2019-02-14 23:01:30 +0100 |
commit | b43bb64f82f599ec9fec0cb89bd2dd05cb54ab87 (patch) | |
tree | aa47676d1c26ea943dc1752f579b9ad109ad13f6 /lib/nexthop_group.h | |
parent | lib: consolidate nexthop-group deletion in a single place (diff) | |
download | frr-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.h | 2 |
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; }; |