diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2019-02-14 20:00:14 -0200 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2019-02-14 20:01:30 -0200 | 
| commit | b43bb64f82f599ec9fec0cb89bd2dd05cb54ab87 (patch) | |
| tree | aa47676d1c26ea943dc1752f579b9ad109ad13f6 /lib/nexthop_group.h | |
| parent | e5a501c2edd1f3f18ac0ce4c5d415c97cbfd0cc6 (diff) | |
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 b14cbb5b5c..c6e290eeea 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;  };  | 
