From e1f234229350c88cdc49603d9d07548a9e92dacf Mon Sep 17 00:00:00 2001 From: Michele Marchetto Date: Thu, 9 Jul 2009 13:04:30 +0000 Subject: Use MAXTTL instead of the hardcoded value. --- sys/netinet/ip_mroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 38e16eac821..fb761671975 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_mroute.c,v 1.53 2009/06/05 00:05:22 claudio Exp $ */ +/* $OpenBSD: ip_mroute.c,v 1.54 2009/07/09 13:04:29 michele Exp $ */ /* $NetBSD: ip_mroute.c,v 1.85 2004/04/26 01:31:57 matt Exp $ */ /* @@ -1380,7 +1380,7 @@ ip_mforward(struct mbuf *m, struct ifnet *ifp) #ifdef RSVP_ISI if (imo && ((vifi = imo->imo_multicast_vif) < numvifs)) { - if (ip->ip_ttl < 255) { + if (ip->ip_ttl < MAXTTL) { /* compensate for -1 in *_send routines */ ip->ip_ttl++; } -- cgit v1.2.3