]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
9 years agoAdd program_name field in the netdissect_options structure
Francois-Xavier Le Bail [Mon, 7 Sep 2015 17:04:50 +0000 (19:04 +0200)] 
Add program_name field in the netdissect_options structure

A program that use the library should set it. Done for tcpdump.
ndo_error() and ndo_warning() print now 'ndo->program_name'.

Moreover:
Fix indent

9 years agoRemove obsolete comments
Francois-Xavier Le Bail [Mon, 7 Sep 2015 13:01:46 +0000 (15:01 +0200)] 
Remove obsolete comments

9 years agoFix a comment
Francois-Xavier Le Bail [Sun, 6 Sep 2015 20:03:23 +0000 (22:03 +0200)] 
Fix a comment

9 years agoRename cstr[] to istr[] like invalid string
Francois-Xavier Le Bail [Sun, 6 Sep 2015 18:05:50 +0000 (20:05 +0200)] 
Rename cstr[] to istr[] like invalid string

Moreover:
Hamonise the output for error messages
Add istr[] in print-babel.c

9 years agoDHCPv6: Update Status Codes with RFCs/IANA names
Francois-Xavier Le Bail [Sun, 6 Sep 2015 12:20:37 +0000 (14:20 +0200)] 
DHCPv6: Update Status Codes with RFCs/IANA names

9 years agoUse the word 'invalid' for 'malformed' or 'corrupted' packets
Francois-Xavier Le Bail [Sun, 6 Sep 2015 11:34:05 +0000 (13:34 +0200)] 
Use the word 'invalid' for 'malformed' or 'corrupted' packets

An invalid packet could be:
1) built malformed originally by the sender or a fuzz tester,
2) became corrupted in transit.

9 years agoPrinters must include 'netdissect.h', not 'interface.h'
Francois-Xavier Le Bail [Sat, 5 Sep 2015 21:35:58 +0000 (23:35 +0200)] 
Printers must include 'netdissect.h', not 'interface.h'

9 years agoFunctions in libnetdissect must use ndo_error() function
Francois-Xavier Le Bail [Sat, 5 Sep 2015 20:28:04 +0000 (22:28 +0200)] 
Functions in libnetdissect must use ndo_error() function

9 years agoamend some comments in util-print.c
Denis Ovsienko [Sat, 5 Sep 2015 18:39:20 +0000 (19:39 +0100)] 
amend some comments in util-print.c

When I needed to print a string and didn't remember which of the three
functions fn_print(), fn_printn() and fn_printzp() was the right one
for the data, every time it would end up in reading through all of them
and forgetting the difference shortly after the commit.

Just having it explained in the comments should work better.

9 years agoPrinters must use ndo_error() function (via ndo->ndo_error)
Francois-Xavier Le Bail [Sat, 5 Sep 2015 18:11:12 +0000 (20:11 +0200)] 
Printers must use ndo_error() function (via ndo->ndo_error)

9 years agoKeep the two line numbers in esp_print_decode_onesecret() separate.
Guy Harris [Tue, 1 Sep 2015 00:16:07 +0000 (17:16 -0700)] 
Keep the two line numbers in esp_print_decode_onesecret() separate.

Have the line number for the file we're opening for "file" be separate
from the line number we're passed.  That avoids warnings, and makes it
clearer *which* line number we're using.

9 years agoAvoid collison with error(), clean up code a bit.
Guy Harris [Mon, 31 Aug 2015 23:57:07 +0000 (16:57 -0700)] 
Avoid collison with error(), clean up code a bit.

Rename the variable to "error_status", as that's what it represents, and
as that doesn't collide with the error() function.  Don't set it and
then not use the resulting value.

9 years agoAvoid collisions with isascii().
Guy Harris [Mon, 31 Aug 2015 23:19:09 +0000 (16:19 -0700)] 
Avoid collisions with isascii().

Those variables are counts, so just give them names that reflects that.

