summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorSteven Murdoch <Steven.Murdoch@cl.cam.ac.uk>2010-06-16 19:47:06 +0100
committerNick Mathewson <nickm@torproject.org>2010-09-30 11:40:37 -0400
commita6dc00fa75fcb089837c50ba1af7a25e5e6e6b20 (patch)
tree989f64598746e21913ddab1b3557cb3136a05876 /src/common/util.h
parent3eaa9a376c756b0b8f836c4a78c3cf4012d6ffd7 (diff)
downloadtor-a6dc00fa75fcb089837c50ba1af7a25e5e6e6b20.tar.gz
tor-a6dc00fa75fcb089837c50ba1af7a25e5e6e6b20.zip
Start tor-fw-helper in the background, and log whatever it outputs
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 833fd904c7..86555eeb19 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -340,10 +340,25 @@ void start_daemon(void);
void finish_daemon(const char *desired_cwd);
void write_pidfile(char *filename);
+/* Port forwarding */
+void tor_check_port_forwarding(const char *filename,
+ int dir_port, int or_port, time_t now);
+
#ifdef MS_WINDOWS
HANDLE load_windows_system_library(const TCHAR *library_name);
#endif
+#ifdef UTIL_PRIVATE
+/* Prototypes for private functions only used by util.c (and unit tests) */
+void format_helper_exit_status(unsigned char child_state,
+ int saved_errno, char *hex_errno);
+
+/* Space for hex values of child state, a slash, saved_errno (with
+ leading minus) and newline (no null) */
+#define HEX_ERRNO_SIZE (sizeof(char) * 2 + 1 + \
+ 1 + sizeof(int) * 2 + 1)
+#endif
+
const char *libor_get_digests(void);
#endif