DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

in_cksum(SLIB-osr5)


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


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005