Denny Page
85d345f47f
Fix defective parsing of time values with 's' suffix
v1.4
2016-01-14 20:56:46 -08:00
dennypage
e0a0ae14f9
Merge pull request #19 from pfsense/ignore_files
...
Ignore dpinger.full, dpinger.debug and vim swap files
2016-01-04 10:09:13 -08:00
Renato Botelho
87cd4b6e3b
Ignore dpinger.full, dpinger.debug and vim swap files
2016-01-04 10:16:50 -02:00
Denny Page
919fad77a2
Change default time period to 30s and relax default loss interval to 5x send interval to address nagging low level loss reports
...
Add usage note about loss percentage reporting and calculation
v1.3
2015-12-30 12:06:54 -08:00
dennypage
2e0430edea
Merge pull request #18 from pfsense/fix_build_9
...
Initialize pidfile_fd to silence FreeBSD 9 warning
2015-12-30 10:39:29 -08:00
Renato Botelho
31432284dc
Initialize pidfile_fd to silence FreeBSD 9 warning
2015-12-30 09:15:39 -02:00
Denny Page
e1d00b4210
Set close on exec for all file descriptors
2015-12-29 14:20:06 -08:00
Denny Page
1ec615486b
Temporary to allow building on old systems (FreeBSD 9.3, Linux 2.6.26)
2015-12-29 11:28:14 -08:00
Denny Page
6789e90a38
Set close on exec flag if report file is explicit
2015-12-29 10:57:28 -08:00
Denny Page
1b2e8e784b
Merge branch 'master' of https://github.com/dennypage/dpinger
v1.2
2015-12-28 12:50:39 -08:00
Denny Page
00229f717d
Enable support for IPv6 scope ids
...
Relax default loss interval to 4x send interval
2015-12-28 12:47:25 -08:00
dennypage
4b82af813b
Add identifier usage example
2015-12-23 23:03:33 -08:00
dennypage
feb01fa2d3
Add output and alert description
2015-12-21 14:25:27 -08:00
Denny Page
dcf1d22322
Include identifier and dest_str in all icmp packet related logging (from Phil Davis)
v1.1
2015-12-20 21:27:52 -08:00
Denny Page
bfed5112c2
Add output identifier
v1.0
2015-12-16 16:11:20 -08:00
Denny Page
ccf41735df
Fix typo in variable name change
2015-12-16 14:44:20 -08:00
dennypage
a8e8efddaf
Merge pull request #12 from phil-davis/dp-uom
...
Add units of measure to var names
2015-12-16 11:00:05 -08:00
dennypage
d7a3aa9c8c
Merge pull request #11 from phil-davis/patch-2
...
Minor text typos
2015-12-16 07:29:16 -08:00
dennypage
bf81afeb15
Merge pull request #10 from phil-davis/patch-1
...
Correction to sample dpinger command
2015-12-16 07:28:06 -08:00
Phil Davis
4f67d445d2
Add units of measure to var names
...
This makes the code easily readable to know that the various
calculations are using numbers in the appropriate units of measure.
The only functional change here is that in 2 places a vr was being used
firstly in msec then *1000 to be in usec, so I made 2 vars for that.
Does this make the code more maintainable for future readers?
2015-12-16 14:50:15 +05:45
Phil Davis
33ad13fbf7
Minor text typos
2015-12-16 14:39:07 +05:45
Phil Davis
5c27c6d221
Correction to sample dpinger command
...
I think this sample command needs to mention 192.168.0.1 as well as 192.168.0.50
2015-12-16 13:46:27 +05:45
dennypage
568e882d0b
Create README.md
2015-12-15 15:21:25 -08:00
Denny Page
dea0a2c2e7
Use write() for pidfile
...
Fix spaces
2015-12-15 08:12:30 -08:00
Denny Page
a0d3a0b3fa
Fix typos
...
Move signal handler up
2015-12-15 07:38:57 -08:00
Denny Page
360ba3a978
Consolidate report generation code
...
Add unix domain socket for polling
Include destination on alarms
Use layer 2 (write) rather than layer 3 (stdio) for reports
Allow report interval of 0 (disabled)
Add explicit output file specification for reports
2015-12-14 20:39:34 -08:00
dennypage
2fa65274e2
Merge pull request #8 from phil-davis/dp-review
...
Thanks Phil
2015-12-10 00:54:08 -08:00
Phil Davis
8fcd879a31
Comment typos
...
The code looks good - I did not see any (obvious) problem.
2015-12-10 10:44:54 +05:45
Denny Page
7f7405c35e
Add self backgrouding as default behavior; Remove unnecessary floating point cast
2015-12-07 21:23:46 -08:00
Denny Page
459fd9b4ca
Add missing -p option to usage (thanks Renato)
2015-12-03 10:06:35 -08:00
Denny Page
f24d94fcd2
Move nanosleep to top of send thread; Clean up comments
2015-12-02 19:43:04 -08:00
Denny Page
b8fa596f2a
Missing newline in logger call; Missing space in alert command format
2015-12-01 08:52:57 -08:00
Denny Page
c0adb5b75c
Fix type in alarm print
2015-12-01 08:43:05 -08:00
Denny Page
290f2dda12
Add unlink of pdfile on signal exit as suggested by Renato; Remove all tab characters, use space only
2015-11-30 10:43:18 -08:00
dennypage
efbfe78dc2
Merge pull request #5 from pfsense/fix_build_freebsd_9
...
Fix build on FreeBSD 9.x
2015-11-30 08:01:26 -08:00
Renato Botelho
f53e571197
Rename alarm to alarm_on to avoid shadow alarm(3) definition from libc
2015-11-30 09:43:55 -02:00
Renato Botelho
26c5e2f550
Fix build on FreeBSD 9.x
...
Rename bind to bind4 to avoid shadowing bind(2) global declaration
2015-11-30 09:36:41 -02:00
Denny Page
c0adc9e57f
Fix lingering white space issues
2015-11-29 16:12:21 -08:00
Denny Page
589b61aa7a
Change bind from optional command argument to optional flag argument per Jim's request
2015-11-28 20:46:32 -08:00
Denny Page
27a8f57ce7
Add pidfile support
2015-11-28 16:50:39 -08:00
Denny Page
2d3a250604
Merge branch 'master' of https://github.com/dennypage/dpinger
2015-11-27 14:59:04 -08:00
Denny Page
ed94a6ef02
Add alerting on latency and loss
2015-11-27 14:49:55 -08:00
dennypage
67548069c2
Merge pull request #4 from pfsense/disable_debug
...
Disable debug on default build
2015-11-25 09:38:24 -08:00
dennypage
56da91b493
Merge pull request #3 from pfsense/fix_build
...
Casting fix for -Wcast-qual
2015-11-25 09:36:11 -08:00
Renato Botelho
d2a4d6f99d
Disable debug on default build
...
Default build shouldn't add debug symbols, it should be optional. On
FreeBSD ports tree for instance, if you pass -DWITH_DEBUG it's going to
make necessary changes like add -g and remove optimization from CFLAGS,
also disable strip from install command
Sponsored-by: Rubicon Communications (Netgate)
2015-11-25 15:16:16 -02:00
Renato Botelho
4031c96af3
Fix build
...
Fix casting to make it build with -Wcast-equal,-Werror
Sponsored-by: Rubicon Communications (Netgate)
2015-11-25 15:12:36 -02:00
Denny Page
21942bac3a
Add support for address binding
2015-11-24 20:21:35 -08:00
dennypage
0085340835
Merge pull request #2 from fichtner/freebsd_fixup
...
FreeBSD fixes
2015-05-24 12:45:11 -07:00
Franco Fichtner
e6b504d98d
adds back -g for CFLAGS
2015-05-23 08:52:48 +02:00
Franco Fichtner
f8e9d2679b
add a .gitignore file to ignore binaries
2015-05-23 08:51:00 +02:00