diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-12-15 07:30:46 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-12-15 07:30:46 +0000 |
commit | 13127bcace2ce4ae867f885e7ffb4b3885402ecd (patch) | |
tree | 71e38cf952e2cafed2d106c8bac8b2e6b0406f8b /src/cadet | |
parent | 6b9a9a88ba0f2201f7b1a759b75292ab05e36588 (diff) | |
download | gnunet-13127bcace2ce4ae867f885e7ffb4b3885402ecd.tar.gz gnunet-13127bcace2ce4ae867f885e7ffb4b3885402ecd.zip |
- fix cadet's overhead
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 7c420843e..f1cbad63c 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -2184,8 +2184,10 @@ GCT_init (const struct GNUNET_CONFIGURATION_Handle *c, | |||
2184 | 2184 | ||
2185 | LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); | 2185 | LOG (GNUNET_ERROR_TYPE_DEBUG, "init\n"); |
2186 | 2186 | ||
2187 | expected_overhead = | 2187 | expected_overhead = 0; |
2188 | sizeof (struct GNUNET_CADET_Encrypted) + sizeof (struct GNUNET_CADET_Data); | 2188 | expected_overhead += sizeof (struct GNUNET_CADET_Encrypted); |
2189 | expected_overhead += sizeof (struct GNUNET_CADET_Data); | ||
2190 | expected_overhead += sizeof (struct GNUNET_CADET_ACK); | ||
2189 | GNUNET_assert (GNUNET_CONSTANTS_CADET_P2P_OVERHEAD == expected_overhead); | 2191 | GNUNET_assert (GNUNET_CONSTANTS_CADET_P2P_OVERHEAD == expected_overhead); |
2190 | 2192 | ||
2191 | if (GNUNET_OK != | 2193 | if (GNUNET_OK != |