<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _ttl(self):
 """Returns ttl or hlim, depending on the IP version"""

        return self.hlim if isinstance(self, scapy.layers.inet6.IPv6) else self.ttl