From e2184122c5bf11c1132e5c70bef2e2e1cac6112e Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 21 Apr 1996 13:47:43 +0000 Subject: [PATCH] Fixed in-line IP header checksumming. It was performed on the wrong header in one case. --- sys/netinet/ip_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 8400c46054ed..5e82035edff3 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 - * $Id: ip_output.c,v 1.34 1996/04/03 13:52:20 phk Exp $ + * $Id: ip_output.c,v 1.35 1996/04/18 15:49:06 wollman Exp $ */ #define _IP_VHL @@ -413,7 +413,7 @@ ip_output(m0, opt, ro, flags, imo) mhip->ip_off = htons((u_short)mhip->ip_off); mhip->ip_sum = 0; if (mhip->ip_vhl == IP_VHL_BORING) { - mhip->ip_sum = in_cksum_hdr(ip); + mhip->ip_sum = in_cksum_hdr(mhip); } else { mhip->ip_sum = in_cksum(m, mhlen); }