Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Replace plain 255 by MAXTTL.



details:   https://anonhg.NetBSD.org/src/rev/ecc2c4846c42
branches:  trunk
changeset: 584228:ecc2c4846c42
user:      seb <seb%NetBSD.org@localhost>
date:      Sun Sep 11 22:15:19 2005 +0000

description:
Replace plain 255 by MAXTTL.

diffstat:

 sys/netinet/ip_output.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8d50a21785bd -r ecc2c4846c42 sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c   Sun Sep 11 22:03:48 2005 +0000
+++ b/sys/netinet/ip_output.c   Sun Sep 11 22:15:19 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_output.c,v 1.156 2005/09/11 21:57:24 christos Exp $ */
+/*     $NetBSD: ip_output.c,v 1.157 2005/09/11 22:15:19 seb Exp $      */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.156 2005/09/11 21:57:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.157 2005/09/11 22:15:19 seb Exp $");
 
 #include "opt_pfil_hooks.h"
 #include "opt_inet.h"
@@ -1728,7 +1728,7 @@
                /*
                 * Set the IP time-to-live for outgoing multicast packets.
                 */
-               error = ip_getoptval(m, &imo->imo_multicast_ttl, 255);
+               error = ip_getoptval(m, &imo->imo_multicast_ttl, MAXTTL);
                break;
 
        case IP_MULTICAST_LOOP:



Home | Main Index | Thread Index | Old Index