sctp_crc32.h revision 1.1
11.1Srjs/* $KAME: sctp_crc32.h,v 1.5 2004/08/17 04:06:16 itojun Exp $ */ 21.1Srjs/* $NetBSD: sctp_crc32.h,v 1.1 2015/10/13 21:28:35 rjs Exp $ */ 31.1Srjs 41.1Srjs#ifndef __SCTP_CRC32C_H__ 51.1Srjs#define __SCTP_CRC32C_H__ 61.1Srjs 71.1Srjs/* 81.1Srjs * Copyright (c) 2001, 2002, 2004 Cisco Systems, Inc. 91.1Srjs * All rights reserved. 101.1Srjs * 111.1Srjs * Redistribution and use in source and binary forms, with or without 121.1Srjs * modification, are permitted provided that the following conditions 131.1Srjs * are met: 141.1Srjs * 1. Redistributions of source code must retain the above copyright 151.1Srjs * notice, this list of conditions and the following disclaimer. 161.1Srjs * 2. Redistributions in binary form must reproduce the above copyright 171.1Srjs * notice, this list of conditions and the following disclaimer in the 181.1Srjs * documentation and/or other materials provided with the distribution. 191.1Srjs * 3. All advertising materials mentioning features or use of this software 201.1Srjs * must display the following acknowledgement: 211.1Srjs * This product includes software developed by Cisco Systems, Inc. 221.1Srjs * 4. Neither the name of the project nor the names of its contributors 231.1Srjs * may be used to endorse or promote products derived from this software 241.1Srjs * without specific prior written permission. 251.1Srjs * 261.1Srjs * THIS SOFTWARE IS PROVIDED BY CISCO SYSTEMS AND CONTRIBUTORS ``AS IS'' AND 271.1Srjs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 281.1Srjs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 291.1Srjs * ARE DISCLAIMED. IN NO EVENT SHALL CISCO SYSTEMS OR CONTRIBUTORS BE LIABLE 301.1Srjs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 311.1Srjs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 321.1Srjs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 331.1Srjs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 341.1Srjs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 351.1Srjs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 361.1Srjs * SUCH DAMAGE. 371.1Srjs */ 381.1Srjs 391.1Srjs#include <sys/types.h> 401.1Srjs 411.1Srjs#ifndef SCTP_USE_ADLER32 421.1Srjs#if defined(_KERNEL) 431.1Srjsu_int32_t update_crc32(u_int32_t, unsigned char *, unsigned int); 441.1Srjs 451.1Srjsu_int32_t sctp_csum_finalize(u_int32_t); 461.1Srjs 471.1Srjs#endif /* _KERNEL */ 481.1Srjs#endif /* !SCTP_USE_ADLER32 */ 491.1Srjs#endif /* __SCTP_CRC32C_H__ */ 50