diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-09-11 22:27:37 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-12-09 20:39:18 +0100 |
commit | 671fd2a318ffb146f707882b23b41d2c49615805 (patch) | |
tree | 3cfa72f2f927a94d212fab0c8d2ed36adf0616b1 /vrrpd/vrrp.h | |
parent | Merge pull request #5498 from mjstapp/sharp_with_labels (diff) | |
download | frr-671fd2a318ffb146f707882b23b41d2c49615805.tar.xz frr-671fd2a318ffb146f707882b23b41d2c49615805.zip |
vrrpd: make vrrp_[add|del]_ip not insane
For some reason I made these functions require you to pass the correct
(v4 or v6) router when we could determine it from the type of address
passed; fix this
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp.h')
-rw-r--r-- | vrrpd/vrrp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h index 79283bbb1..9c1139837 100644 --- a/vrrpd/vrrp.h +++ b/vrrpd/vrrp.h @@ -340,7 +340,7 @@ void vrrp_set_advertisement_interval(struct vrrp_vrouter *vr, /* * Add an IPvX address to a VRRP Virtual Router. * - * r + * vr * Virtual Router to add IPvx address to * * ip @@ -354,7 +354,7 @@ void vrrp_set_advertisement_interval(struct vrrp_vrouter *vr, * -1 on error * 0 otherwise */ -int vrrp_add_ip(struct vrrp_router *r, struct ipaddr *ip); +int vrrp_add_ip(struct vrrp_vrouter *vr, struct ipaddr *ip); /* * Add an IPv4 address to a VRRP Virtual Router. @@ -397,7 +397,7 @@ int vrrp_add_ipv6(struct vrrp_vrouter *vr, struct in6_addr v6); /* * Remove an IP address from a VRRP Virtual Router. * - * r + * vr * Virtual Router to remove IP address from * * ip @@ -413,7 +413,7 @@ int vrrp_add_ipv6(struct vrrp_vrouter *vr, struct in6_addr v6); * -1 on error * 0 otherwise */ -int vrrp_del_ip(struct vrrp_router *r, struct ipaddr *ip); +int vrrp_del_ip(struct vrrp_vrouter *vr, struct ipaddr *ip); /* * Remove an IPv4 address from a VRRP Virtual Router. |