added check for ttl > 65535 (J.5.2.1)