diff options
author | Yunchih Chen <yunchih.cat@gmail.com> | 2018-03-18 12:36:06 +0800 |
---|---|---|
committer | Yunchih Chen <yunchih.cat@gmail.com> | 2018-03-18 12:36:06 +0800 |
commit | 20cf5af5efee4685271b083de23b6e66ba48d3f1 (patch) | |
tree | 48e3fc76d277cefbc8b3cf4b833e8f001d4e8917 /include | |
parent | 9bb96d09226ecaafa45f2d153c6a9f176d593bb3 (diff) | |
download | nfcollect-20cf5af5efee4685271b083de23b6e66ba48d3f1.tar nfcollect-20cf5af5efee4685271b083de23b6e66ba48d3f1.tar.gz nfcollect-20cf5af5efee4685271b083de23b6e66ba48d3f1.tar.bz2 nfcollect-20cf5af5efee4685271b083de23b6e66ba48d3f1.tar.lz nfcollect-20cf5af5efee4685271b083de23b6e66ba48d3f1.tar.xz nfcollect-20cf5af5efee4685271b083de23b6e66ba48d3f1.tar.zst nfcollect-20cf5af5efee4685271b083de23b6e66ba48d3f1.zip |
Add header checksum
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index cfb454e..9b54143 100644 --- a/include/common.h +++ b/include/common.h @@ -6,6 +6,7 @@ int nfl_check_dir(const char *storage_dir); int nfl_storage_match_index(const char *fn); const char *nfl_get_filename(const char *dir, int id); uint32_t nfl_get_filesize(FILE *f); +uint32_t nfl_header_cksum(nflog_header_t *header); void nfl_cal_trunk(uint32_t total_size, uint32_t *trunk_cnt, uint32_t *trunk_size); void nfl_cal_entries(uint32_t trunk_size, uint32_t *entries_cnt); |