summaryrefslogtreecommitdiff
path: root/checksum.c
Commit message (Collapse)AuthorAgeFilesLines
* Always include <config.h> rather than "config.h".Guy Harris2018-01-211-1/+1
| | | | | | | | This can prevent bizarre failures if, for example, you've done a configuration in the top-level source directory, leaving behind one config.h file, and then do an out-of-tree build in another directory, with different configuration options. This way, we always pick up the same config.h, in the build directory.
* Use quoted include netdissect-stdinc.h instead of angle-bracketed oneFrancois-Xavier Le Bail2018-01-211-1/+1
|
* Remove all storage class specifier 'register'Francois-Xavier Le Bail2017-12-131-3/+3
| | | | | | Let the compiler do the optimizations (or not) based on build options. Avoid 'value has been optimized out' messages in gdb using '-O0'.
* zero change: update Hannes Gredler's emailHannes Gredler2017-07-281-1/+1
|
* libnetdissect code must include 'netdissect.h', not 'interface.h'Francois-Xavier Le Bail2015-09-111-1/+1
| | | | | | | Moreover: Remove netdissect.h include in interface.h Move thiszone declaration in netdissect.h Update a comment
* Rename 'tcpdump-stdinc.h' to 'netdissect-stdinc.h'Francois-Xavier Le Bail2015-09-101-1/+1
| | | | Get the full log via: git log --follow netdissect-stdinc.h
* Get rid of warnings on systems that provide index().Guy Harris2015-08-311-4/+4
| | | | | | | Rename the variable "index" to "idx", so that if the environment in which we're compiling tcpdump happens to declare the index() function (the old V7 name for the function called strchr() in S3/S5 and ANSI C), we don't get compiler warnings.
* dismiss NETDISSECT_REWORKED macroDenis Ovsienko2015-03-221-1/+0
| | | | | | | The purpose of this macro was to enable the file-by-file switch to NDO, after which only tcpdump.c had a use of it and the definitions guarded by it. Update tcpdump.c not to require them any more and dismiss the unused definitions.
* u_intN_t is dead, long live uintN_t.Guy Harris2014-04-231-11/+11
| | | | | | | | | And, as we require at least autoconf 2.61, and as autoconf 2.61 and later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to define the uintN_t and intN_t macros if the system doesn't define them for us. This lets us get rid of bitypes.h as well.
* Define NETDISSECT_REWORKED in a bunch of files, and fix the issues it finds.Guy Harris2014-04-041-0/+1
| | | | | The only one it found was that routines in sigsecret.c needed to refer to ndo->ndo_sigsecret, not just sigsecret.
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-5/+0
| | | | | | Remove lots of $Header's and a few $Id's that all belong to the former CVS repository of tcpdump itself. These keywords have been frozen since the migration to git in late 2008.
* whitespace changesMichael Richardson2014-01-011-5/+5
|
* Get rid of unnecessary assignment.Guy Harris2012-11-301-2/+0
| | | | checksum isn't used until it's set later.
* Precompute CRC-10 table.Kovarththanan Rajaratnam2010-02-201-4/+63
| | | | We now precompute the CRC-10 table allowing us to mark it as const. The table was precomputed using a Python snippet (included as comment)
* print shouldbe checksum for broken OSI checksum, remove osi_cksum()hannes2006-09-251-1/+60
|
* remove unused header fileshannes2006-02-091-3/+1
|
* fix typo, use consistent namespacehannes2006-02-091-4/+4
|
* move the crc10 verification to a new file checksum.c (will add other ↵hannes2006-02-091-0/+80
checksumming routines later to this file), init shred checksumming tables with init_checksum(), assume network byte order for tag correlation ID in the ATM OAM cell printer