diff options
author | 2009-07-09 13:04:29 +0000 | |
---|---|---|
committer | 2009-07-09 13:04:29 +0000 | |
commit | 3d433ee55aaa7f7607f8002e9a7fff38b984a48d (patch) | |
tree | 1ddb878ad606953dbd25cc943f4ab9bbcc0edc51 | |
parent | Remove commented variable. (diff) | |
download | wireguard-openbsd-3d433ee55aaa7f7607f8002e9a7fff38b984a48d.tar.xz wireguard-openbsd-3d433ee55aaa7f7607f8002e9a7fff38b984a48d.zip |
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++; } |