Skip to content

Commit

Permalink
Merge pull request #2690 from armanbilge/patch-11
Browse files Browse the repository at this point in the history
ipv6 is 16 bytes
  • Loading branch information
mpilquist authored Oct 25, 2021
2 parents 4785408 + 1ae8a3c commit e7bcbb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ object Ip4sCodecs {
bytes(4).xmapc(b => Ipv4Address.fromBytes(b.toArray).get)(a => ByteVector.view(a.toBytes))

val ipv6: Codec[Ipv6Address] =
bytes(8).xmapc(b => Ipv6Address.fromBytes(b.toArray).get)(a => ByteVector.view(a.toBytes))
bytes(16).xmapc(b => Ipv6Address.fromBytes(b.toArray).get)(a => ByteVector.view(a.toBytes))

val macAddress: Codec[MacAddress] =
bytes(6).xmapc(b => MacAddress.fromBytes(b.toArray).get)(m => ByteVector.view(m.toBytes))
Expand Down

0 comments on commit e7bcbb1

Please sign in to comment.