diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2009-07-09 13:04:30 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2009-07-09 13:04:30 +0000 |
commit | e1f234229350c88cdc49603d9d07548a9e92dacf (patch) | |
tree | d60fccc53843762c4f8e7ed8e7d8beb1297fea3d | |
parent | 1ce83f33480517fc52445076b9601ec0162c9957 (diff) |
Use MAXTTL instead of the hardcoded value.
-rw-r--r-- | sys/netinet/ip_mroute.c | 4 |
1 files 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++; } |