|No different than IPv4. |
One of the parameters in every packet header is a thing called TTL, Time To Live. This is set at a predetermined number by the originator usually, usually 64. Every time the packet goes through a router the value is decremented by one. If the value reaches 0 before the packet arrives is its destination, the packet is killed.
The IP address plays no part in it other than to tell the router where to route the packet to.