summaryrefslogtreecommitdiff
path: root/net/echoping/files/patch-echoping.c
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2025-05-05 02:36:07 +0700
committerEugene Grosbein <eugen@FreeBSD.org>2025-05-05 02:36:07 +0700
commit3b869d8f7198754c5e9bf59091ca8324612afcb9 (patch)
treefd7a905d2440e4ac02d46f7445447b28de8082cd /net/echoping/files/patch-echoping.c
parentmath/octave-forge: Change options. (diff)
net/echoping: readd the port
echoping is non-default optional but very useful dependency of the SmokePing (net-mgmt/smokeping). I use the software and will maintain the port. While here, make it possible to build echoping with GNU dns/libidn2 instead of dns/libidn. For now, still use libidn to preserve POLA. Default build not changed comparing with one before removal, so PORTREVISION not bumped.
Diffstat (limited to 'net/echoping/files/patch-echoping.c')
-rw-r--r--net/echoping/files/patch-echoping.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/echoping/files/patch-echoping.c b/net/echoping/files/patch-echoping.c
new file mode 100644
index 000000000000..d2b246599a41
--- /dev/null
+++ b/net/echoping/files/patch-echoping.c
@@ -0,0 +1,25 @@
+--- echoping.c.orig 2020-08-20 15:47:00 UTC
++++ echoping.c
+@@ -38,6 +38,22 @@ struct result results[MAX_ITERATIONS];
+ struct timeval good_results[MAX_ITERATIONS];
+ extern int tvcmp();
+
++boolean timeout_flag;
++static char *server;
++#ifdef LIBIDN
++static char *locale_server, *ace_server, *utf8_server;
++#endif
++
++static init_f plugin_init;
++static start_f plugin_start;
++static start_raw_f plugin_raw_start;
++static execute_f plugin_execute;
++static execute_f plugin_execute;
++static terminate_f plugin_terminate;
++
++struct timeval null_timeval;
++static struct timeval max_timeval;
++
+ int
+ main(argc, argv)
+ int argc;