summaryrefslogtreecommitdiff
path: root/net/echoping/files/patch-echoping.h
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.h
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.h')
-rw-r--r--net/echoping/files/patch-echoping.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/net/echoping/files/patch-echoping.h b/net/echoping/files/patch-echoping.h
new file mode 100644
index 000000000000..f411f7383f8e
--- /dev/null
+++ b/net/echoping/files/patch-echoping.h
@@ -0,0 +1,53 @@
+--- echoping.h.orig 2020-08-20 15:39:43 UTC
++++ echoping.h
+@@ -121,7 +121,6 @@ struct result
+ struct timeval timevalue;
+ };
+
+-boolean timeout_flag;
+ struct echoping_struct
+ {
+ boolean udp; /* Use the UDP protocol (TCP is the default) */
+@@ -136,21 +135,15 @@ typedef struct echoping_struct echoping_options;
+ /* Initializes the plugin with its arguments. Returns the port name or number or NULL if the plugin wants to use the raw interface. */
+ typedef char *(*init_f) (const int argc, const char **argv,
+ const echoping_options global_options);
+-init_f plugin_init;
+ typedef void (*start_f) (struct addrinfo *);
+-start_f plugin_start;
+ typedef void (*start_raw_f) ();
+-start_raw_f plugin_raw_start;
+ typedef int (*execute_f) ();
+-execute_f plugin_execute;
+ typedef void (*terminate_f) ();
+-terminate_f plugin_terminate;
+ #endif
+
+ #endif
+
+-struct timeval null_timeval;
+-struct timeval max_timeval;
++extern struct timeval null_timeval;
+
+ #define ECHO_TCP_PORT "echo"
+ #define DISCARD_TCP_PORT "discard"
+@@ -172,11 +165,6 @@ struct timeval max_timeval;
+ #define USE_SMTP 6
+
+ #define CHARGENERATED " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefg";
+-
+-char *server;
+-#ifdef LIBIDN
+-char *locale_server, *ace_server, *utf8_server;
+-#endif
+
+ /* My functions */
+
+@@ -198,6 +186,7 @@ int TLS_readline ();
+ #endif
+ /* util.c */
+ char *random_string ();
++char *to_upper(char *);
+ void tvsub ();
+ void tvadd ();
+ void tvavg ();