|
OpenVPN
|
struct used to extract packets encapsulated in streams into a buffer, in this case OpenVPN packets (data or control) embedded in a TCP stream. More...
#include <socket.h>

Data Fields | |
| struct buffer | buf_init |
| struct buffer | residual |
| buffer holding the excess bytes that are not part of the packet. | |
| int | maxlen |
| Maximum length of a packet that we accept. | |
| bool | residual_fully_formed |
| The buffer in buf contains a full packet without a header. | |
| struct buffer | buf |
| Holds the data of the current packet. | |
| int | len |
| -1 if not yet known. | |
| bool | error |
| if true, a fatal TCP error has occurred, requiring that connection be restarted | |
struct used to extract packets encapsulated in streams into a buffer, in this case OpenVPN packets (data or control) embedded in a TCP stream.
This struct is used to packetise the TCP stream into the OpenVPN packet. Each OpenVPN packet has a two-byte header determining the length of the packet.
| bool stream_buf::error |
if true, a fatal TCP error has occurred, requiring that connection be restarted
Definition at line 132 of file socket.h.
Referenced by socket_connection_reset().
| int stream_buf::len |
| int stream_buf::maxlen |
Maximum length of a packet that we accept.
Definition at line 116 of file socket.h.
Referenced by link_socket_write_tcp().
buffer holding the excess bytes that are not part of the packet.
Definition at line 113 of file socket.h.
Referenced by phase2_tcp_client().
| bool stream_buf::residual_fully_formed |
The buffer in buf contains a full packet without a header.
Any extra data is in residual
Definition at line 120 of file socket.h.
Referenced by link_socket_read_tcp(), and sockets_read_residual().