Skip to content

Commit

Permalink
icmp6: add defaults to saddr/daddr record fields
Browse files Browse the repository at this point in the history
Fixes warnings with dialyzer in erlang 19.0.
  • Loading branch information
msantos committed Jun 24, 2016
1 parent 9d7c37f commit 1ed6013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pkt_icmp6.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@

res = 0 :: pkt:uint16_t(), res2 = 0 :: pkt:uint16_t(),

saddr :: pkt:in6_addr(),
daddr :: pkt:in6_addr(),
saddr = {0,0,0,0,0,0,0,0} :: pkt:in6_addr(),
daddr = {0,0,0,0,0,0,0,0} :: pkt:in6_addr(),

% router advertisement
hop = 0 :: pkt:uint8_t(), m = 0 :: pkt:bit(), o = 0 :: pkt:bit(), lifetime = 0 :: pkt:uint16_t(), reach = 0 :: pkt:uint32_t(), retrans = 0 :: pkt:uint32_t(),
Expand Down

0 comments on commit 1ed6013

Please sign in to comment.