sctp_crc32.h (188067) | sctp_crc32.h (188294) |
---|---|
1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31/* $KAME: sctp_crc32.h,v 1.5 2004/08/17 04:06:16 itojun Exp $ */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 * THE POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31/* $KAME: sctp_crc32.h,v 1.5 2004/08/17 04:06:16 itojun Exp $ */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/sctp_crc32.h 188067 2009-02-03 11:04:03Z rrs $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/sctp_crc32.h 188294 2009-02-07 18:49:42Z piso $"); |
35 36#ifndef __crc32c_h__ 37#define __crc32c_h__ 38 39#if defined(_KERNEL) || defined(__Userspace__) 40uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); 41void sctp_delayed_cksum(struct mbuf *); | 35 36#ifndef __crc32c_h__ 37#define __crc32c_h__ 38 39#if defined(_KERNEL) || defined(__Userspace__) 40uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); 41void sctp_delayed_cksum(struct mbuf *); |
42uint32_t update_crc32(uint32_t, unsigned char *, unsigned int); 43uint32_t sctp_finalize_crc32(uint32_t); |
|
42 43#endif /* _KERNEL */ 44 45#endif /* __crc32c_h__ */ | 44 45#endif /* _KERNEL */ 46 47#endif /* __crc32c_h__ */ |