9 years agoAvoid colliding with a tcpdump routine's name.
Guy Harris [Mon, 31 Aug 2015 23:17:03 +0000 (16:17 -0700)] 
Avoid colliding with a tcpdump routine's name.

Just call the variable "data", not "print_data"; we're obviously
printing it.

9 years agoDon't collide with strlen().
Guy Harris [Mon, 31 Aug 2015 23:15:32 +0000 (16:15 -0700)] 
Don't collide with strlen().

strlen() is a standard C function, so don't use its name for a variable.

9 years agoGet rid of warnings on systems that provide index().
Guy Harris [Mon, 31 Aug 2015 23:12:43 +0000 (16:12 -0700)] 
Get rid of warnings on systems that provide index().

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.

9 years agoThe official #define for 32-bit and 64-bit Windows is _WIN32.
Guy Harris [Mon, 31 Aug 2015 21:43:15 +0000 (14:43 -0700)] 
The official #define for 32-bit and 64-bit Windows is _WIN32.

It's _WIN32, with a leading underscore, not WIN32.  See, for example:

https://sourceforge.net/p/predef/wiki/OperatingSystems/

and

https://msdn.microsoft.com/en-us/library/b0084kay.aspx

*Some* environments may also define WIN32, but we shouldn't depend on
that.

9 years agoFix to reflect dBm radiotap values now being displayed as "dBm" rather than "dB".
Guy Harris [Wed, 26 Aug 2015 19:01:28 +0000 (12:01 -0700)] 
Fix to reflect dBm radiotap values now being displayed as "dBm" rather than "dB".

9 years agoMerge pull request #479 from rlucia/patch-1
Guy Harris [Wed, 26 Aug 2015 18:41:01 +0000 (11:41 -0700)] 
Merge pull request #479 from rlucia/patch-1

dBm values get printed as dB

9 years agodBm values get printed as dB 479/head
Rocco Lucia [Wed, 26 Aug 2015 16:10:13 +0000 (18:10 +0200)] 
dBm values get printed as dB

This is a very old bug, and I think it's time to get fixed :-)

9 years agoAdd a test that makes unaligned accesses.
Guy Harris [Tue, 25 Aug 2015 18:18:38 +0000 (11:18 -0700)] 
Add a test that makes unaligned accesses.

From GitHub issue #478, in which tcpdump crashed on SPARC due to making
an unaligned access.

9 years agoDon't assume the ONC RPC header is nicely aligned.
Guy Harris [Tue, 25 Aug 2015 01:14:55 +0000 (18:14 -0700)] 
Don't assume the ONC RPC header is nicely aligned.

Use UNALIGNED_MEMCPY() to extract the XID from it; otherwise, this might
crash on machines that require strict alignment (e.g., SPARC machines).

Fixes GitHub issue #478.

9 years agoCompile with '-Wpedantic' in devel mode as an attempt to get gcc-ism
Francois-Xavier Le Bail [Wed, 19 Aug 2015 14:50:22 +0000 (16:50 +0200)] 
Compile with '-Wpedantic' in devel mode as an attempt to get gcc-ism

9 years agoFix warnings as "comma at end of enumerator list"
Francois-Xavier Le Bail [Wed, 19 Aug 2015 14:44:52 +0000 (16:44 +0200)] 
Fix warnings as "comma at end of enumerator list"

The warnings were:
comma at end of enumerator list [-Wpedantic]

9 years agoFix a warning as "ISO C90 forbids mixed declarations and code"
Francois-Xavier Le Bail [Tue, 18 Aug 2015 18:59:31 +0000 (20:59 +0200)] 
Fix a warning as "ISO C90 forbids mixed declarations and code"

The warning was:
./tcpdump.c: In function 'droproot':
./tcpdump.c:496:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
   int ret = capng_change_id(pw->pw_uid, pw->pw_gid, CAPNG_NO_FLAG);
   ^

