Use MAXTTL.
Obtained from: NetBSD
This commit is contained in:
parent
754a3bdaa2
commit
79760c6bdf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166629
@ -1292,7 +1292,7 @@ X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m,
|
||||
VIF_LOCK();
|
||||
MFC_LOCK();
|
||||
if (imo && ((vifi = imo->imo_multicast_vif) < numvifs)) {
|
||||
if (ip->ip_ttl < 255)
|
||||
if (ip->ip_ttl < MAXTTL)
|
||||
ip->ip_ttl++; /* compensate for -1 in *_send routines */
|
||||
if (rsvpdebug && ip->ip_p == IPPROTO_RSVP) {
|
||||
struct vif *vifp = viftable + vifi;
|
||||
|
Loading…
Reference in New Issue
Block a user