I would just like to verify one thing. When a router receives a packet with a TTL of 1, the router can still process and accept it if its destined for itself, correct? Because for example, eBGP messages use a TTL of 1 by default and they’re not dropped by the destination BGP neighbor.
However, if the router receives a packet with a TTL of 1 that needs to be forwarded, it will just drop the packet and send back an ICMP Time Exceeded message, right?
And one more thing related to this, when exactly is the TTL decremented? The moment the router receives the packet or the moment it realizes it has to forward it somewhere, so it decrements it and ends with 0.