diff options
author | bde <bde@FreeBSD.org> | 1996-04-21 13:47:43 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-04-21 13:47:43 +0000 |
commit | 22a2f6a4fcf17c75d15282a1d1d61f0c8adc0bb2 (patch) | |
tree | 592f810fcc374d6371a927974c6c4b87436f1349 /sys/netinet | |
parent | 5cc0c215315a9bd2c0f22b4f3104365d85c307ca (diff) | |
download | FreeBSD-src-22a2f6a4fcf17c75d15282a1d1d61f0c8adc0bb2.zip FreeBSD-src-22a2f6a4fcf17c75d15282a1d1d61f0c8adc0bb2.tar.gz |
Fixed in-line IP header checksumming. It was performed on the wrong header
in one case.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 8400c46..5e82035 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 @@ sendit: 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); } |