mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 18:54:52 +00:00
Un-spam ip_sum (arrgh - I don't know how this made
it into my patches :()
This commit is contained in:
parent
e70858e0c4
commit
6f59cd11ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30357
|
@ -17,13 +17,13 @@
|
|||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: slcompress.c,v 1.10 1997/08/25 00:29:28 brian Exp $
|
||||
* $Id: slcompress.c,v 1.11 1997/10/07 00:56:57 brian Exp $
|
||||
*
|
||||
* Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
|
||||
* - Initial distribution.
|
||||
*/
|
||||
#ifndef lint
|
||||
static char const rcsid[] = "$Id: slcompress.c,v 1.10 1997/08/25 00:29:28 brian Exp $";
|
||||
static char const rcsid[] = "$Id: slcompress.c,v 1.11 1997/10/07 00:56:57 brian Exp $";
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -425,7 +425,7 @@ sl_uncompress_tcp(u_char ** bufp,
|
|||
if (hlen > MAX_HDR)
|
||||
goto bad;
|
||||
BCOPY(ip, &cs->cs_ip, hlen);
|
||||
/* cs->cs_ip.ip_sum = 0; */
|
||||
cs->cs_ip.ip_sum = 0;
|
||||
cs->cs_hlen = hlen;
|
||||
INCR(sls_uncompressedin)
|
||||
return (len);
|
||||
|
@ -549,7 +549,6 @@ sl_uncompress_tcp(u_char ** bufp,
|
|||
{
|
||||
register u_short *bp = (u_short *) cp;
|
||||
|
||||
cs->cs_ip.ip_sum = 0;
|
||||
for (changes = 0; hlen > 0; hlen -= 2)
|
||||
changes += *bp++;
|
||||
changes = (changes & 0xffff) + (changes >> 16);
|
||||
|
|
Loading…
Reference in a new issue