diff options
Diffstat (limited to 'web/attachments/79492-check_ping.c.diff')
| -rw-r--r-- | web/attachments/79492-check_ping.c.diff | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web/attachments/79492-check_ping.c.diff b/web/attachments/79492-check_ping.c.diff new file mode 100644 index 0000000..8a201cf --- /dev/null +++ b/web/attachments/79492-check_ping.c.diff | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | --- check_ping.c.orig 2003-01-13 06:15:16.000000000 -0600 | ||
| 2 | +++ check_ping.c 2004-03-09 13:56:46.000000000 -0600 | ||
| 3 | @@ -391,6 +391,11 @@ | ||
| 4 | &pl) == 1 | ||
| 5 | || sscanf | ||
| 6 | (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1 | ||
| 7 | + || sscanf | ||
| 8 | + (input_buffer, "%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss, time", &pl) == 1 | ||
| 9 | + /* RHES 3.0 as reported by Todd A. Green | ||
| 10 | + Note: This must come before the Suse line below | ||
| 11 | + */ | ||
| 12 | || sscanf | ||
| 13 | (input_buffer, "%*d packets transmitted, %*d received, %d%% loss, time", &pl) == 1 | ||
| 14 | /* Suse 8.0 as reported by Richard * Brodie */ | ||
