| Class | Racket::L4::VRRP |
| In: |
lib/racket/l4/vrrp.rb
(CVS)
|
| Parent: | RacketPart |
Virtual Router Redundancy Protocol (VRRP) tools.ietf.org/html/rfc2338 tools.ietf.org/html/rfc3768
| auth_type | Authentication type (0, 1, 2) | |
| checksum | Checksum | |
| id | Virtual Router Identifier (VRID) | |
| interval | Advertisement interval | |
| num_ips | Total number of IPs contained in this VRRP message | |
| payload | ||
| priority | the sending VRRP router‘s priority for the virtual router. Higher values equal higher priority. | |
| type | VRRP packet type | |
| version | Version |
Add authentication data
# File lib/racket/l4/vrrp.rb, line 59 def add_auth(authdata) @authdata = authdata[0,8].ljust(32, "\x00") end
compute and set the checksum
# File lib/racket/l4/vrrp.rb, line 69 def checksum! self.checksum = compute_checksum end