C.1. Data Structure Definitions for VRRP
File vrrpd.h contains the various VRRP data structure definitions:
/* vrrpd.h */ typedef struct { /* rfc2338.5.1 */ uint8_t vers_type; /* 0-3=type, 4-7=version */ uint8_t vrid; /* virtual router id */ uint8_t priority; /* router priority */ uint8_t naddr; /* address counter */ uint8_t auth_type; /* authentication type */ uint8_t adver_int; /* advertisement interval(in sec) */ uint16_t chksum; /* checksum (ip-like one) */ /* here <naddr> ip addresses */ /* here authentification infos */ } vrrp_pkt; /* protocol constants */ #define INADDR_VRRP_GROUP 0xe0000012/* multicast addr rfc2338.5.2.2 */ #define VRRP_IP_TTL 255 /* in and out pkt ttl — rfc2338.5.2.3 */ #define IPPROTO_VRRP 112 /* IP protocol number ...
Get VRRP: Increasing Reliability and Failover with the Virtual Router Redundance Protocol now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.