restrict PA-TNC messages to maximum size

This commit is contained in:
Andreas Steffen
2012-07-12 21:26:18 +02:00
parent c5d2e61802
commit 968c83cdeb
15 changed files with 243 additions and 29 deletions
+14
View File
@@ -63,6 +63,20 @@ D attached to the state
*/
void (*set_flags)(imc_state_t *this, bool has_long, bool has_excl);
/**
* Set the maximum size of a PA-TNC message for this TNCCS connection
*
* @max_msg_len maximum size of a PA-TNC message
*/
void (*set_max_msg_len)(imc_state_t *this, u_int32_t max_msg_len);
/**
* Get the maximum size of a PA-TNC message for this TNCCS connection
*
* @return maximum size of a PA-TNC message
*/
u_int32_t (*get_max_msg_len)(imc_state_t *this);
/**
* Change the connection state
*