Fix payload_offset for ipv6 (needs tests)