summaryrefslogtreecommitdiffstats
path: root/include/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/protocol.h')
-rw-r--r--include/protocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h
index 1f941a4..cd28e2d 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -111,6 +111,11 @@ int get_tlv(struct tlv_parser *parser, struct tlv *ret);
/**
* Appends data to the next packet to be sent. Type of data is determined by
* enum tlv_type.
+ *
+ * In case of overflow return E_TLV_OVERFLOW.
+ *
+ * Overflow can be detected after forming tlv header. This means that the
+ * packet may have changes.
* */
int push_data(struct tlv_packet *packet, enum tlv_type type, char *data);