OpenVPN
|
#include "buffer.h"
Go to the source code of this file.
Data Structures | |
struct | socks_proxy_info |
Functions | |
void | socks_adjust_frame_parameters (struct frame *frame, int proto) |
struct socks_proxy_info * | socks_proxy_new (const char *server, const char *port, const char *authfile) |
void | socks_proxy_close (struct socks_proxy_info *sp) |
void | establish_socks_proxy_passthru (struct socks_proxy_info *p, socket_descriptor_t sd, const char *host, const char *servname, volatile int *signal_received) |
void | establish_socks_proxy_udpassoc (struct socks_proxy_info *p, socket_descriptor_t ctrl_sd, socket_descriptor_t udp_sd, struct openvpn_sockaddr *relay_addr, volatile int *signal_received) |
void | socks_process_incoming_udp (struct buffer *buf, struct link_socket_actual *from) |
int | socks_process_outgoing_udp (struct buffer *buf, const struct link_socket_actual *to) |
void establish_socks_proxy_passthru | ( | struct socks_proxy_info * | p, |
socket_descriptor_t | sd, | ||
const char * | host, | ||
const char * | servname, | ||
volatile int * | signal_received | ||
) |
Definition at line 456 of file socks.c.
References D_LINK_ERRORS, M_ERRNO, msg, MSG_NOSIGNAL, port_from_servname(), recv_socks_reply(), SIGUSR1, socks_handshake(), and ssize_t.
Referenced by phase2_tcp_client().
void establish_socks_proxy_udpassoc | ( | struct socks_proxy_info * | p, |
socket_descriptor_t | ctrl_sd, | ||
socket_descriptor_t | udp_sd, | ||
struct openvpn_sockaddr * | relay_addr, | ||
volatile int * | signal_received | ||
) |
Definition at line 519 of file socks.c.
References CLEAR, D_LINK_ERRORS, M_ERRNO, msg, MSG_NOSIGNAL, recv_socks_reply(), SIGUSR1, socks_handshake(), and ssize_t.
Referenced by phase2_socks_client().
void socks_adjust_frame_parameters | ( | struct frame * | frame, |
int | proto | ||
) |
Definition at line 53 of file socks.c.
References frame_add_to_extra_link(), and PROTO_UDP.
Referenced by do_init_frame().
void socks_process_incoming_udp | ( | struct buffer * | buf, |
struct link_socket_actual * | from | ||
) |
Definition at line 568 of file socks.c.
References openvpn_sockaddr::addr, BLEN, buf_read(), buf_read_u16(), buf_read_u8(), link_socket_actual::dest, openvpn_sockaddr::in4, and buffer::len.
Referenced by socks_postprocess_incoming_link().
int socks_process_outgoing_udp | ( | struct buffer * | buf, |
const struct link_socket_actual * | to | ||
) |
Definition at line 607 of file socks.c.
References openvpn_sockaddr::addr, ASSERT, buf_defined(), buf_sub(), buf_write(), buf_write_u16(), buf_write_u8(), link_socket_actual::dest, and openvpn_sockaddr::in4.
Referenced by socks_preprocess_outgoing_link().
void socks_proxy_close | ( | struct socks_proxy_info * | sp | ) |
struct socks_proxy_info* socks_proxy_new | ( | const char * | server, |
const char * | port, | ||
const char * | authfile | ||
) |
Definition at line 62 of file socks.c.
References ALLOC_OBJ_CLEAR, ASSERT, socks_proxy_info::authfile, socks_proxy_info::defined, socks_proxy_info::port, socks_proxy_info::server, and strncpynt().
Referenced by init_proxy_dowork().