fix msg header documentation

This commit is contained in:
Markus Teich 2017-02-14 13:37:22 +01:00
parent 0ba069aeae
commit cd15b0367a

View File

@ -53,6 +53,14 @@ enum outcome_type {
GNUNET_NETWORK_STRUCT_BEGIN GNUNET_NETWORK_STRUCT_BEGIN
/**
* Every message is prefixed with this header.
*
* BEWARE: Introducing a 16bit length field will not work. M+1st price auctions
* with private outcome send a n*n*(n-1)*k*128 = n²(n-1)*64 (for a reasonable
* k-choice of 512 possible prices) byte message from the seller to all bidders
* (decrypt-round). For just two bidders this is already 256k bytes, but 16bit
* uint only can address 64k bytes. */
struct msg_head { struct msg_head {
uint32_t prot_version GNUNET_PACKED; uint32_t prot_version GNUNET_PACKED;
uint32_t msg_type GNUNET_PACKED; uint32_t msg_type GNUNET_PACKED;