diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-04-07 17:22:23 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-04-07 17:22:23 +0200 |
commit | 0142079ce2e7a5e062d06aa8dddf2fdc1529035d (patch) | |
tree | eb0bd17aec8a7a5501435d11cfe2d53402db5dcd /src/transport/transport.h | |
parent | a8c2bed07d3d43c34cfcf8fe96e56ea516feaf80 (diff) | |
download | gnunet-0142079ce2e7a5e062d06aa8dddf2fdc1529035d.tar.gz gnunet-0142079ce2e7a5e062d06aa8dddf2fdc1529035d.zip |
implement #5551 (UDP broadcast learning in TNG)
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 |