Commit Graph

7 Commits

Author SHA1 Message Date
Matt Kimball
a535587757 json: Fix malformed json when the "hubs" list is empty
When generating JSON output, and when no hosts are found when
probing, the generated JSON was malformed.  (i.e. when the "hubs" list
in the generated JSON is empty, there was no closing bracket.)  This can
be reproduced by tracing to an unused host address on the local subnet.

This fixues issue #190.
2017-07-12 12:48:46 -07:00
R.E. Wolff
4c9820316e added a few arguments to calls added by fmazu. Allows it to compile. 2017-06-02 10:52:58 +02:00
fmazullo
07c0eced7b Add AS number to json output 2017-06-02 15:30:58 +09:00
Matt Kimball
5c8cc179bc cleanup: reindented C source with GNU indent
Ran the C source through:

    indent --k-and-r-style --no-tabs --break-function-decl-args
2017-02-04 13:25:23 -08:00
Matt Kimball
b8718f19f3 cleanup: Fix #ifdef structure which confuses 'ident'
The 'indent' tool is confused by some strange #ifdef structure
around HAVE_IPINFO in report.c.  Cleaned up that structure
so 'indent' can be used successfully.
2017-02-04 13:18:13 -08:00
Sami Kerola
9c7ad75699
smatch: extern keyword is needed only in header
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2017-01-06 22:05:10 +00:00
Matt Kimball
b9437b9161 build: moved front-end source into ui subdir
Cleaned up the directory structure.

Moved the source to the main mtr executable into the ui/ subdirectory.

Moved mtr.bat and mangen.sh into build-aux/

Moved the man pages into man/

Fixed a few omissions in Makefile.am for 'make dist'
2016-12-25 09:53:19 -08:00