Fix IPv6 bug on extract address from packet.