On Mon, 28 Feb 2005, Bram wrote:

> Hello,
> 
> 
> According to this message:
> http://sourceforge.net/mailarchive/message.php?msg_id=10639223 OpenVPN adds a
> cleartext uint16_t length word before every packet, now my question is this: 
> is
> it always the same word? where is it defined/calculated etc?

A uint16_t word is used to packetize TCP streams.  It's not used with UDP 
because UDP is already packetized (so the equivalent length would be in 
the header).

It's not always the same word -- it is a packet length, and will vary with 
every packet.

It's calculated by the stream_buf_x functions in socket.[ch]

James

Reply via email to