9 years agoCompile with '-Wdeclaration-after-statement' in devel mode
Francois-Xavier Le Bail [Tue, 18 Aug 2015 18:49:32 +0000 (20:49 +0200)] 
Compile with '-Wdeclaration-after-statement' in devel mode

9 years agoFix warnings as "ISO C90 does not support the '%T' gnu_strftime format"
Francois-Xavier Le Bail [Tue, 18 Aug 2015 18:29:42 +0000 (20:29 +0200)] 
Fix warnings as "ISO C90 does not support the '%T' gnu_strftime format"

The complete warnings were:
ISO C90 does not support the '%T' gnu_strftime format [-Wformat=]

9 years agoFix warnings as "ISO C90 does not support the '%lf' gnu_printf format"
Francois-Xavier Le Bail [Tue, 18 Aug 2015 16:15:45 +0000 (18:15 +0200)] 
Fix warnings as "ISO C90 does not support the '%lf' gnu_printf format"

The complete warnings were:
ISO C90 does not support the '%lf' gnu_printf format [-Wformat=]

9 years agoBabel: address a couple compiler warnings
Denis Ovsienko [Thu, 13 Aug 2015 20:40:49 +0000 (21:40 +0100)] 
Babel: address a couple compiler warnings

677:31: warning: variable ‘router_id’ set but not used
676:72: warning: variable ‘hopc’ set but not used

9 years agoupdate CREDITS
Denis Ovsienko [Thu, 13 Aug 2015 20:36:33 +0000 (21:36 +0100)] 
update CREDITS

9 years agoBabel: add decoder for source-specific extension.
Matthieu Boutier [Thu, 6 Feb 2014 23:38:31 +0000 (23:38 +0000)] 
Babel: add decoder for source-specific extension.

9 years agoFix typo in comment.
Guy Harris [Tue, 11 Aug 2015 18:50:43 +0000 (11:50 -0700)] 
Fix typo in comment.

9 years agoGive more details about packet time stamps.
Guy Harris [Wed, 29 Jul 2015 16:17:30 +0000 (09:17 -0700)] 
Give more details about packet time stamps.

Don't speak of "Ethernet" and "wire", as you might not be sniffing an
Ethernet or, indeed, any form of wired network.

Note that not only could there be a delay between the point at which the
interface is finished receiving the packet and when an interrupt is
delivered (whether due to bus delays, polling rather than immediate
interrupts being used, or delays in the CPU responding to the interrupt,
or more than one of those) but also a delay between the point at which
the kernel responds to the interrupt and the point at which it actually
applies a time stamp to the packet.

9 years agoGive a URL for a paper about that protocol.
Guy Harris [Wed, 29 Jul 2015 16:13:38 +0000 (09:13 -0700)] 
Give a URL for a paper about that protocol.

9 years agoCompile with -Wshadow
Francois-Xavier Le Bail [Wed, 29 Jul 2015 11:50:38 +0000 (13:50 +0200)] 
Compile with -Wshadow

9 years agoupdate reference for UDP port 3799
Denis Ovsienko [Fri, 24 Jul 2015 14:01:02 +0000 (15:01 +0100)] 
update reference for UDP port 3799

9 years agoMerge pull request #470 from qnet-herwin/radius_rfc3580
Denis Ovsienko [Wed, 22 Jul 2015 10:21:17 +0000 (11:21 +0100)] 
Merge pull request #470 from qnet-herwin/radius_rfc3580

I haven't included any unit tests, because the trivial change this is. It has been tested locally and it has been seen working there. It doesn't break any existing unit tests either.

Fun fact: this value is used to assign a VLAN to a port or WLAN user, I wouldn't be surprised if it's the most common used value for Tunnel-Type.

9 years agoAdd Value 13 "VLAN" to Tunnel-Type RADIUS attribute 470/head
Herwin Weststrate [Wed, 22 Jul 2015 08:47:57 +0000 (10:47 +0200)] 
Add Value 13 "VLAN" to Tunnel-Type RADIUS attribute

