David Schweikert
7592cc2a19
discard late packets, auto-adjust timeout for -c/-C/-l, fixes #32
8 years ago
David Schweikert
24ce982e5b
improve coverage
8 years ago
David Schweikert
d18ad321de
long options, better example
8 years ago
David Schweikert
bab585e9fa
new option --rdns
8 years ago
David Schweikert
2a86182f95
make help a bit narrower
8 years ago
David Schweikert
4f672b9b62
work on long option names, #73
8 years ago
David Schweikert
6bd608bf7a
initial work on long option names, #73
8 years ago
David Schweikert
9be8d6cb5d
remove references to fping6
8 years ago
David Schweikert
d9f86182e8
fix setting of IPv4 source address
8 years ago
David Schweikert
48ec5600e0
fix compatibility issue with GNU Hurd
8 years ago
David Schweikert
725893402d
reformat
8 years ago
David Schweikert
e5c3839073
integrate optparse ( https://github.com/skeeto/optparse )
8 years ago
David Schweikert
9787dd0136
sync with develop
8 years ago
David Schweikert
6b99b7bb89
compatibility fixes and prepare rc2
8 years ago
David Schweikert
35d52d0b30
Fix option -m to return all IPs of a hostname
8 years ago
David Schweikert
98269fb83e
unification work
8 years ago
David Schweikert
12971e5409
ipv4/ipv6 unification fixes
8 years ago
David Schweikert
3c53d9be3f
first version of fping that can do ipv4 and ipv6 at the same time
8 years ago
David Schweikert
8d4c69998d
unification work
8 years ago
David Schweikert
4262e74ff9
more cleanup
8 years ago
David Schweikert
e827b6719a
another attempt at fixing coverity warning
8 years ago
David Schweikert
64d41f6295
coverity scan fixes
8 years ago
David Schweikert
23d4a021fc
fix warnings
8 years ago
David Schweikert
324242b144
space / formatting fixes and remove unused code
8 years ago
David Schweikert
d017390cbc
remove trailing whitespace, fix mixed whitespace
8 years ago
David Schweikert
9d2daa77c8
remove trailing whitespace
8 years ago
David Schweikert
9adb9a8480
Merge branch 'develop' into unify
8 years ago
David Schweikert
b5046cfa78
Fix -M expecting an argument, when it shouldn't
8 years ago
David Schweikert
c090cd770d
work on ipv4/ipv6 unification
8 years ago
David Schweikert
e71164de22
restart work on ipv4/ipv6 unification
8 years ago
David Schweikert
8481d7432a
simplify restrictions, fixes #29 , #32
8 years ago
David Schweikert
2cf801fdfb
Support kernel-timestamping of received packet, fixes #46
8 years ago
David Schweikert
926c104e90
Fix -q not suppressing some ICMP error messages, fixes #83
8 years ago
David Schweikert
099d873253
AIX compatibility, fixes #69
8 years ago
David Schweikert
356e7b3a69
fix compatibility issue with MacOS in release 3.14 ( fixes #109 )
8 years ago
Peter Bray
1400fc29a5
Set the variable "prog" before the first call to any routine using error reporting
...
Error reporting uses the variable "prog" which is null prior to obtaining a
reference to argv[0]. The call to open_ping_socket() uses this on an error,
such as the executable not being SUID or otherwise privileged invocation.
Solaris 10 printf(3C) of "%s" on a null pointer causes a core dump.
8 years ago
Peter Bray
79ba8c9ae7
Portability Fix: <netinet/ip_icmp.h> requires n_time definition from <netinet/in_systm.h>
...
The include file <netinet/in_systm.h> is already used in src/fping.c,
so hopefully it should not be problem on other systems to include it here.
Discovered on Solaris 10 Update 8, tested on Solaris 10 Update 11 and Solaris 11.2
8 years ago
David Schweikert
dde37baac2
fix average when discarding reply in interval counting
8 years ago
David Schweikert
2cb0860ec6
Merge pull request #106 from ktsaou/develop
...
minor netdata improvements
8 years ago
Costa Tsaousis (ktsaou)
498acc6853
removed fix for 100% cpu time
8 years ago
David Schweikert
36f0b76645
fix interval reporting
8 years ago
Costa Tsaousis (ktsaou)
2f25e1ff8b
fix for 100% CPU time when -l -Q are given
8 years ago
Costa Tsaousis (ktsaou)
4897b015b4
converted netdata charts to area charts; added netdata to trace_flag; fixed compiler warning about setuid
8 years ago
David Schweikert
64af251a33
safer -i option parsing
8 years ago
David Schweikert
32ab06bdd1
port last fix also to netdata
8 years ago
David Schweikert
ea37408c77
another fix for #97 ( fixes #97 )
8 years ago
David Schweikert
1e67616388
first attempt at fixing #97 ( fixes #97 )
8 years ago
David Schweikert
502cd3b0f7
remove unused code
8 years ago
David Schweikert
c6547a118e
fix tests
8 years ago
David Schweikert
7c7e007502
- (bugfix) Lower -i limit to 1 instead of 10
...
- (bugfix) Improve interval preciseness of -Q reporting
8 years ago
Costa Tsaousis (ktsaou)
6470a3d5ae
added help info
8 years ago
Costa Tsaousis (ktsaou)
9c9c166d39
remove dimension lost in favor of returned
8 years ago
Costa Tsaousis (ktsaou)
2426485fe0
added another dimension to track excess received packets
8 years ago
Costa Tsaousis (ktsaou)
eda4c85842
re-order chart information
8 years ago
Costa Tsaousis (ktsaou)
a2cbca7a7b
added option -N to allow fping output statistics in the format expected by netdata
8 years ago
David Schweikert
6d12dfbbcc
Add option -o for accumulated outage time ( #90 )
8 years ago
David Schweikert
814c852da6
New option '-M' to set the 'Don't Fragment' flag ( #91 , Don Bowman)
8 years ago
David Schweikert
88c40cae3a
Merge branch 'develop' of https://github.com/donbowman/fping into donbowman-develop
8 years ago
Martin Topholm
1264b10784
Ignore network and broadcast for cidrs /31 and /32
...
fping has previously been strict about network address and broadcast
addreses. In the commit this is loosened a bit to permit fping to ping
cidrs with prefix length 31, which are commonly used for link ranges
(for newer equipment) and length 32 which denotes a single ip address.
For prefix lengths 31 and 32 fping will simply ignore network address
and broadcast addresses, and consider all addresses in range as a
target.
8 years ago
David Schweikert
b5b630bd3c
fix a couple of compiler warnings
8 years ago
David Schweikert
a37399ede9
Exit code should be 2 when the hostname can't be resolved ( fixes #98 )
8 years ago
Don Bowman
7c7448ab8c
add path mtu discovert (MTU) AKA Don't Fragment support
9 years ago
Jan Gerbecks
458c986d8b
added changes for accumulated outage time
9 years ago
Bill Blough
4eb955ee85
Pass imcp unreachable message string to print_warning instead of int.
...
This fixes the segfault reported in issue 85.
9 years ago
David Schweikert
c6c2a834ca
Fix fping6 -R ( fixes #84 )
9 years ago
David Schweikert
42ceba6069
Remove apparently dead code (Ryan C. Underwood)
9 years ago
Andrey Jr. Melnikov
4e14f407aa
Use more readably cksum variant and move function into v4 sockets code.
9 years ago
Andrey Jr. Melnikov
7885effce1
Fix checksum generation
9 years ago
Anthony DeRobertis
58fcce9547
New option -R to use random bytes instead of NULLs ( #72 , Anthony DeRobertis)
9 years ago
David Schweikert
c628bfd090
remove unused variable
9 years ago
David Schweikert
07e719d8db
add -Wall -Wextra, fix some errors
9 years ago
David Schweikert
2f4781214b
further unification work
9 years ago
David Schweikert
22e4ad996f
further unification work
9 years ago
David Schweikert
039c8b0645
Revert 'get all addresses' change for now
10 years ago
David Schweikert
614362b555
Use sockaddr_storage and simplify code, so that we can one day support both IPv4 and IPv6 with the same binary
10 years ago
David Schweikert
3cc482f2d3
Fix double entries with fping -u and unreachable hosts
11 years ago
David Schweikert
2b5d9ef795
remove support for NIS groups, do not retry twice DNS lookup on DNS lookup problem
11 years ago
David Schweikert
e79444f09a
more tests
11 years ago
David Schweikert
b779e14db6
test fix
11 years ago
David Schweikert
c9f276b3cd
more tests
11 years ago
David Schweikert
75101dd843
more tests
11 years ago
David Schweikert
a7f351fb8e
re-order options in usage information
11 years ago
David Schweikert
86f0b1e380
Allow option '-f' also for non-root (since setuid privileges are dropped)
11 years ago
David Schweikert
3cf9a8a3cd
Fix confusing error message with -g and IPv6 addresses ( fixes #58 )
11 years ago
David Schweikert
af0446b046
more tests
11 years ago
David Schweikert
00e3384d5c
Fix complication problem on FreeBSD ( #57 )
11 years ago
David Schweikert
8bd200905d
some more tests
11 years ago
David Schweikert
0decb829d8
silence clang warning
11 years ago
David Schweikert
3e8eb6c613
Fix random output on socket error (reported by Aleksandrs Saveljevs, #56 )
11 years ago
David Schweikert
d6808efd81
Fix segmentation fault introduced in version 3.7 with loop mode ( #55 )
11 years ago
David Schweikert
d141744adb
Fix fping hanging forever on permanent sendto failure (Shawn Chu, #52 )
11 years ago
David Schweikert
e1cdf8e1d3
Fix again compatibility issue with FreeBSD (Shawn Chu)
11 years ago
David Schweikert
d862dd962b
release preparations
11 years ago
David Schweikert
5c68d6f338
don't consider duplicate pings as successful replies ( #53 )
11 years ago
David Schweikert
a2ac5d0fae
Remove unnecessary IPv6 socket options
11 years ago
David Schweikert
0ab66f80de
Refactor socket handling, allow running as non-root on Mac OS X by using non-privileged ICMP ( #7 )
11 years ago
David Schweikert
9fca2a141b
Fix wrong min RTT value with -Q option (reported by Alexander Ivanov, #51 )
11 years ago
David Schweikert
f55397336b
increase SEQMAP_MAX to 65355
11 years ago
David Schweikert
4aad0b2c14
fix compilation issue
11 years ago
David Schweikert
fb5f5779cc
Merge seqmap branch, fixes #12
11 years ago
David Schweikert
a0252f6e79
Removed setsockopt IPV6_CHECKSUM, which shouldn't be set and breaks compiling on Solaris (reported by Juergen Arndt)
11 years ago
David Schweikert
7e55f0b073
Fix loop issue after 65536 pings (reported by Peter Folk and GBert, #12 ), Minimum ping data size is now 0
11 years ago
David Schweikert
8daad08e1d
work on seqmap
11 years ago
David Schweikert
b7343ed256
start work on seqmap
11 years ago
David Schweikert
121bea1d24
Fix compatibility issue with FreeBSD (Alexandre Raynaud, Jason Harris, #39 )
12 years ago
David Schweikert
543d22122d
Merge pull request #42 from tohojo/master
...
Add -D flag to print timestamp in front of output lines.
12 years ago
David Schweikert
70a29a11af
fix sprint_tm buffer size crash (reported by Japheth Cleaver)
12 years ago
David Schweikert
b0e09ce6fe
Coverity: remove pointless expression
12 years ago
Dipen Lad
69fff78ca4
fix clang warning: comparison of unsigned expression < 0 is always false
12 years ago
Toke Høiland-Jørgensen
5b6784a4ea
Fix formatting of usec part of timestamp output.
12 years ago
Toke Høiland-Jørgensen
25dc120355
Add -D flag to print timestamps before output lines (like Linux ping).
12 years ago
Simon Hitzemann
1c85a422c1
Fixes failing fping6 build on OS X 10.8
12 years ago
David Schweikert
81c96c0807
Revert "Output statistics to stdout instead of stderr (suggested by Simon Leinen, #9 )"
...
This reverts commit b4d0a93b70
.
12 years ago
David Schweikert
4cab2f8598
Fix -n flag in fping6 ( #28 )
12 years ago
David Schweikert
aa5f849c5d
Fix error message on DNS error for IPv6 hosts ( #27 )
12 years ago
David Schweikert
1bb43dc07f
fix wrong use of pointer (causing segfault)
12 years ago
David Schweikert
b4d0a93b70
Output statistics to stdout instead of stderr (suggested by Simon Leinen, #9 )
12 years ago
David Schweikert
a19c537fc5
Fix "options inet6" breaking IPv4 name resolution (reported by Matt LaPlante, #17 )
12 years ago
David Schweikert
6af4d71188
Fix -A for fping6 (reported by Matt LaPlante, #14 )
12 years ago
David Schweikert
ed4202f84f
Fix removing of unreachable hosts when doing loop (Thomas Liske, #13 #23 )
12 years ago
Niclas Zeising
bdef483f4b
Add --with-ipv4 and --with-ipv6 options to cnfigure
...
Currently, to get IPv6 fping you have to pass -DIPV6 to to make while
compiling, and the resulting fping will not handle ipv4. This patch
adds --with-ipv4 (enabled by default) and --with-ipv6 (disabled by
default) that gives a IPv4 capable fping, and a IPv6 capable fping6
respectively. Both can be enabled, or either one. If both the IPv4 and
the IPv6 versions are disabled, configure will throw an error.
12 years ago
David Schweikert
b16d117a17
Set default data size to 56 bytes on all architectures ( #18 )
12 years ago
Thomas Liske
a5828a2795
This commit fixes #13 (Debian #308695 ): don't remove hosts if sendto returns an error. The error might recover and fping should still try to reach the host and count it as packet loss.
13 years ago
David Schweikert
f062f00568
#1 : do not output icmp errors with -q
13 years ago
David Schweikert
967266168d
remove generated files
13 years ago
David Schweikert
c3e8dbc649
#11 : fix linked list corruption
13 years ago
David Schweikert
ecaca317d7
trivial: fix indenting
13 years ago
David Schweikert
74066a00ea
Performance optimization for big select timeouts ( #10 , Andrey Bondarenko), Fix restart of select call after interrupt signal ( #8 , Boian Bonev)
13 years ago
David Schweikert
754feb217c
Output usage information to stdout when called with -h (Paul Duda)
13 years ago
David Schweikert
940cbed179
Added -H option to specify number of hops (Paul Duda)
13 years ago
Axel Beckert
bb21654691
Fix typo "Paramter"
13 years ago
David Schweikert
8047122e85
bugfix: fix timeout issue on Solaris (Sandor Geller)
13 years ago
David Schweikert
9b82b5e716
reorganized source directory
13 years ago
David Schweikert
01db781375
reorganized source directory
13 years ago
David Schweikert
5018cb8234
reorganized source directory
13 years ago