msantos / pkt

Erlang network protocol library
http://blog.listincomprehension.com/search/label/epcap
BSD 3-Clause "New" or "Revised" License
150 stars 44 forks source link

bag in pack/unpack router solic #44

Closed alexshavelev closed 7 years ago

alexshavelev commented 7 years ago

https://github.com/msantos/pkt/blob/master/src/pkt_icmp6.erl#L103 - Res = 4 bytes https://github.com/msantos/pkt/blob/master/src/pkt_icmp6.erl#L112 - Res packs in 2 bytes

msantos commented 7 years ago

Good catch, thanks @alexshavelev ! I'll see if I can get a packet dump of a router solicitation to add to the tests.

alexshavelev commented 7 years ago

think i can give packet example tomorrow