]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
11 years agoAdded support to print radius attribute CUI 385/head
Herwin Weststrate [Fri, 2 May 2014 08:36:45 +0000 (10:36 +0200)] 
Added support to print radius attribute CUI

Or Chargeable User Identity, specified in RFC 4372

11 years agoSort options and put in notes for unusable option letters.
Guy Harris [Fri, 2 May 2014 06:20:21 +0000 (23:20 -0700)] 
Sort options and put in notes for unusable option letters.

Sort the options alphabetically, and put in comments for the options
we're *currently* not using, to note that other versions of tcpdump use
them and that we should only use them for the same purposes.

11 years agoJust use #! /usr/bin/env perl.
Guy Harris [Fri, 2 May 2014 02:56:26 +0000 (19:56 -0700)] 
Just use #! /usr/bin/env perl.

That's a simpler way to deal with the Perl interpreter not being in
/usr/bin.

11 years agoDon't assume the Perl interpreter is in /usr/bin/perl.
Guy Harris [Fri, 2 May 2014 02:50:19 +0000 (19:50 -0700)] 
Don't assume the Perl interpreter is in /usr/bin/perl.

It's not necessarily there on all platforms.  Explicitly invoke the
interpreter to run the TESTonce script; that requires that, when you run
"make check", your path includes the directory in which the Perl
interpreter resides.

11 years agoSplit the OSPFv3 header and bodies into separate structures.
Guy Harris [Fri, 2 May 2014 02:48:10 +0000 (19:48 -0700)] 
Split the OSPFv3 header and bodies into separate structures.

Some compilers appear to put some padding before the ospf6_un union, so
the OSPFv3 packets aren't dissected correctly.  Pull the members of
that union into separate structures, and find the pointer to the OSPFv6
body by adding the header length to the pointer to the beginning of the
header.

11 years agoOops, forgot to fix missing/getopt_long.c to include getopt_long.h.
Guy Harris [Fri, 2 May 2014 02:17:42 +0000 (19:17 -0700)] 
Oops, forgot to fix missing/getopt_long.c to include getopt_long.h.

11 years agoRename our getopt.h to getopt_long.h.
Guy Harris [Fri, 2 May 2014 00:33:46 +0000 (17:33 -0700)] 
Rename our getopt.h to getopt_long.h.

That way, if we *do* have getopt_long(), we don't end up including our
getopt.h rather than the system's getopt.h.

11 years agoMerge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump
Guy Harris [Thu, 1 May 2014 23:13:22 +0000 (16:13 -0700)] 
Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdump

11 years agoDefine optarg, optind, opterr, and optopt.
Gisle Vanem [Thu, 1 May 2014 19:27:34 +0000 (12:27 -0700)] 
Define optarg, optind, opterr, and optopt.

That's necessary on Windows, where you're not going to get them defined
by getopt().

11 years agoDefine optarg, optind, opterr, and optopt.
Gisle Vanem [Thu, 1 May 2014 19:27:34 +0000 (12:27 -0700)] 
Define optarg, optind, opterr, and optopt.

That's necessary on Windows, where you're not going to get them defined
by getopt(), and where the ref/def model rather than the common model is
used.

11 years agoIt's getopt_long.c, not getopt.c
Guy Harris [Thu, 1 May 2014 16:37:10 +0000 (09:37 -0700)] 
It's getopt_long.c, not getopt.c

11 years agoPut in missing getopt_long() files.
Guy Harris [Thu, 1 May 2014 16:36:26 +0000 (09:36 -0700)] 
Put in missing getopt_long() files.

11 years agofix missing/inet_ntop.c again
Gisle Vanem [Thu, 1 May 2014 10:39:17 +0000 (14:39 +0400)] 
fix missing/inet_ntop.c again

All tests that should print IPv6-addresses failed since 'INET6' wasn't
set when my missing/inet_ntop.c was compiled. Due to "config.h" was not
included.

Also got rid of 2 warnings:
 Missing/inet_ntop.c:146:23: warning: 'cur.len' may be used
 uninitialized in this function [-Wmaybe-uninitialized]

