summaryrefslogtreecommitdiff
path: root/print-ahcp.c
Commit message (Collapse)AuthorAgeFilesLines
* Change istr[] (for invalid string) to be globalFrancois-Xavier Le Bail2016-01-281-1/+0
|
* Don't require IPv6 library support in order to support IPv6 addresses.Guy Harris2015-09-171-8/+0
| | | | | | | | | | | | | Have our own routines to convert between IPv4/IPv6 addresses and strings; that helps if, for example, we want to build binary versions of tcpdump for Windows that can run both on NT 5 (W2K/WXP), which doesn't have inet_ntop() or inet_pton(), and NT 6 (Vista/7/8/10), which do. It also means that we don't require IPv6 library support on UN*X to print addresses (if somebody wants to build tcpdump for older UN*Xes lacking IPv6 support in the system library or in add-on libraries). Get rid of files in the missing directory that we don't need, and various no-longer-necessary autoconf tests.
* 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
* Rename cstr[] to istr[] like invalid stringFrancois-Xavier Le Bail2015-09-061-10/+10
| | | | | | Moreover: Hamonise the output for error messages Add istr[] in print-babel.c
* Use the word 'invalid' for 'malformed' or 'corrupted' packetsFrancois-Xavier Le Bail2015-09-061-23/+23
| | | | | | An invalid packet could be: 1) built malformed originally by the sender or a fuzz tester, 2) became corrupted in transit.
* Printers must include 'netdissect.h', not 'interface.h'Francois-Xavier Le Bail2015-09-051-1/+1
|
* 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.
* clean K&R style up in function declarations a bitDenis Ovsienko2015-03-051-10/+18
| | | | The function body should have its opening brace on the next line.
* Netdissectify the to-name resolution routines.Guy Harris2014-04-041-6/+6
| | | | | | | | Have them take a netdissect_options * argument, and get the "no name resolution" flag from it. Move the declaration of dnaddr_string to addrtoname.h, along with the other XXX-to-string routines.
* make use of NETDISSECT_REWORKEDDenis Ovsienko2014-03-151-1/+2
| | | | | Update the already converted decoders to define the macro and to include interface.h instead of netdissect.h. Fix incurred compile errors.
* Fix compilation with old versions of MSVC.Gisle Vanem2014-03-111-8/+4
| | | | | Some old versions of MSVC have broken C preprocessors and failed to handle #ifdef/#else/#endif in the middle of a macro call. Just
* NDOize AHCP, OTV and VXLAN decodersDenis Ovsienko2014-03-081-88/+88
|
* make consistent use of the "tstr" idiomDenis Ovsienko2013-12-261-20/+20
| | | | | | | | For each decoder that has more than one instance of truncation signaling and prints the same string in each instance make sure that the string is declared as "static const char tstr[]" right after the initial includes block. Where necessary, replace fputs(s, stdout) with equivalent printf("%s", s).
* AHCP: fix compiling w/o IPv6Denis Ovsienko2013-11-261-2/+14
|
* AHCP: designated inits are C99, fix to be C89Gisle Vanem2013-11-221-11/+14
|
* AHCP: add version 1 decoderDenis Ovsienko2013-11-131-0/+401
Add new decoder for UDP port 5359 and a sample packet capture produced on a couple of Linux hosts (a server and a client). Besides that, an existing Babel capture contained AHCP packets and the current AHCP tests cover 0, 1 and 2 "-v" flags.