DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

in_cksum(SLIB)


in_cksum -- compute the Internet checksum

Syntax

cc ... -lsocket

int
in_cksum(buf, len)
const u_short *buf;
int len;

Description

in_cksum computes the Internet checksum over len bytes of the supplied buffer. buf is expected to be short-word aligned.

For details on the Internet checksum algorithm, see RFC 1071.

Standards conformance

in_cksum is conformant with:

RFC 1071


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003