diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-11-10 17:45:42 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-11-10 17:45:42 +0000 |
commit | b2db84d189c458659516b9ce42529e1b67d09a51 (patch) | |
tree | 92170c690a2d5a7ecaef0c5917b9b41af338a60a /src/mesh/mesh_protocol.h | |
parent | 761771af0bfe60b1859b44efc4b526be8f5da8ed (diff) | |
download | gnunet-b2db84d189c458659516b9ce42529e1b67d09a51.tar.gz gnunet-b2db84d189c458659516b9ce42529e1b67d09a51.zip |
Added TTL and packet ID to multicast packets, to avoid eternal retransmission and packet duplication on trees with loops/mutliple paths respectively.
Diffstat (limited to 'src/mesh/mesh_protocol.h')
-rw-r--r-- | src/mesh/mesh_protocol.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesh/mesh_protocol.h b/src/mesh/mesh_protocol.h index 180ba453f..b6c7f1b24 100644 --- a/src/mesh/mesh_protocol.h +++ b/src/mesh/mesh_protocol.h | |||
@@ -81,6 +81,16 @@ struct GNUNET_MESH_Multicast | |||
81 | uint32_t tid GNUNET_PACKED; | 81 | uint32_t tid GNUNET_PACKED; |
82 | 82 | ||
83 | /** | 83 | /** |
84 | * Number of hops to live | ||
85 | */ | ||
86 | uint32_t ttl GNUNET_PACKED; | ||
87 | |||
88 | /** | ||
89 | * Unique ID of the packet | ||
90 | */ | ||
91 | uint32_t mid GNUNET_PACKED; | ||
92 | |||
93 | /** | ||
84 | * OID of the tunnel | 94 | * OID of the tunnel |
85 | */ | 95 | */ |
86 | struct GNUNET_PeerIdentity oid; | 96 | struct GNUNET_PeerIdentity oid; |