diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-16 01:46:24 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-16 01:46:24 +0000 |
commit | 7ef85434edf4b408405819453ca732b4e8a55049 (patch) | |
tree | 1bff2bdb49e87edc451ab40cf7c581c2e5dc5c62 /socket.h | |
parent | VERSION 2.1_beta3 (diff) | |
download | openvpn-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.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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. */ |