diff options
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index b231ea8ae..fe1044383 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -1139,6 +1139,37 @@ struct ExpressPreferenceMessage | |||
1139 | }; | 1139 | }; |
1140 | 1140 | ||
1141 | 1141 | ||
1142 | /** | ||
1143 | * We got an address of another peer, TRANSPORT service | ||
1144 | * should validate it. There is no response. | ||
1145 | */ | ||
1146 | struct RequestHelloValidationMessage | ||
1147 | { | ||
1148 | |||
1149 | /** | ||
1150 | * Type is #GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_HELLO_VALIDATION. | ||
1151 | */ | ||
1152 | struct GNUNET_MessageHeader header; | ||
1153 | |||
1154 | /** | ||
1155 | * What type of network does the other peer claim this is? | ||
1156 | * A `enum GNUNET_NetworkType` in NBO. | ||
1157 | */ | ||
1158 | uint32_t nt GNUNET_PACKED; | ||
1159 | |||
1160 | /** | ||
1161 | * Peer to the address is presumably for. | ||
1162 | */ | ||
1163 | struct GNUNET_PeerIdentity peer; | ||
1164 | |||
1165 | /** | ||
1166 | * When does the address expire? | ||
1167 | */ | ||
1168 | struct GNUNET_TIME_AbsoluteNBO expiration; | ||
1169 | |||
1170 | /* followed by 0-terminated address to validate */ | ||
1171 | }; | ||
1172 | |||
1142 | #endif | 1173 | #endif |
1143 | 1174 | ||
1144 | GNUNET_NETWORK_STRUCT_END | 1175 | GNUNET_NETWORK_STRUCT_END |