/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SCTP kernel reference Implementation * Copyright (c) 1999-2001 Motorola, Inc. * Copyright (c) 2001-2003 International Business Machines, Corp. * * This file is part of the SCTP kernel reference Implementation * * SCTP Checksum functions * * Please send any bug reports or fixes you make to the * email address(es): * lksctp developers <[email protected]> * * Written or modified by: * Dinakaran Joseph * Jon Grimm <[email protected]> * Sridhar Samudrala <[email protected]> * * Rewritten to use libcrc32c by: * Vlad Yasevich <[email protected]> */ #ifndef __sctp_checksum_h__ #define __sctp_checksum_h__ #include <linux/types.h> #include <linux/sctp.h> #include <linux/crc32c.h> #include <linux/crc32.h> static inline __wsum sctp_csum_update(const void *buff, int len, __wsum sum) { … } static inline __wsum sctp_csum_combine(__wsum csum, __wsum csum2, int offset, int len) { … } static const struct skb_checksum_ops sctp_csum_ops = …; static inline __le32 sctp_compute_cksum(const struct sk_buff *skb, unsigned int offset) { … } #endif /* __sctp_checksum_h__ */