9 years agoExpand a comment to indicate what the "16 bits" are.
Guy Harris [Thu, 16 Jul 2015 20:49:57 +0000 (13:49 -0700)] 
Expand a comment to indicate what the "16 bits" are.

9 years agoNetBIOS Name Service can run over TCP.
Guy Harris [Tue, 14 Jul 2015 20:47:32 +0000 (13:47 -0700)] 
NetBIOS Name Service can run over TCP.

9 years agoClean up the port definitions.
Guy Harris [Tue, 14 Jul 2015 20:39:07 +0000 (13:39 -0700)] 
Clean up the port definitions.

From Bill Parker: sort the port definitions, add some additional
ports, and use #ifndef/#endif around all definitions.

From me: use consistent indentation, add the RFCs for NetBIOS-over-TCP
to the #defines for the NBT ports, and don't keep the IPv6 ports
separate.

9 years agoISOCLNS: Fix some warnings
Francois-Xavier Le Bail [Mon, 13 Jul 2015 09:46:27 +0000 (11:46 +0200)] 
ISOCLNS: Fix some warnings

The warnings were:
./print-isoclns.c: In function 'osi_print_cksum':
./print-isoclns.c:3107:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             || length > ndo->ndo_snaplen
                       ^
./print-isoclns.c:3108:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             || checksum_offset > ndo->ndo_snaplen
                                ^

9 years agoAdd Bill Parker to the credits.
Guy Harris [Mon, 13 Jul 2015 20:55:41 +0000 (13:55 -0700)] 
Add Bill Parker to the credits.

9 years agoAdd checks for strdup() failure.
Bill Parker [Mon, 13 Jul 2015 20:04:08 +0000 (13:04 -0700)] 
Add checks for strdup() failure.

9 years agoAdd checks for strdup() failure.
Bill Parker [Mon, 13 Jul 2015 19:59:46 +0000 (12:59 -0700)] 
Add checks for strdup() failure.

9 years agoAdd checks for strdup() failure.
Bill Parker [Mon, 13 Jul 2015 19:55:29 +0000 (12:55 -0700)] 
Add checks for strdup() failure.

9 years agoWe're not doing setjmp/longjmp, so no need for static variables.
Guy Harris [Mon, 13 Jul 2015 19:50:01 +0000 (12:50 -0700)] 
We're not doing setjmp/longjmp, so no need for static variables.

We stopped doing setjmp/longjmp a while ago (it could cause issues on
multiple platforms), so we don't need to make pointer variables static
in the lookup routines.

9 years agorefine use of nameser.h
Denis Ovsienko [Mon, 13 Jul 2015 09:12:03 +0000 (10:12 +0100)] 
refine use of nameser.h

Move the port number #define's to the TCP and UDP files such that they
don't require nameser.h anymore. Update the TCP printer to disregard the
multicast DNS port as it is UDP-only.

9 years agoFix warnings as "declaration of 'x' shadows a global declaration"
Francois-Xavier Le Bail [Sun, 12 Jul 2015 19:37:02 +0000 (21:37 +0200)] 
Fix warnings as "declaration of 'x' shadows a global declaration"

The warnings were:
./tcpdump.c: In function 'show_tstamp_types_and_exit':
./tcpdump.c:220:56: warning: declaration of 'pd' shadows a global declaration [-Wshadow]
 show_tstamp_types_and_exit(const char *device, pcap_t *pd)
                                                        ^
./tcpdump.c:200:16: warning: shadowed declaration is here [-Wshadow]
 static pcap_t *pd;
                ^
./tcpdump.c: In function 'show_dlts_and_exit':
./tcpdump.c:253:48: warning: declaration of 'pd' shadows a global declaration [-Wshadow]
 show_dlts_and_exit(const char *device, pcap_t *pd)
                                                ^
./tcpdump.c:200:16: warning: shadowed declaration is here [-Wshadow]
 static pcap_t *pd;
                ^

