PcapPlusPlus
Next
|
#include <VrrpLayer.h>
Public Attributes | |
uint8_t | type: 4 |
Type. | |
uint8_t | version: 4 |
Version bits. | |
uint8_t | vrId |
uint8_t | priority |
This specifies the sending VRRP router's priority for the virtual router. | |
uint8_t | ipAddrCount |
Specifies how many IPvX addresses are present in this Packet. | |
uint16_t | authTypeAdvInt |
uint16_t | checksum |
uint8_t * | ipAddresses [] |
This specifies one or more IPvX addresses that are associated with the virtual router. | |
For more info see: https://datatracker.ietf.org/doc/html/rfc2338 https://datatracker.ietf.org/doc/html/rfc3768 https://datatracker.ietf.org/doc/html/rfc5798 VRRPv2 Packet Format 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| Type | Virtual Rtr ID| Priority | Count IP Addrs| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Auth Type | Adver Int | Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IP Address (1) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | . | | . | | . | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IP Address (n) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Authentication Data (1) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Authentication Data (2) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ VRRPv3 Packet Format 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | IPv4 Fields or IPv6 Fields | ... ... | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| Type | Virtual Rtr ID| Priority |Count IPvX Addr| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |(rsvd) | Max Adver Int | Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
VRRP generic header
uint16_t pcpp::vrrp_header::authTypeAdvInt |
This specifies authentication type(v2) or (Max) Advertisement interval (in seconds(v2) or centi-seconds(v3)).
uint16_t pcpp::vrrp_header::checksum |
This specifies checksum field that is used to detect data corruption in the VRRP message. VRRPv2 uses normal checksum algorithm, while VRRPv3 uses "pseudo-header" checksum algorithm.
uint8_t pcpp::vrrp_header::vrId |
The Virtual Router Identifier (VRID) field identifies the virtual router this packet is reporting status for