diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2011-07-28 23:56:24 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2011-07-28 23:56:24 +0200 |
commit | 98619012e242176bcbdc3215fa462fa2cf882e36 (patch) | |
tree | 0b5178b62a70fb162a1afe44b0608018a4d92c52 /mtu.h | |
parent | 15bd346ca01806bea3f697bbc93a979e4b4035f1 (diff) | |
download | openvpn-98619012e242176bcbdc3215fa462fa2cf882e36.tar.gz openvpn-98619012e242176bcbdc3215fa462fa2cf882e36.tar.xz openvpn-98619012e242176bcbdc3215fa462fa2cf882e36.zip |
Added main/control docs
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'mtu.h')
-rw-r--r-- | mtu.h | 68 |
1 files changed, 36 insertions, 32 deletions
@@ -86,39 +86,43 @@ */ #define PAYLOAD_ALIGN 4 -struct frame { - /* - * Maximum datagram size to be sent over the tunnel TCP/UDP channel. - */ - int link_mtu; - int link_mtu_dynamic; - - /* - * How many extra bytes might each subsystem (crypto, TLS, or, compression) - * add to frame in worst case? - * - * mtu + extra_frame = MTU of TCP/UDP transport - */ - int extra_frame; - - /* - * Worst case size added to internal buffer due to functions - * such as compression which can potentially expand the size of uncompressible - * data. - */ - int extra_buffer; - - /* - * Max number of bytes in excess of tun mtu size that we might read - * or write from TUN/TAP device. - */ - int extra_tun; - /* - * Max number of bytes in excess of link mtu size that we might read - * or write from UDP/TCP link. - */ - int extra_link; +/**************************************************************************/ +/** + * Packet geometry parameters. + */ +struct frame { + int link_mtu; /**< Maximum packet size to be sent over + * the external network interface. */ + + int link_mtu_dynamic; /**< Dynamic MTU value for the external + * network interface. */ + + int extra_frame; /**< Maximum number of bytes that all + * processing steps together could add. + * @code + * frame.link_mtu = "socket MTU" - extra_frame; + * @endcode + */ + + int extra_buffer; /**< Maximum number of bytes that + * processing steps could expand the + * internal work buffer. + * + * This is used by the \link compression + * Data Channel Compression + * module\endlink to give enough working + * space for worst-case expansion of + * incompressible content. */ + + int extra_tun; /**< Maximum number of bytes in excess of + * the tun/tap MTU that might be read + * from or written to the virtual + * tun/tap network interface. */ + + int extra_link; /**< Maximum number of bytes in excess of + * external network interface's MTU that + * might be read from or written to it. */ /* * Alignment control |