9 years agoFix warnings as "declaration of 'x' shadows a previous local"
Francois-Xavier Le Bail [Sun, 12 Jul 2015 18:32:35 +0000 (20:32 +0200)] 
Fix warnings as "declaration of 'x' shadows a previous local"

9 years agoRX: Fix 168 warnings as "declaration of 'x' shadows a previous local"
Francois-Xavier Le Bail [Sun, 12 Jul 2015 12:51:04 +0000 (14:51 +0200)] 
RX: Fix 168 warnings as "declaration of 'x' shadows a previous local"

An example of these warnings is:
./print-rx.c: In function 'fs_print':
./print-rx.c:774:35: warning: declaration of 'i' shadows a previous local [-Wshadow]
 #define UINTOUT() { unsigned long i; \
                                   ^
./print-rx.c:916:4: note: in expansion of macro 'UINTOUT'
    UINTOUT();
    ^
./print-rx.c:883:16: warning: shadowed declaration is here [-Wshadow]
  unsigned long i;
                ^

9 years agoBGP: Fix a warning
Francois-Xavier Le Bail [Sun, 12 Jul 2015 11:51:58 +0000 (13:51 +0200)] 
BGP: Fix a warning

Thanks to Gisle Vanem to catch this.

The warning was:
./print-bgp.c: In function 'bgp_attr_print':
./print-bgp.c:2214:35: warning: declaration of 'atype' shadows a parameter [-Wshadow]
                     u_int aflags, atype, alenlen, alen;
                                   ^
./print-bgp.c:1322:22: warning: shadowed declaration is here [-Wshadow]
                u_int atype, const u_char *pptr, u_int len)
                      ^

9 years agoTCP: Use quoted include for 'signature.h' instead of angle-bracketed one
Francois-Xavier Le Bail [Fri, 3 Jul 2015 12:26:54 +0000 (14:26 +0200)] 
TCP: Use quoted include for 'signature.h' instead of angle-bracketed one

9 years agoTravis: Restore 'make install' in the build script
Francois-Xavier Le Bail [Sat, 11 Jul 2015 12:57:09 +0000 (14:57 +0200)] 
Travis: Restore 'make install' in the build script

Moreover:
Delete trailing spaces
Delete redundant empty lines

9 years agomake build container happy
Michael Richardson [Fri, 10 Jul 2015 19:47:30 +0000 (15:47 -0400)] 
make build container happy

9 years agoMerge pull request #469 from gvanem/patch-2
Guy Harris [Fri, 10 Jul 2015 19:17:12 +0000 (12:17 -0700)] 
Merge pull request #469 from gvanem/patch-2

Fix print-icmp.c warning

9 years agoMerge pull request #468 from gvanem/patch-1
Guy Harris [Fri, 10 Jul 2015 19:15:32 +0000 (12:15 -0700)] 
Merge pull request #468 from gvanem/patch-1

Fix print-dccp.c warning

9 years agoupdate the DNSSEC test case after the last change
Denis Ovsienko [Fri, 10 Jul 2015 10:57:24 +0000 (11:57 +0100)] 
update the DNSSEC test case after the last change

9 years agoMerge pull request #467 from wessels/master
Denis Ovsienko [Fri, 10 Jul 2015 10:56:05 +0000 (11:56 +0100)] 
Merge pull request #467 from wessels/master

9 years agoadd a DNSSEC test case
Denis Ovsienko [Fri, 10 Jul 2015 10:52:56 +0000 (11:52 +0100)] 
add a DNSSEC test case

This is related to GH #445 and GH #467.

9 years agoFix print-icmp.c warning 469/head
Gisle Vanem [Fri, 10 Jul 2015 10:51:56 +0000 (12:51 +0200)] 
Fix print-icmp.c warning

Fix compilation warning:
```
print-icmp.c(559): warning C4456: declaration of 'vec' hides previous local declaration
print-icmp.c(344): note: see declaration of 'vec'
```

