Skip to content

Commit

Permalink
vrrp: add types to records
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Apr 23, 2015
1 parent 0cbeee5 commit c866030
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/pkt_vrrp.hrl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
-record(vrrp, {
version = 2,
type = 1,
version = 2 :: pkt:bit4(),
type = 1 :: pkt:bit4(),
vrid = 1 :: 1..255,
priority = 100 :: 1..255,
auth_type = 0,
adver_int = 1,
sum = 0,
ip_addresses = []
auth_type = 0 :: pkt:uint8_t(),
adver_int = 1 :: pkt:uint8_t(),
sum = 0 :: pkt:uint16_t(),
ip_addresses = [] :: [pkt:in_addr()]
}).

0 comments on commit c866030

Please sign in to comment.