From 5ad84585debfe8ce3569be759d2f34a261a38a54 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 20 Oct 2005 19:00:56 +0000 Subject: Added actual remote address used to the ">STATE" alert in the management interface (Rolf Fokkens). git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@701 e7ae566f-a301-0410-adde-c780ea21d3b5 --- manage.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'manage.h') diff --git a/manage.h b/manage.h index 310f460..dce08e8 100644 --- a/manage.h +++ b/manage.h @@ -97,6 +97,7 @@ struct log_entry time_t timestamp; const char *string; in_addr_t local_ip; + in_addr_t remote_ip; union log_entry_union u; }; @@ -114,6 +115,8 @@ struct log_entry #define LOG_PRINT_INTVAL (1<<9) +#define LOG_PRINT_REMOTE_IP (1<<10) + const char *log_entry_print (const struct log_entry *e, unsigned int flags, struct gc_arena *gc); struct log_history @@ -325,7 +328,8 @@ management_query_user_pass_enabled (const struct management *man) void management_set_state (struct management *man, const int state, const char *detail, - const in_addr_t tun_local_ip); + const in_addr_t tun_local_ip, + const in_addr_t tun_remote_ip); /* * The management object keeps track of OpenVPN --echo -- cgit