summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-01-22 23:49:58 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:27:08 +0200
commit8071d5c3e30a68d7bb9ca1bbf48b45f64b459a12 (patch)
tree0426729e7f9262553096d2430331be4b6a939f07 /vrrpd/vrrp.h
parentlib: add internet checksum with pseudoheaders (diff)
downloadfrr-8071d5c3e30a68d7bb9ca1bbf48b45f64b459a12.tar.xz
frr-8071d5c3e30a68d7bb9ca1bbf48b45f64b459a12.zip
vrrpd: compute VRRPv3 checksum
Correctly compute VRRPv3 checksum. Pseudoheaders are used for both IPv4 and IPv6. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp.h')
-rw-r--r--vrrpd/vrrp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h
index 98948a76f..f68ff8522 100644
--- a/vrrpd/vrrp.h
+++ b/vrrpd/vrrp.h
@@ -75,6 +75,9 @@ struct vrrp_router {
/* macvlan interface */
struct interface *mvl_ifp;
+ /* Source address for advertisements */
+ struct ipaddr src;
+
/* Socket read buffer */
uint8_t ibuf[IP_MAXPACKET];