ip: fix length calculation in ip6-receive