Lines Matching +full:pseudo +full:- +full:differential
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
36 text written by Stevens (sorry, I can't remember the title -- but
42 Added differential checksum update function.
82 nbytes -= 2; in LibAliasInternetChecksum()
101 (pip->ip_hl << 2))); in IpChecksum()
113 nhdr = pip->ip_hl << 2; in TcpChecksum()
114 ntcp = ntohs(pip->ip_len) - nhdr; in TcpChecksum()
124 nbytes -= 2; in TcpChecksum()
132 /* "Pseudo-header" data */ in TcpChecksum()
133 ptr = (void *)&pip->ip_dst; in TcpChecksum()
136 ptr = (void *)&pip->ip_src; in TcpChecksum()
140 sum += htons((u_short)pip->ip_p); in TcpChecksum()
161 accumulate -= *new++; in DifferentialChecksum()
166 accumulate = -accumulate; in DifferentialChecksum()