Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v retrieving revision 1.143 retrieving revision 1.144 diff -u -p -r1.143 -r1.144 --- src/sys/netinet/ip_input.c 2002/02/21 08:39:33 1.143 +++ src/sys/netinet/ip_input.c 2002/02/24 17:22:21 1.144 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.143 2002/02/21 08:39:33 itojun Exp $ */ +/* $NetBSD: ip_input.c,v 1.144 2002/02/24 17:22:21 martin Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -102,7 +102,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.143 2002/02/21 08:39:33 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.144 2002/02/24 17:22:21 martin Exp $"); #include "opt_gateway.h" #include "opt_pfil_hooks.h" @@ -139,6 +139,8 @@ __KERNEL_RCSID(0, "$NetBSD: ip_input.c,v /* just for gif_ttl */ #include #include "gif.h" +#include +#include "gre.h" #ifdef MROUTING #include @@ -1856,6 +1858,12 @@ ip_sysctl(name, namelen, oldp, oldlenp, &ip_gif_ttl)); #endif +#if NGRE > 0 + case IPCTL_GRE_TTL: + return(sysctl_int(oldp, oldlenp, newp, newlen, + &ip_gre_ttl)); +#endif + #ifndef IPNOPRIVPORTS case IPCTL_LOWPORTMIN: old = lowportmin;