aboutsummaryrefslogtreecommitdiff
path: root/socket.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-16 01:46:24 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-16 01:46:24 +0000
commit7ef85434edf4b408405819453ca732b4e8a55049 (patch)
tree1bff2bdb49e87edc451ab40cf7c581c2e5dc5c62 /socket.h
parentVERSION 2.1_beta3 (diff)
downloadopenvpn-7ef85434edf4b408405819453ca732b4e8a55049.tar.xz
Fixed bug introduced in 2.1-beta3 where management
socket bind would fail. Pre-2.1-beta4 git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@635 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/socket.h b/socket.h
index 5b7980a..d6681e3 100644
--- a/socket.h
+++ b/socket.h
@@ -80,14 +80,14 @@ typedef uint16_t packet_size_type;
/* OpenVPN sockaddr struct */
struct openvpn_sockaddr
{
- int dummy; /* JYFIXME */
+ int dummy; /* JYFIXME -- add offset to force a bug if sa not explicitly dereferenced */
struct sockaddr_in sa;
};
/* actual address of remote, based on source address of received packets */
struct link_socket_actual
{
- int dummy; /* JYFIXME */
+ int dummy; /* JYFIXME -- add offset to force a bug if dest not explicitly dereferenced */
struct openvpn_sockaddr dest;
#if ENABLE_IP_PKTINFO
struct in_pktinfo pi;
@@ -266,6 +266,10 @@ int socket_finalize (
struct link_socket *link_socket_new (void);
+void socket_bind (socket_descriptor_t sd,
+ struct openvpn_sockaddr *local,
+ const char *prefix);
+
/*
* Initialize link_socket object.
*/