O'Reilly logo

VRRP: Increasing Reliability and Failover with the Virtual Router Redundance Protocol by Adnan Adam Onart, Ayikudy Srikanth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required