1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Fixed in-line IP header checksumming. It was performed on the wrong header

in one case.
This commit is contained in:
Bruce Evans 1996-04-21 13:47:43 +00:00
parent 5e29e1ca51
commit e2184122c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15335

View File

@ -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);
}