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 rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.251.2.2 retrieving revision 1.256.6.2 diff -u -p -r1.251.2.2 -r1.256.6.2 --- src/sys/netinet/ip_input.c 2008/01/09 01:57:27 1.251.2.2 +++ src/sys/netinet/ip_input.c 2008/01/19 12:15:32 1.256.6.2 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.251.2.2 2008/01/09 01:57:27 matt Exp $ */ +/* $NetBSD: ip_input.c,v 1.256.6.2 2008/01/19 12:15:32 bouyer Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.251.2.2 2008/01/09 01:57:27 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.256.6.2 2008/01/19 12:15:32 bouyer Exp $"); #include "opt_inet.h" #include "opt_gateway.h" @@ -1954,7 +1954,7 @@ ip_forward(struct mbuf *m, int srcrt) type = ICMP_UNREACH; code = ICMP_UNREACH_NEEDFRAG; #if !defined(IPSEC) && !defined(FAST_IPSEC) - if ((rt = rtcache_getrt(&ipforward_rt)) != NULL) + if ((rt = rtcache_validate(&ipforward_rt)) != NULL) destmtu = rt->rt_ifp->if_mtu; #else /* @@ -1963,7 +1963,7 @@ ip_forward(struct mbuf *m, int srcrt) * tunnel MTU = if MTU - sizeof(IP) - ESP/AH hdrsiz * XXX quickhack!!! */ - if ((rt = rtcache_getrt(&ipforward_rt)) != NULL) { + if ((rt = rtcache_validate(&ipforward_rt)) != NULL) { struct secpolicy *sp; int ipsecerror; size_t ipsechdr;