9 years agoUpdate print-dccp.c 468/head
Gisle Vanem [Fri, 10 Jul 2015 10:39:10 +0000 (12:39 +0200)] 
Update print-dccp.c

Fix warning:
```
print-dccp.c(500): warning C4456: declaration of 'cp' hides previous local declaration
print-dccp.c(277): note: see declaration of 'cp'
```

9 years agointerface.h,netdissect.h: Cleaning unused items
Francois-Xavier Le Bail [Fri, 3 Jul 2015 09:57:31 +0000 (11:57 +0200)] 
interface.h,netdissect.h: Cleaning unused items

9 years agoBGP: Replace printf by ND_PRINT
Francois-Xavier Le Bail [Thu, 2 Jul 2015 17:44:19 +0000 (19:44 +0200)] 
BGP: Replace printf by ND_PRINT

9 years agoFix display of timestamps with -ttt and -ttttt options
Francois-Xavier Le Bail [Thu, 2 Jul 2015 17:14:49 +0000 (19:14 +0200)] 
Fix display of timestamps with -ttt and -ttttt options

- Fix display of some nanoseconds timestamps
For example, bad print 00:-16:-2.000851566 is now 00:00:00.037851566

- Fix display of timestamp of a packet when it is lower than previous one
For example, bad print 00:00:-1.000999790 is now -00:00:00.000000210

9 years agoBGP: add decoding of ADD-PATH capability
Denis Ovsienko [Mon, 29 Jun 2015 15:06:31 +0000 (16:06 +0100)] 
BGP: add decoding of ADD-PATH capability

This implements the capability part of draft-ietf-idr-add-paths-10 and
seems to work for a packet capture I am looking into. The problem with
the "extended NLRI encodings" defined in the same document is that they
are going to use a different structure for the two previously assigned
path attributes, which makes decoding of an UPDATE difficult without
having both relevant OPENs from the same session.

9 years agorefine tok2str() buffer use
Denis Ovsienko [Mon, 29 Jun 2015 14:53:06 +0000 (15:53 +0100)] 
refine tok2str() buffer use

Switch RRCP and BGP functions from tok2strbuf() to tok2str() to avoid
unnecessary local buffer management. The latter function does it in a
way to allow up to 4 calls to itself from printf(). After that
tok2strbuf() remains used by tok2str() only and can be refined later.

Remove a duplicate macro and place the remaining definition into the
right file.

9 years agostruct netdissect_options: Remove unused members 'ndo_infodelay' and 'ndo_info'
Francois-Xavier Le Bail [Sun, 21 Jun 2015 07:32:05 +0000 (09:32 +0200)] 
struct netdissect_options: Remove unused members 'ndo_infodelay' and 'ndo_info'

Remark: ^T is a tcpdump function, not a packet-dissection mechanism.

9 years agostruct netdissect_options: Remove unused member 'ndo_aflag'
Francois-Xavier Le Bail [Sat, 20 Jun 2015 11:30:29 +0000 (13:30 +0200)] 
struct netdissect_options: Remove unused member 'ndo_aflag'

Moreover:
Remove redundant empty line.

9 years agoFix display of nanoseconds timestamps with -tt option (GH issue 466)
Francois-Xavier Le Bail [Fri, 19 Jun 2015 08:35:18 +0000 (10:35 +0200)] 
Fix display of nanoseconds timestamps with -tt option (GH issue 466)

Add 'ts_unix_format' function.

9 years agoFix a non-reentrant code in a function
Francois-Xavier Le Bail [Fri, 19 Jun 2015 07:28:47 +0000 (09:28 +0200)] 
Fix a non-reentrant code in a function

Delete the 'static char buf' array in ts_format().
buf is now a parameter of ts_format().
Moreover:
Decrease a too long string.
Fix a space in a comment.

