diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-13 12:48:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-13 12:48:34 +0000 |
commit | fdead2414ccf29e4542d17df5eb18b8bb1d9a878 (patch) | |
tree | 108da53bbe006b4c5a308fbff42d425cf7b79db6 /src/dv/dv.h | |
parent | f67fd220c5280b352c6cc9f689d5b4fb528092cd (diff) | |
download | gnunet-fdead2414ccf29e4542d17df5eb18b8bb1d9a878.tar.gz gnunet-fdead2414ccf29e4542d17df5eb18b8bb1d9a878.zip |
allow distance change to communicate changes in network of next hop as well, related to #3191, but not sure if it fixes it
Diffstat (limited to 'src/dv/dv.h')
-rw-r--r-- | src/dv/dv.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/dv/dv.h b/src/dv/dv.h index b20e0b8ff..e791ed15c 100644 --- a/src/dv/dv.h +++ b/src/dv/dv.h | |||
@@ -37,7 +37,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
37 | struct GNUNET_DV_ConnectMessage | 37 | struct GNUNET_DV_ConnectMessage |
38 | { | 38 | { |
39 | /** | 39 | /** |
40 | * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_CONNECT | 40 | * Type: #GNUNET_MESSAGE_TYPE_TRANSPORT_DV_CONNECT |
41 | */ | 41 | */ |
42 | struct GNUNET_MessageHeader header; | 42 | struct GNUNET_MessageHeader header; |
43 | 43 | ||
@@ -47,14 +47,14 @@ struct GNUNET_DV_ConnectMessage | |||
47 | uint32_t distance GNUNET_PACKED; | 47 | uint32_t distance GNUNET_PACKED; |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * The network the peer is in | 50 | * The other peer (at the given distance). |
51 | */ | 51 | */ |
52 | uint32_t network GNUNET_PACKED; | 52 | struct GNUNET_PeerIdentity peer; |
53 | 53 | ||
54 | /** | 54 | /** |
55 | * The other peer (at the given distance). | 55 | * The network the peer is in |
56 | */ | 56 | */ |
57 | struct GNUNET_PeerIdentity peer; | 57 | uint32_t network GNUNET_PACKED; |
58 | 58 | ||
59 | }; | 59 | }; |
60 | 60 | ||
@@ -69,7 +69,7 @@ struct GNUNET_DV_ConnectMessage | |||
69 | struct GNUNET_DV_DisconnectMessage | 69 | struct GNUNET_DV_DisconnectMessage |
70 | { | 70 | { |
71 | /** | 71 | /** |
72 | * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_DISCONNECT | 72 | * Type: #GNUNET_MESSAGE_TYPE_TRANSPORT_DV_DISCONNECT |
73 | */ | 73 | */ |
74 | struct GNUNET_MessageHeader header; | 74 | struct GNUNET_MessageHeader header; |
75 | 75 | ||
@@ -96,7 +96,7 @@ struct GNUNET_DV_DisconnectMessage | |||
96 | struct GNUNET_DV_ReceivedMessage | 96 | struct GNUNET_DV_ReceivedMessage |
97 | { | 97 | { |
98 | /** | 98 | /** |
99 | * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECV | 99 | * Type: #GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECV |
100 | */ | 100 | */ |
101 | struct GNUNET_MessageHeader header; | 101 | struct GNUNET_MessageHeader header; |
102 | 102 | ||
@@ -121,7 +121,7 @@ struct GNUNET_DV_ReceivedMessage | |||
121 | struct GNUNET_DV_SendMessage | 121 | struct GNUNET_DV_SendMessage |
122 | { | 122 | { |
123 | /** | 123 | /** |
124 | * Type: GNUNET_MESSAGE_TYPE_DV_SEND | 124 | * Type: #GNUNET_MESSAGE_TYPE_DV_SEND |
125 | */ | 125 | */ |
126 | struct GNUNET_MessageHeader header; | 126 | struct GNUNET_MessageHeader header; |
127 | 127 | ||
@@ -145,8 +145,8 @@ struct GNUNET_DV_SendMessage | |||
145 | struct GNUNET_DV_AckMessage | 145 | struct GNUNET_DV_AckMessage |
146 | { | 146 | { |
147 | /** | 147 | /** |
148 | * Type: GNUNET_MESSAGE_TYPE_DV_SEND_ACK or | 148 | * Type: #GNUNET_MESSAGE_TYPE_DV_SEND_ACK or |
149 | * GNUNET_MESSAGE_TYPE_DV_SEND_NACK. | 149 | * #GNUNET_MESSAGE_TYPE_DV_SEND_NACK. |
150 | */ | 150 | */ |
151 | struct GNUNET_MessageHeader header; | 151 | struct GNUNET_MessageHeader header; |
152 | 152 | ||
@@ -170,7 +170,7 @@ struct GNUNET_DV_AckMessage | |||
170 | struct GNUNET_DV_DistanceUpdateMessage | 170 | struct GNUNET_DV_DistanceUpdateMessage |
171 | { | 171 | { |
172 | /** | 172 | /** |
173 | * Type: GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED. | 173 | * Type: #GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED. |
174 | */ | 174 | */ |
175 | struct GNUNET_MessageHeader header; | 175 | struct GNUNET_MessageHeader header; |
176 | 176 | ||
@@ -184,6 +184,11 @@ struct GNUNET_DV_DistanceUpdateMessage | |||
184 | */ | 184 | */ |
185 | struct GNUNET_PeerIdentity peer; | 185 | struct GNUNET_PeerIdentity peer; |
186 | 186 | ||
187 | /** | ||
188 | * The network the peer is in | ||
189 | */ | ||
190 | uint32_t network GNUNET_PACKED; | ||
191 | |||
187 | }; | 192 | }; |
188 | 193 | ||
189 | 194 | ||