%PDF- %PDF-
Direktori : /backups/router/usr/local/include/flowd/ |
Current File : //backups/router/usr/local/include/flowd/crc32.h |
/* $Id: crc32.h,v 1.6 2006/10/21 04:34:08 djm Exp $ */ /* * Copyright (c) 2004,2005 Damien Miller <djm@mindrot.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* CRC32 */ #ifndef _CRC32_H #define _CRC32_H void flowd_crc32_start(u_int32_t *crcp); void flowd_crc32_update(const u_char *buf, u_int32_t size, u_int32_t *crcp); u_int32_t flowd_crc32(const u_char *buf, u_int32_t size); #endif /* _CRC32_H */