September 2002
Intermediate to advanced
560 pages
13h 16m
English
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 ...Read now
Unlock full access