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.229.2.2 retrieving revision 1.229.2.3 diff -u -p -r1.229.2.2 -r1.229.2.3 --- src/sys/netinet/ip_input.c 2007/01/12 01:04:14 1.229.2.2 +++ src/sys/netinet/ip_input.c 2007/02/01 08:48:43 1.229.2.3 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.229.2.2 2007/01/12 01:04:14 ad Exp $ */ +/* $NetBSD: ip_input.c,v 1.229.2.3 2007/02/01 08:48:43 ad Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.229.2.2 2007/01/12 01:04:14 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.229.2.3 2007/02/01 08:48:43 ad Exp $"); #include "opt_inet.h" #include "opt_gateway.h" @@ -1692,7 +1692,7 @@ ip_rtaddr(struct in_addr dst) if (ipforward_rt.ro_rt == NULL) return NULL; } - return (ifatoia(ipforward_rt.ro_rt->rt_ifa)); + return ifatoia(ipforward_rt.ro_rt->rt_ifa); } /* @@ -1879,7 +1879,7 @@ ip_forward(struct mbuf *m, int srcrt) rtcache_check(&ipforward_rt); if (ipforward_rt.ro_rt == NULL) { sin->sin_family = AF_INET; - sin->sin_len = sizeof(struct sockaddr_in); + sin->sin_len = sizeof(*sin); sin->sin_addr = ip->ip_dst; rtcache_init(&ipforward_rt);