BlinkenArea - GitList
Repositories
Blog
Wiki
mips_sys
Code
Commits
Branches
Tags
Search
Tree:
902aa40
Branches
Tags
master
mips_sys
fw
checksum.h
replace email address in headers with blinkenarea address
Stefan Schuermans
commited
902aa40
at 2012-05-21 17:42:50
checksum.h
Blame
History
Raw
/* MIPS I system * Copyright 2011-2012 Stefan Schuermans <stefan@blinkenarea.org> * Copyleft GNU public license V2 or later * http://www.gnu.org/copyleft/gpl.html */ #ifndef CHECKSUM_H #define CHECKSUM_H /** * @brief generate an IP style checksum * @param[in] ptr pointer to data * @param[in] sz size of data * @param[in] pseudo1 additional value to include - set to 0 if not needed * @param[in] preude2 additional value to include - set to 0 if not needed * * can also be used to check a checksum (returns 0 if correct) */ unsigned short checksum(void *ptr, unsigned int sz, unsigned short pseudo1, unsigned short pseudo2); #endif // #ifdef CHECKSUM_H