9 years agoFor DNS messages, represent the "DNSSEC OK" bit as "DO" instead of "OK" 467/head
Duane Wessels [Thu, 18 Jun 2015 17:27:34 +0000 (10:27 -0700)] 
For DNS messages, represent the "DNSSEC OK" bit as "DO" instead of "OK"

"DO" is a better description of the DNSSEC OK bit in the EDNS0 OPT record.  See RFC 3225 section 3.  There may be other bits allocated in the future that call themselves "Something OK".

9 years agoMap *ONLY* ASCII letters; don't map anything with the 8th bit set.
Guy Harris [Fri, 12 Jun 2015 00:28:39 +0000 (17:28 -0700)] 
Map *ONLY* ASCII letters; don't map anything with the 8th bit set.

9 years agoDo case-insensitive comparisons assuming ASCII strings.
Guy Harris [Thu, 11 Jun 2015 22:47:44 +0000 (15:47 -0700)] 
Do case-insensitive comparisons assuming ASCII strings.

Do the case-insensitive comparisons in a locale-independent fashion that
only maps ASCII letters, in the standard English-language fashion; that
way, we don't get bitten by, for example, Turkish having separate "i
with dot" and "i without dot" letters, with lower-case "i with dot" being
mapped to upper-case "I with dot" rather than being mapped to "I".

9 years agoGet rid of macros already defined in netdissect.h
Francois-Xavier Le Bail [Wed, 10 Jun 2015 19:37:24 +0000 (21:37 +0200)] 
Get rid of macros already defined in netdissect.h

9 years agoMove more prototypes in netdissect.h
Francois-Xavier Le Bail [Wed, 10 Jun 2015 19:12:38 +0000 (21:12 +0200)] 
Move more prototypes in netdissect.h

9 years agoMove some prototypes in netdissect.h
Francois-Xavier Le Bail [Wed, 10 Jun 2015 18:39:54 +0000 (20:39 +0200)] 
Move some prototypes in netdissect.h

9 years agoGet rid of macros already defined in netdissect.h
Francois-Xavier Le Bail [Wed, 10 Jun 2015 17:09:49 +0000 (19:09 +0200)] 
Get rid of macros already defined in netdissect.h

9 years agoChecksum stuff must go in netdissect.h (remainder)
Francois-Xavier Le Bail [Wed, 10 Jun 2015 14:17:27 +0000 (16:17 +0200)] 
Checksum stuff must go in netdissect.h (remainder)

9 years agoChecksum stuff must go in netdissect.h
Francois-Xavier Le Bail [Wed, 10 Jun 2015 13:47:54 +0000 (15:47 +0200)] 
Checksum stuff must go in netdissect.h

9 years agoDelete trailing spaces/tabs
Francois-Xavier Le Bail [Thu, 4 Jun 2015 13:23:21 +0000 (15:23 +0200)] 
Delete trailing spaces/tabs

9 years agoFix a Coverity warning
Francois-Xavier Le Bail [Sun, 24 May 2015 07:52:07 +0000 (09:52 +0200)] 
Fix a Coverity warning

Test already done by 'ND_TCHECK2(tptr[3], length - 3);'

9 years agoCoverity: build script: Update the download URL of 7.6 release
Francois-Xavier Le Bail [Sun, 24 May 2015 06:47:22 +0000 (08:47 +0200)] 
Coverity: build script: Update the download URL of 7.6 release

9 years agoBGP: Add support for the AIGP attribute (RFC7311)
Francois-Xavier Le Bail [Fri, 22 May 2015 10:41:40 +0000 (12:41 +0200)] 
BGP: Add support for the AIGP attribute (RFC7311)

Based on a patch from Hannes Gredler

9 years agoMerge pull request #455 from brooksdavis/gndo-cleanup
Guy Harris [Wed, 20 May 2015 23:56:06 +0000 (16:56 -0700)] 
Merge pull request #455 from brooksdavis/gndo-cleanup

Remove global netdissect_object and remove non-dissection related fields

