summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* DHCPv6: axe a couple invariant expressionsDenis Ovsienko2014-04-101-6/+1
| | | | | | | | | The "type > 65535" condition in dhcp6opt_name() was always false because the function is given a 16-bit argument. The "dh6->dh6_msgtype" condition in dhcp6_print() was always true because name == NULL only when none of the preceding switch block cases matched.
* PPTP: use tok2str() and ternary conditionalDenis Ovsienko2014-04-091-170/+84
|
* Merge remote-tracking branch 'bpf/master'Denis Ovsienko2014-04-0699-613/+629
|\
| * Declare default_print() only if NETDISSECT_REWORKED isn't defined.Guy Harris2014-04-041-1/+2
| | | | | | | | Routines using netdissect_options should be using ndo->ndo_default_print.
| * Define NETDISSECT_REWORKED in a bunch of files, and fix the issues it finds.Guy Harris2014-04-0415-3/+18
| | | | | | | | | | The only one it found was that routines in sigsecret.c needed to refer to ndo->ndo_sigsecret, not just sigsecret.
| * Define NETDISSECT_REWORKED and fix the issues it provokes.Guy Harris2014-04-041-5/+6
| | | | | | | | I.e., use the flags from the netdissect_options structure.
| * Netdissectify the to-name resolution routines.Guy Harris2014-04-0485-604/+603
| | | | | | | | | | | | | | | | 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.
* | fix a couple typosDenis Ovsienko2014-04-063-3/+3
| |
* | .travis.yml: install libdnet-dev and libsmi2-dev devel libsFrancois-Xavier Le Bail2014-04-041-1/+1
| |
* | print-ppp: fix "p[2] & 0x200 is always 0" found by Coverity and a bad shiftFrancois-Xavier Le Bail2014-04-041-2/+2
|/
* Check for truncation in strings.Guy Harris2014-04-031-1/+2
| | | | Found by Coverity.
* Add missing break - thanks to Coverity for finding this one.Guy Harris2014-04-031-0/+1
|
* coordinate ascii_print() prototypes for MSVCGisle Vanem2014-04-031-1/+1
| | | | | ascii_print() has conflicts between prototype and implementation. MSVC doesn't allow adding a register modifier just like that.
* NDOize some generic codeDenis Ovsienko2014-04-0316-53/+51
|
* improve previous NDO conversionsDenis Ovsienko2014-04-038-12/+18
|
* NDOize timed decoderDenis Ovsienko2014-04-034-53/+38
|
* refine some declarations in header filesDenis Ovsienko2014-04-033-13/+3
| | | | | Remove duplicate declarations and move some other declarations to addrtoname.h where they belong.
* NDOize Babel decoderDenis Ovsienko2014-04-034-90/+94
|
* OLSR: work around MSVC preprocessor (re 48d8b05)Gisle Vanem2014-04-031-3/+6
|
* convert some stray printf()'sDenis Ovsienko2014-04-024-21/+17
|
* fixup a few ND_DEFAULTPRINT() use casesDenis Ovsienko2014-04-023-6/+6
|
* NDOize LLDP, PPP and RSVP decodersDenis Ovsienko2014-04-0215-922/+929
|
* NDOize DECnet, OSPF and TCP decodersDenis Ovsienko2014-04-0210-623/+621
|
* merge decnet.h into print-decnet.cDenis Ovsienko2014-04-023-3/+439
|
* convert stray fputs() in print-esp.cDenis Ovsienko2014-04-021-1/+1
|
* NDOize SMB decoderDenis Ovsienko2014-04-029-389/+388
|
* Merge remote-tracking branch 'bpf/master'Denis Ovsienko2014-04-010-0/+0
|\
| * NDOize EAP, IEEE CFM, lwres, SIP & Syslog decodersDenis Ovsienko2014-04-019-249/+238
| |
| * NDOize safeputs() and safeputchar()Denis Ovsienko2014-04-0120-54/+47
| |
* | NDOize EAP, IEEE CFM, lwres, SIP & Syslog decodersDenis Ovsienko2014-04-019-249/+238
| |
* | NDOize safeputs() and safeputchar()Denis Ovsienko2014-04-0120-54/+47
| |
* | get rid of "no previous prototype" warnings for 'strlcat' and 'strlcpy'Francois-Xavier Le Bail2014-04-012-0/+4
|/
* NDOize NFS decoderDenis Ovsienko2014-04-015-493/+518
|
* OSPFv3: add authentication test caseDenis Ovsienko2014-04-013-0/+11
| | | | | The sample capture was produced with RFC6506 implementation by Jyotsna Priya of TCS (work in progress).
* NDOize IEEE 802.11 decoderDenis Ovsienko2014-03-314-382/+407
|
* spell "%s" format strings (complements 708a68a)Denis Ovsienko2014-03-316-16/+16
| | | | | Make "%s" format string always reside in the print function call explicitly such that the reader doesn't have to assess its safety.
* Handle DLT_PKTAP captures from OS X on non-OS X machines.Guy Harris2014-03-301-0/+24
|
* Add support for Apple's DLT_PKTAP.Guy Harris2014-03-304-0/+172
|
* Fix some unsafe print calls.Guy Harris2014-03-301-2/+2
| | | | | | | | | | | | | The format argument to a printf-like routine should either be a constant string or a variable *known* to point to a format string. It should not be an arbitrary string you're trying to print - if that string contains % characters, they will be interpreted as part of a format specification, which can cause crashes (e.g., "%s", if what appears to be an argument corresponding to that %s, when interpreted as a pointer, doesn't point to a valid string) or other incorrect behavior. If you want to print a string, use "%s" as the format and the string as the argument.
* squelch compiler warnings after previous commitDenis Ovsienko2014-03-301-0/+1
| | | | | It was OK with GCC but Clang wants <stdlib.h> back because of malloc() and free() that shouldn't be declared implicitly.
* NDOize RX decoderDenis Ovsienko2014-03-304-466/+476
|
* amend previous commit to fix compiling with libsmiDenis Ovsienko2014-03-301-8/+12
|
* NDOize SNMP decoderDenis Ovsienko2014-03-295-290/+293
|
* NDOize Juniper DLT decodersDenis Ovsienko2014-03-294-205/+222
|
* improve some recent conversionsDenis Ovsienko2014-03-292-4/+2
|
* remove more stray prototypesDenis Ovsienko2014-03-282-4/+0
|
* NDOize AppleTalk, CDP and Kerberos decodersDenis Ovsienko2014-03-2812-280/+275
|
* NDOize ISO CLNS decoderDenis Ovsienko2014-03-2813-627/+621
|
* print-juniper: add a missing breakFrancois-Xavier Le Bail2014-03-271-0/+1
|
* NDOize ForCES, MPLS LSP ping and OLSR decodersDenis Ovsienko2014-03-277-445/+458
|