The tests also failed since the inet_ntop_v6() was returning hex-chars
in upper-case. So this patch returns string in lower-case.

11 years agoNot all platforms we support define AF_INET6.
Guy Harris [Wed, 30 Apr 2014 22:29:40 +0000 (15:29 -0700)] 
Not all platforms we support define AF_INET6.

11 years agoUse getopt_long().
Guy Harris [Wed, 30 Apr 2014 22:28:06 +0000 (15:28 -0700)] 
Use getopt_long().

This requires us to check for it in the configure script and to include
a version of getopt_long() for the benefit of platforms that don't have
it; we pick up the FreeBSD version and tweak it a bit (eliminating some
features specific to the BSD version of getopt_long(), as we want to use
it only in a fashion portable to Linux/*BSD/Solaris/etc.)

We also get rid of the version of getopt() we supply for Windows in
favor of the version of getopt_long() we provide.

11 years agoEnable check with various versions of gcc (e.g. CC=gcc-4.8 ./configure)
Francois-Xavier Le Bail [Mon, 28 Apr 2014 13:41:50 +0000 (15:41 +0200)] 
Enable check with various versions of gcc (e.g. CC=gcc-4.8 ./configure)

This change avoid:
    lmp-v : TEST SKIPPED (compiler is not GCC)

works also with: CC=/path/to/gcc ./configure

11 years agoMerge remote-tracking branch 'bpf/master'
Denis Ovsienko [Sun, 27 Apr 2014 05:05:54 +0000 (09:05 +0400)] 
Merge remote-tracking branch 'bpf/master'

11 years agoFields in PPI headers are little-endian, not big-endian.
Guy Harris [Sat, 26 Apr 2014 22:39:06 +0000 (15:39 -0700)] 
Fields in PPI headers are little-endian, not big-endian.

Fixes GitHub issue #382.

11 years agoCoverity: Put 'notification_email: [email protected]' in comment
Francois-Xavier Le Bail [Thu, 24 Apr 2014 12:55:44 +0000 (14:55 +0200)] 
Coverity: Put 'notification_email: [email protected]' in comment

11 years agomake NFLOG test case conditional
Denis Ovsienko [Wed, 23 Apr 2014 19:47:41 +0000 (23:47 +0400)] 
make NFLOG test case conditional

Not all libpcap copies have the support for NFLOG (added in 2013), thus
only run the test when tcpdump was compiled for it.

11 years agoMore fixes for uint8_t being shorter than u_int8_t.
Guy Harris [Wed, 23 Apr 2014 18:53:22 +0000 (11:53 -0700)] 
More fixes for uint8_t being shorter than u_int8_t.

Fix a typo while we're at it.

11 years agoWe still need u_intN_t.
Guy Harris [Wed, 23 Apr 2014 17:56:20 +0000 (10:56 -0700)] 
We still need u_intN_t.

Some libpcap headers use them, and even if we change libpcap to use
uintN_t, we don't require that tcpdump 4.x go with libpcap 1.x - we
allow people to install the latest tcpdump even if they have an older
libpcap and don't want to install a newer one.

However, we now define them in terms of the C99 uintN_t types, rather
than trying to guess what's appropriate; using unsigned long long for
u_int64_t meant that, on some platforms, u_int64_t didn't match
PRI[doux]64, and using unsigned long obviously won't work on ILP32
platforms.

Also, we already had calls to the autoconf macros for C99 types; get rid
of the ones we added.

Also also, clean up a comment in tcpdump-stdinc.h.

11 years agoSome indentation cleanups from the previous checkin.
Guy Harris [Wed, 23 Apr 2014 07:47:03 +0000 (00:47 -0700)] 
Some indentation cleanups from the previous checkin.

11 years agoMore getting rid of old u_intN_t.
Guy Harris [Wed, 23 Apr 2014 07:45:13 +0000 (00:45 -0700)] 
More getting rid of old u_intN_t.

11 years agou_intN_t is dead, long live uintN_t.
Guy Harris [Wed, 23 Apr 2014 07:20:40 +0000 (00:20 -0700)] 
u_intN_t is dead, long live uintN_t.

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.

11 years agoupdate CREDITS
Denis Ovsienko [Tue, 22 Apr 2014 05:51:20 +0000 (09:51 +0400)] 
update CREDITS

11 years agoShorten sizeof to u_int, to match the %u format used with it.
Guy Harris [Mon, 21 Apr 2014 21:02:29 +0000 (14:02 -0700)] 
Shorten sizeof to u_int, to match the %u format used with it.

On LP64 and LLP64 platforms, sizeof returns a 64-bit value, which is
larger than an int or unsigned int, so if you add the result of sizeof
to a value shorter than 64 bits, you can't print the result with %u.

As an M3UA parameter header is much shorter than 2^32 bytes, we can
safely just cast sizeof(struct m3ua_param_header) to u_int.

11 years agoM3UA: add safety checks
Denis Ovsienko [Mon, 21 Apr 2014 14:51:43 +0000 (18:51 +0400)] 
M3UA: add safety checks

Add M3UA headers diagrams and check that message/parameter length allows
for at least respective header. Use TCHECK and signal malformed
structures.

11 years agoM3UA: improve code style
Denis Ovsienko [Mon, 21 Apr 2014 11:07:15 +0000 (15:07 +0400)] 
M3UA: improve code style

Merge m3ua.h into the only file that includes it (print-m3ua.c). Make
M3UA functions follow naming pattern, constify some of their arguments
and switch to ND_PRINT(). Make use of tok2str() and ternary conditional.
Eliminate declarations in the middle of code (C89).

11 years agoM3UA support added (GH #342)
Vyacheslav Trushkin [Fri, 22 Nov 2013 09:28:37 +0000 (16:28 +0700)] 
M3UA support added (GH #342)

SCTP's payload protocol identifiers added.

M3UA tests provided by wireshark
http://wiki.wireshark.org/SampleCaptures#Sigtran_Protocol_Family
But RFC4666 tells that parameter 0x0002 aren't carried by M3UA, so
it's OK that tcpdump doesn't know about this identifier.

Conflicts:
Makefile.in
interface.h
print-sctp.c
sctpConstants.h

-----------------------------------------------------------------------
The change to sctp_print() does three things:
* makes detection of ForCES consider PPID, not just port number
* verifies chunk length of all SCTP_DATA chunks, not just of ForCES
* adds PPID-specific dispatching with a particular case of M3UA

-- Denis

11 years agoWhen parsing information elements, check for the full length beforehand.
Guy Harris [Sat, 19 Apr 2014 02:09:49 +0000 (19:09 -0700)] 
When parsing information elements, check for the full length beforehand.

When parsing information elements, first check to make sure we have the
element ID and length, and fetch the length; then check to make sure we
have the entire element, including the information.  Remove those checks
from the handlers for individual elements.

This squelches a Coverity warning (when we check to make sure the length
remaining in the packet is enough for the element ID; the element ID is
one byte, and the loop continues as long as the length is non-zero, so
that's always true in the loop), and simplifies some other code.

Also check for the right length for fixed-length elements while we're at
it.

11 years agoThe item_len argument to ikev1_id_print() *is* used.
Guy Harris [Sat, 19 Apr 2014 00:53:01 +0000 (17:53 -0700)] 
The item_len argument to ikev1_id_print() *is* used.

So don't mark it as unused; that *might* be what's causing Coverity to
think that sizeof(struct ikev1_pl_id) is always < item_len and thus that
the "data" variable can never be null.

11 years agoSquelch a Coverity warning.
Guy Harris [Sat, 19 Apr 2014 00:43:09 +0000 (17:43 -0700)] 
Squelch a Coverity warning.

Make the lsa_p_prefix field as large as the largest possible prefix, so
that Coverity doesn't complain about going past the end of an array.

11 years agoCoverity: fix 'notification_email' value
Francois-Xavier Le Bail [Fri, 18 Apr 2014 09:09:57 +0000 (11:09 +0200)] 
Coverity: fix 'notification_email' value

11 years agofix incorrect IPv6 UDP and ICMPv6 checksums with routing headers
Francois-Xavier Le Bail [Thu, 17 Apr 2014 13:18:41 +0000 (15:18 +0200)] 
fix incorrect IPv6 UDP and ICMPv6 checksums with routing headers

- in this case the destination address used in the pseudo-header is
  that of the final destination : the last address of the routing header

- add a pcap file

11 years agoadd PacketLife captures for HSRP and IS-IS
Denis Ovsienko [Thu, 17 Apr 2014 10:27:22 +0000 (14:27 +0400)] 
add PacketLife captures for HSRP and IS-IS

11 years agoEIGRP: add IPv4 test cases from PacketLife
Denis Ovsienko [Wed, 16 Apr 2014 08:29:54 +0000 (12:29 +0400)] 
EIGRP: add IPv4 test cases from PacketLife

11 years agoOSPFv3: add PacketLife sample captures
Denis Ovsienko [Tue, 15 Apr 2014 15:47:52 +0000 (19:47 +0400)] 
OSPFv3: add PacketLife sample captures

11 years agoCoverity: update .travis.yml for analysis by pushing in 'coverity_scan' branch
Francois-Xavier Le Bail [Tue, 15 Apr 2014 14:24:36 +0000 (16:24 +0200)] 
Coverity: update .travis.yml for analysis by pushing in 'coverity_scan' branch

11 years agoCoverity: customize the build script
Francois-Xavier Le Bail [Tue, 15 Apr 2014 14:14:01 +0000 (16:14 +0200)] 
Coverity: customize the build script

- add a 'Verify Coverity Scan run condition' step to avoid multiple runs with
  Travis matrix.
- add a 'Verify Coverity Scan script test mode' step. if true no uploading, to
  avoid reaching the quota. usual processing: false.
- send 'description' as VERSION#SHA (e.g.: 4.6.0-PRE-GIT#c661f8b)

11 years agoCoverity: add the build script used by Travis-CI and Coverity Scan
Francois-Xavier Le Bail [Tue, 15 Apr 2014 14:08:51 +0000 (16:08 +0200)] 
Coverity: add the build script used by Travis-CI and Coverity Scan

from https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh

11 years agofix runaway ND_PRINT() parentheses
Gisle Vanem [Tue, 15 Apr 2014 13:14:51 +0000 (17:14 +0400)] 
fix runaway ND_PRINT() parentheses

11 years agoNFS: prepend %x format with 0x (mitigates GH #35)
Denis Ovsienko [Tue, 15 Apr 2014 08:43:47 +0000 (12:43 +0400)] 
NFS: prepend %x format with 0x (mitigates GH #35)

11 years agouse more PacketLife captures for test cases
Denis Ovsienko [Mon, 14 Apr 2014 10:12:46 +0000 (14:12 +0400)] 
use more PacketLife captures for test cases

Improve coverage for ISAKMP, IGMP and HDLC. Add initial coverage for STP
variants, DECnet, RADIUS, DTP, LACP, LLDP, CDP, VTP and UDLD.

11 years agoput Hannes' prior captures to work
Denis Ovsienko [Mon, 14 Apr 2014 10:00:57 +0000 (14:00 +0400)] 
put Hannes' prior captures to work

Add test cases for the .pcap files added in 2005 (complements commits
279c3bd80d7284 and 0dcd9ac).

11 years agoSMB: make use of tok2str() and ternary conditional
Denis Ovsienko [Mon, 14 Apr 2014 07:40:51 +0000 (11:40 +0400)] 
SMB: make use of tok2str() and ternary conditional

11 years agoNDOize the rest of util.c
Denis Ovsienko [Mon, 14 Apr 2014 06:53:46 +0000 (10:53 +0400)] 
NDOize the rest of util.c

11 years agoNFS: use tok2str()
Denis Ovsienko [Sun, 13 Apr 2014 15:28:05 +0000 (19:28 +0400)] 
NFS: use tok2str()

11 years agoPIM: add some v2 test cases
Denis Ovsienko [Sat, 12 Apr 2014 06:51:48 +0000 (10:51 +0400)] 
PIM: add some v2 test cases

The sample captures come from packetlife.net through courtesy of Jeremy
Stretch.

11 years agoremove unused function nfsreq_print()
Denis Ovsienko [Fri, 11 Apr 2014 14:31:40 +0000 (18:31 +0400)] 
remove unused function nfsreq_print()

11 years agoOSPFv3: fix SEGV on SPARCv9 (concurs with 8f6bca3)
Denis Ovsienko [Fri, 11 Apr 2014 09:18:20 +0000 (13:18 +0400)] 
OSPFv3: fix SEGV on SPARCv9 (concurs with 8f6bca3)

This bug arose on the OpenCSW build farm:

    ospf3_auth-vv                 : TEST FAILED

Dagobert Michelsen had helped to use the farm servers to debug.

11 years agoIEEE 802.11: use tok2str()
Denis Ovsienko [Fri, 11 Apr 2014 08:14:47 +0000 (12:14 +0400)] 
IEEE 802.11: use tok2str()

11 years agoPIM: refresh and use tok2str()
Denis Ovsienko [Thu, 10 Apr 2014 15:58:36 +0000 (19:58 +0400)] 
PIM: refresh and use tok2str()

Remove PIMv1 type 8 (Mode), which is missing from
draft-ietf-idmr-pim-spec-01 and is not decoded anyway.

List (w/o decoding) two PIMv2 types defined in 2007 and 2012.

11 years agoSCTP: use tok2str()
Denis Ovsienko [Thu, 10 Apr 2014 12:41:39 +0000 (16:41 +0400)] 
SCTP: use tok2str()

11 years agoDHCPv6: make use of tok2str()
Denis Ovsienko [Thu, 10 Apr 2014 10:47:31 +0000 (14:47 +0400)] 
DHCPv6: make use of tok2str()

11 years agoDHCPv6: axe a couple invariant expressions
Denis Ovsienko [Thu, 10 Apr 2014 10:23:17 +0000 (14:23 +0400)] 
DHCPv6: axe a couple invariant expressions

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.

11 years agoPPTP: use tok2str() and ternary conditional
Denis Ovsienko [Wed, 9 Apr 2014 12:08:00 +0000 (16:08 +0400)] 
PPTP: use tok2str() and ternary conditional

11 years agoMerge remote-tracking branch 'bpf/master'
Denis Ovsienko [Sun, 6 Apr 2014 17:22:43 +0000 (21:22 +0400)] 
Merge remote-tracking branch 'bpf/master'

11 years agofix a couple typos
Denis Ovsienko [Sat, 5 Apr 2014 09:49:45 +0000 (13:49 +0400)] 
fix a couple typos

11 years ago.travis.yml: install libdnet-dev and libsmi2-dev devel libs
Francois-Xavier Le Bail [Fri, 4 Apr 2014 14:30:39 +0000 (16:30 +0200)] 
.travis.yml: install libdnet-dev and libsmi2-dev devel libs

11 years agoDeclare default_print() only if NETDISSECT_REWORKED isn't defined.
Guy Harris [Fri, 4 Apr 2014 08:01:31 +0000 (01:01 -0700)] 
Declare default_print() only if NETDISSECT_REWORKED isn't defined.

Routines using netdissect_options should be using ndo->ndo_default_print.

11 years agoDefine NETDISSECT_REWORKED in a bunch of files, and fix the issues it finds.
Guy Harris [Fri, 4 Apr 2014 07:53:03 +0000 (00:53 -0700)] 
Define NETDISSECT_REWORKED in a bunch of files, and fix the issues it finds.

The only one it found was that routines in sigsecret.c needed to refer
to ndo->ndo_sigsecret, not just sigsecret.

11 years agoprint-ppp: fix "p[2] & 0x200 is always 0" found by Coverity and a bad shift
Francois-Xavier Le Bail [Fri, 4 Apr 2014 06:23:08 +0000 (08:23 +0200)] 
print-ppp: fix "p[2] & 0x200 is always 0" found by Coverity and a bad shift

11 years agoDefine NETDISSECT_REWORKED and fix the issues it provokes.
Guy Harris [Fri, 4 Apr 2014 07:46:33 +0000 (00:46 -0700)] 
Define NETDISSECT_REWORKED and fix the issues it provokes.

I.e., use the flags from the netdissect_options structure.

11 years agoNetdissectify the to-name resolution routines.
Guy Harris [Fri, 4 Apr 2014 07:43:46 +0000 (00:43 -0700)] 
Netdissectify the to-name resolution routines.

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.

11 years agoCheck for truncation in strings.
Guy Harris [Thu, 3 Apr 2014 21:49:07 +0000 (14:49 -0700)] 
Check for truncation in strings.

Found by Coverity.

11 years agoAdd missing break - thanks to Coverity for finding this one.
Guy Harris [Thu, 3 Apr 2014 20:20:42 +0000 (13:20 -0700)] 
Add missing break - thanks to Coverity for finding this one.

11 years agocoordinate ascii_print() prototypes for MSVC
Gisle Vanem [Thu, 3 Apr 2014 15:56:07 +0000 (19:56 +0400)] 
coordinate ascii_print() prototypes for MSVC

ascii_print() has conflicts between prototype and implementation. MSVC
doesn't allow adding a register modifier just like that.

11 years agoNDOize some generic code
Denis Ovsienko [Thu, 3 Apr 2014 13:40:30 +0000 (17:40 +0400)] 
NDOize some generic code

11 years agoimprove previous NDO conversions
Denis Ovsienko [Thu, 3 Apr 2014 12:02:07 +0000 (16:02 +0400)] 
improve previous NDO conversions

11 years agoNDOize timed decoder
Denis Ovsienko [Thu, 3 Apr 2014 11:37:46 +0000 (15:37 +0400)] 
NDOize timed decoder

11 years agorefine some declarations in header files
Denis Ovsienko [Thu, 3 Apr 2014 08:57:57 +0000 (12:57 +0400)] 
refine some declarations in header files

Remove duplicate declarations and move some other declarations to
addrtoname.h where they belong.

11 years agoNDOize Babel decoder
Denis Ovsienko [Thu, 3 Apr 2014 08:33:53 +0000 (12:33 +0400)] 
NDOize Babel decoder

11 years agoOLSR: work around MSVC preprocessor (re 48d8b05)
Gisle Vanem [Thu, 3 Apr 2014 05:33:25 +0000 (09:33 +0400)] 
OLSR: work around MSVC preprocessor (re 48d8b05)

11 years agoconvert some stray printf()'s
Denis Ovsienko [Wed, 2 Apr 2014 14:55:24 +0000 (18:55 +0400)] 
convert some stray printf()'s

11 years agofixup a few ND_DEFAULTPRINT() use cases
Denis Ovsienko [Wed, 2 Apr 2014 14:36:05 +0000 (18:36 +0400)] 
fixup a few ND_DEFAULTPRINT() use cases

11 years agoNDOize LLDP, PPP and RSVP decoders
Denis Ovsienko [Wed, 2 Apr 2014 12:39:18 +0000 (16:39 +0400)] 
NDOize LLDP, PPP and RSVP decoders

11 years agoNDOize DECnet, OSPF and TCP decoders
Denis Ovsienko [Wed, 2 Apr 2014 08:59:56 +0000 (12:59 +0400)] 
NDOize DECnet, OSPF and TCP decoders

11 years agomerge decnet.h into print-decnet.c
Denis Ovsienko [Wed, 2 Apr 2014 08:28:24 +0000 (12:28 +0400)] 
merge decnet.h into print-decnet.c

11 years agoconvert stray fputs() in print-esp.c
Denis Ovsienko [Wed, 2 Apr 2014 04:19:46 +0000 (08:19 +0400)] 
convert stray fputs() in print-esp.c

11 years agoNDOize SMB decoder
Denis Ovsienko [Wed, 2 Apr 2014 04:14:19 +0000 (08:14 +0400)] 
NDOize SMB decoder

11 years agoMerge remote-tracking branch 'bpf/master'
Denis Ovsienko [Tue, 1 Apr 2014 15:47:34 +0000 (19:47 +0400)] 
Merge remote-tracking branch 'bpf/master'

11 years agoNDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders
Denis Ovsienko [Tue, 1 Apr 2014 15:42:33 +0000 (19:42 +0400)] 
NDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders

11 years agoNDOize safeputs() and safeputchar()
Denis Ovsienko [Tue, 1 Apr 2014 13:29:55 +0000 (17:29 +0400)] 
NDOize safeputs() and safeputchar()

11 years agoNDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders
Denis Ovsienko [Tue, 1 Apr 2014 15:42:33 +0000 (19:42 +0400)] 
NDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders

11 years agoget rid of "no previous prototype" warnings for 'strlcat' and 'strlcpy'
Francois-Xavier Le Bail [Tue, 1 Apr 2014 15:14:28 +0000 (17:14 +0200)] 
get rid of "no previous prototype" warnings for 'strlcat' and 'strlcpy'

11 years agoNDOize safeputs() and safeputchar()
Denis Ovsienko [Tue, 1 Apr 2014 13:29:55 +0000 (17:29 +0400)] 
NDOize safeputs() and safeputchar()

11 years agoNDOize NFS decoder
Denis Ovsienko [Tue, 1 Apr 2014 12:05:33 +0000 (16:05 +0400)] 
NDOize NFS decoder

11 years agoOSPFv3: add authentication test case
Denis Ovsienko [Tue, 1 Apr 2014 06:49:54 +0000 (10:49 +0400)] 
OSPFv3: add authentication test case

The sample capture was produced with RFC6506 implementation by Jyotsna
Priya of TCS (work in progress).

11 years agoNDOize IEEE 802.11 decoder
Denis Ovsienko [Mon, 31 Mar 2014 12:46:12 +0000 (16:46 +0400)] 
NDOize IEEE 802.11 decoder

11 years agospell "%s" format strings (complements 708a68a)
Denis Ovsienko [Mon, 31 Mar 2014 11:36:01 +0000 (15:36 +0400)] 
spell "%s" format strings (complements 708a68a)

Make "%s" format string always reside in the print function call
explicitly such that the reader doesn't have to assess its safety.

11 years agoHandle DLT_PKTAP captures from OS X on non-OS X machines.
Guy Harris [Mon, 31 Mar 2014 05:40:08 +0000 (22:40 -0700)] 
Handle DLT_PKTAP captures from OS X on non-OS X machines.

11 years agoAdd support for Apple's DLT_PKTAP.
Guy Harris [Sun, 30 Mar 2014 20:29:51 +0000 (13:29 -0700)] 
Add support for Apple's DLT_PKTAP.

11 years agoFix some unsafe print calls.
Guy Harris [Sun, 30 Mar 2014 19:45:18 +0000 (12:45 -0700)] 
Fix some unsafe print calls.

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.

11 years agosquelch compiler warnings after previous commit
Denis Ovsienko [Sun, 30 Mar 2014 15:21:58 +0000 (19:21 +0400)] 
squelch compiler warnings after previous commit

It was OK with GCC but Clang wants <stdlib.h> back because of malloc()
and free() that shouldn't be declared implicitly.

11 years agoNDOize RX decoder
Denis Ovsienko [Sun, 30 Mar 2014 15:16:23 +0000 (19:16 +0400)] 
NDOize RX decoder

11 years agoamend previous commit to fix compiling with libsmi
Denis Ovsienko [Sun, 30 Mar 2014 06:48:43 +0000 (10:48 +0400)] 
amend previous commit to fix compiling with libsmi

11 years agoNDOize SNMP decoder
Denis Ovsienko [Sat, 29 Mar 2014 11:39:31 +0000 (15:39 +0400)] 
NDOize SNMP decoder

11 years agoNDOize Juniper DLT decoders
Denis Ovsienko [Sat, 29 Mar 2014 05:25:40 +0000 (09:25 +0400)] 
NDOize Juniper DLT decoders

11 years agoimprove some recent conversions
Denis Ovsienko [Sat, 29 Mar 2014 04:34:05 +0000 (08:34 +0400)] 
improve some recent conversions