9 years agoMerge pull request #457 from brooksdavis/no-sandbox-message
Guy Harris [Wed, 20 May 2015 23:54:58 +0000 (16:54 -0700)] 
Merge pull request #457 from brooksdavis/no-sandbox-message

Remove "capability mode sandbox enabled" message.

9 years agoMerge branch 'master' of github.com:the-tcpdump-group/tcpdump
Hannes Gredler [Wed, 20 May 2015 17:30:11 +0000 (19:30 +0200)] 
Merge branch 'master' of github.com:the-tcpdump-group/tcpdump

9 years agoadd testcases for IS-IS POI (rfc6232)
Hannes Gredler [Wed, 20 May 2015 17:29:29 +0000 (19:29 +0200)] 
add testcases for IS-IS POI (rfc6232)

9 years agoUpdate test output for the previous change
Francois-Xavier Le Bail [Tue, 19 May 2015 18:25:16 +0000 (20:25 +0200)] 
Update test output for the previous change

9 years agoadd support for IS-IS Purge Originator Identifier as per RFC6232.
Hannes Gredler [Tue, 19 May 2015 13:49:40 +0000 (15:49 +0200)] 
add support for IS-IS Purge Originator Identifier as per RFC6232.

9 years agoDon't assume you have <net/if_pflog.h> if you have <net/pfvar.h>.
Guy Harris [Sun, 17 May 2015 17:47:30 +0000 (10:47 -0700)] 
Don't assume you have <net/if_pflog.h> if you have <net/pfvar.h>.

Debian/kFreeBSD ships <net/pfvar.h> but not <net/if_pflog.h>.

9 years agoSFLOW: Fix bounds checking
Francois-Xavier Le Bail [Thu, 7 May 2015 15:54:32 +0000 (17:54 +0200)] 
SFLOW: Fix bounds checking

9 years agoRemove "capability mode sandbox enabled" message. 457/head
Brooks Davis [Tue, 5 May 2015 17:50:52 +0000 (17:50 +0000)] 
Remove "capability mode sandbox enabled" message.

We have removed all instances of these messages in FreeBSD as they serve
little purpose and break some comsumers.

9 years agoRPL: Fix 'Consistency Check' control code
Francois-Xavier Le Bail [Mon, 4 May 2015 23:12:00 +0000 (01:12 +0200)] 
RPL: Fix 'Consistency Check' control code

9 years agoRPL: Fix suboption print
Francois-Xavier Le Bail [Mon, 4 May 2015 21:05:23 +0000 (23:05 +0200)] 
RPL: Fix suboption print

9 years agoOLSR: Fix indent and comments
Francois-Xavier Le Bail [Mon, 4 May 2015 13:25:54 +0000 (15:25 +0200)] 
OLSR: Fix indent and comments

Avoid too long lines.
Not all C compilers accept C++/C99 comments by default.

10 years agoolsr: add a test to cover a HNA sgw case
Ferry Huberts [Fri, 24 Apr 2015 17:03:48 +0000 (19:03 +0200)] 
olsr: add a test to cover a HNA sgw case

Signed-off-by: Ferry Huberts <[email protected]>
10 years agoolsr: fix printing of smart-gateway HNAs in IPv4
Ferry Huberts [Fri, 24 Apr 2015 12:43:58 +0000 (14:43 +0200)] 
olsr: fix printing of smart-gateway HNAs in IPv4

Signed-off-by: Ferry Huberts <[email protected]>
10 years agoolsr: fix 'Advertised networks' count
Ferry Huberts [Fri, 24 Apr 2015 12:43:14 +0000 (14:43 +0200)] 
olsr: fix 'Advertised networks' count

Signed-off-by: Ferry Huberts <[email protected]>
10 years agoSource and destination addresses were backwards.
Guy Harris [Sun, 3 May 2015 00:19:33 +0000 (17:19 -0700)] 
Source and destination addresses were backwards.