1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Several classes now use PDUOption::length_field instead of data_size.

This commit is contained in:
Matias Fontanini
2013-04-08 11:58:12 -03:00
parent f7f5a9bc9a
commit 20054e6c73
14 changed files with 70 additions and 83 deletions

View File

@@ -153,7 +153,12 @@ public:
/**
* \brief Retrieves the data length field.
*
* This may be different to the actual size of the data.
* This may be different to the actual size of the data. Note that
* in some protocols, such as TCP, the size of the length and the
* identifier fields is added to this field before serializing.
* Therefore, if on one of such protocols, an option's length_field
* returns X, then the actual length included in the serialized
* option will be X + C, where C is the size of those fields.
*
* \sa data_size.
*/