gnunet_protocols.h 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570
  1. /*
  2. This file is part of GNUnet.
  3. Copyright (C) 2001--2020 GNUnet e.V.
  4. GNUnet is free software: you can redistribute it and/or modify it
  5. under the terms of the GNU Affero General Public License as published
  6. by the Free Software Foundation, either version 3 of the License,
  7. or (at your option) any later version.
  8. GNUnet is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. SPDX-License-Identifier: AGPL3.0-or-later
  15. */
  16. /**
  17. * @author Christian Grothoff
  18. * @author Tobias Frisch
  19. *
  20. * @file
  21. * Constants for network protocols
  22. *
  23. * @defgroup protocols Network protocol definitions
  24. * Types of messages used in GNUnet.
  25. *
  26. * @see [Documentation](https://gnunet.org/ipc)
  27. *
  28. * @{
  29. */
  30. /*******************************************************************************
  31. * TODO: we need a way to register message types centrally (via some webpage).
  32. * For now: unofficial extensions should start at 48k, internal extensions
  33. * defined here should leave some room (4-10 additional messages to the previous
  34. * extension).
  35. ******************************************************************************/
  36. #ifndef GNUNET_PROTOCOLS_H
  37. #define GNUNET_PROTOCOLS_H
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #if 0 /* keep Emacsens' auto-indent happy */
  41. }
  42. #endif
  43. #endif
  44. /*******************************************************************************
  45. * Deprecated
  46. * *****************************************************************************/
  47. /**
  48. * Test if service is online.
  49. *
  50. * @deprecated!
  51. */
  52. #define GNUNET_MESSAGE_TYPE_TEST 0
  53. /*******************************************************************************
  54. * AGPL source code download
  55. * *****************************************************************************/
  56. /**
  57. * Message to request source code link.
  58. */
  59. #define GNUNET_MESSAGE_TYPE_REQUEST_AGPL 1
  60. /**
  61. * Source code link.
  62. */
  63. #define GNUNET_MESSAGE_TYPE_RESPONSE_AGPL 2
  64. /*******************************************************************************
  65. * RESOLVER message types
  66. ******************************************************************************/
  67. /**
  68. * Request DNS resolution.
  69. */
  70. #define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 4
  71. /**
  72. * Response to a DNS resolution request.
  73. */
  74. #define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5
  75. /*******************************************************************************
  76. * UTIL message types
  77. ******************************************************************************/
  78. /**
  79. * Dummy messages for testing / benchmarking.
  80. */
  81. #define GNUNET_MESSAGE_TYPE_DUMMY 6
  82. /**
  83. * Another dummy messages for testing / benchmarking.
  84. */
  85. #define GNUNET_MESSAGE_TYPE_DUMMY2 7
  86. /*******************************************************************************
  87. * ARM message types
  88. ******************************************************************************/
  89. /**
  90. * Request to ARM to start a service.
  91. */
  92. #define GNUNET_MESSAGE_TYPE_ARM_START 8
  93. /**
  94. * Request to ARM to stop a service.
  95. */
  96. #define GNUNET_MESSAGE_TYPE_ARM_STOP 9
  97. /**
  98. * Response from ARM.
  99. */
  100. #define GNUNET_MESSAGE_TYPE_ARM_RESULT 10
  101. /**
  102. * Status update from ARM.
  103. */
  104. #define GNUNET_MESSAGE_TYPE_ARM_STATUS 11
  105. /**
  106. * Request to ARM to list all currently running services
  107. */
  108. #define GNUNET_MESSAGE_TYPE_ARM_LIST 12
  109. /**
  110. * Response from ARM for listing currently running services
  111. */
  112. #define GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT 13
  113. /**
  114. * Request to ARM to notify client of service status changes
  115. */
  116. #define GNUNET_MESSAGE_TYPE_ARM_MONITOR 14
  117. /**
  118. * Test if ARM service is online.
  119. */
  120. #define GNUNET_MESSAGE_TYPE_ARM_TEST 15
  121. /*******************************************************************************
  122. * HELLO message types
  123. ******************************************************************************/
  124. /**
  125. * Previously used for HELLO messages used for communicating peer addresses.
  126. * Managed by libgnunethello.
  127. */
  128. #define GNUNET_MESSAGE_TYPE_HELLO_LEGACY 16
  129. /**
  130. * HELLO message with friend only flag used for communicating peer addresses.
  131. * Managed by libgnunethello.
  132. */
  133. #define GNUNET_MESSAGE_TYPE_HELLO 17
  134. /*******************************************************************************
  135. * FRAGMENTATION message types
  136. ******************************************************************************/
  137. /**
  138. * FRAGMENT of a larger message.
  139. * Managed by libgnunetfragment.
  140. */
  141. #define GNUNET_MESSAGE_TYPE_FRAGMENT 18
  142. /**
  143. * Acknowledgement of a FRAGMENT of a larger message.
  144. * Managed by libgnunetfragment.
  145. */
  146. #define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
  147. /*******************************************************************************
  148. * Transport-WLAN message types
  149. ******************************************************************************/
  150. /**
  151. * Type of data messages from the plugin to the gnunet-wlan-helper
  152. */
  153. #define GNUNET_MESSAGE_TYPE_WLAN_DATA_TO_HELPER 39
  154. /**
  155. * Type of data messages from the gnunet-wlan-helper to the plugin
  156. */
  157. #define GNUNET_MESSAGE_TYPE_WLAN_DATA_FROM_HELPER 40
  158. /**
  159. * Control message between the gnunet-wlan-helper and the daemon (with the MAC).
  160. */
  161. #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 41
  162. /**
  163. * Type of messages for advertisement over wlan
  164. */
  165. #define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 42
  166. /**
  167. * Type of messages for data over the wlan
  168. */
  169. #define GNUNET_MESSAGE_TYPE_WLAN_DATA 43
  170. /*******************************************************************************
  171. * Transport-DV message types
  172. ******************************************************************************/
  173. /**
  174. * DV service to DV Plugin message, when a message is
  175. * unwrapped by the DV service and handed to the plugin
  176. * for processing
  177. */
  178. #define GNUNET_MESSAGE_TYPE_DV_RECV 44
  179. /**
  180. * DV Plugin to DV service message, indicating a message
  181. * should be sent out.
  182. */
  183. #define GNUNET_MESSAGE_TYPE_DV_SEND 45
  184. /**
  185. * DV service to DV api message, containing a confirmation
  186. * or failure of a DV_SEND message.
  187. */
  188. #define GNUNET_MESSAGE_TYPE_DV_SEND_ACK 46
  189. /**
  190. * P2P DV message encapsulating some real message
  191. */
  192. #define GNUNET_MESSAGE_TYPE_DV_ROUTE 47
  193. /**
  194. * DV Plugin to DV service message, indicating
  195. * startup.
  196. */
  197. #define GNUNET_MESSAGE_TYPE_DV_START 48
  198. /**
  199. * P2P DV message telling plugin that a peer connected
  200. */
  201. #define GNUNET_MESSAGE_TYPE_DV_CONNECT 49
  202. /**
  203. * P2P DV message telling plugin that a peer disconnected
  204. */
  205. #define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50
  206. /**
  207. * P2P DV message telling plugin that a message transmission failed (negative
  208. * ACK)
  209. */
  210. #define GNUNET_MESSAGE_TYPE_DV_SEND_NACK 51
  211. /**
  212. * P2P DV message telling plugin that our distance to a peer changed
  213. */
  214. #define GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED 52
  215. /**
  216. * DV message box for boxing multiple messages.
  217. */
  218. #define GNUNET_MESSAGE_TYPE_DV_BOX 53
  219. /**
  220. * Experimental message type.
  221. */
  222. #define GNUNET_MESSAGE_TYPE_TRANSPORT_XU_MESSAGE 55
  223. /*******************************************************************************
  224. * Transport-UDP message types
  225. ******************************************************************************/
  226. /**
  227. * Normal UDP message type.
  228. */
  229. #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 56
  230. /**
  231. * UDP ACK.
  232. */
  233. #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 57
  234. /*******************************************************************************
  235. * Transport-TCP message types
  236. ******************************************************************************/
  237. /**
  238. * TCP NAT probe message, send from NAT'd peer to
  239. * other peer to establish bi-directional communication
  240. */
  241. #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 60
  242. /**
  243. * Welcome message between TCP transports.
  244. */
  245. #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61
  246. /**
  247. * Message to force transport to update bandwidth assignment (LEGACY)
  248. */
  249. #define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62
  250. /*******************************************************************************
  251. * NAT message types
  252. ******************************************************************************/
  253. /**
  254. * Message to ask NAT server to perform traversal test
  255. */
  256. #define GNUNET_MESSAGE_TYPE_NAT_TEST 63
  257. /*******************************************************************************
  258. * CORE message types
  259. ******************************************************************************/
  260. /**
  261. * Initial setup message from core client to core.
  262. */
  263. #define GNUNET_MESSAGE_TYPE_CORE_INIT 64
  264. /**
  265. * Response from core to core client to INIT message.
  266. */
  267. #define GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY 65
  268. /**
  269. * Notify clients about new peer-to-peer connections (triggered
  270. * after key exchange).
  271. */
  272. #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT 67
  273. /**
  274. * Notify clients about peer disconnecting.
  275. */
  276. #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT 68
  277. /**
  278. * Notify clients about peer status change.
  279. */
  280. #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE 69
  281. /**
  282. * Notify clients about incoming P2P messages.
  283. */
  284. #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND 70
  285. /**
  286. * Notify clients about outgoing P2P transmissions.
  287. */
  288. #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71
  289. /**
  290. * Request from client to transmit message.
  291. */
  292. #define GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST 74
  293. /**
  294. * Confirmation from core that message can now be sent
  295. */
  296. #define GNUNET_MESSAGE_TYPE_CORE_SEND_READY 75
  297. /**
  298. * Client with message to transmit (after SEND_READY confirmation
  299. * was received).
  300. */
  301. #define GNUNET_MESSAGE_TYPE_CORE_SEND 76
  302. /**
  303. * Request for connection monitoring from CORE service.
  304. */
  305. #define GNUNET_MESSAGE_TYPE_CORE_MONITOR_PEERS 78
  306. /**
  307. * Reply for monitor by CORE service.
  308. */
  309. #define GNUNET_MESSAGE_TYPE_CORE_MONITOR_NOTIFY 79
  310. /**
  311. * Encapsulation for an encrypted message between peers.
  312. */
  313. #define GNUNET_MESSAGE_TYPE_CORE_ENCRYPTED_MESSAGE 82
  314. /**
  315. * Check that other peer is alive (challenge).
  316. */
  317. #define GNUNET_MESSAGE_TYPE_CORE_PING 83
  318. /**
  319. * Confirmation that other peer is alive.
  320. */
  321. #define GNUNET_MESSAGE_TYPE_CORE_PONG 84
  322. /**
  323. * Request by the other peer to terminate the connection.
  324. */
  325. #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 85
  326. /**
  327. * gzip-compressed type map of the sender
  328. */
  329. #define GNUNET_MESSAGE_TYPE_CORE_COMPRESSED_TYPE_MAP 86
  330. /**
  331. * uncompressed type map of the sender
  332. */
  333. #define GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP 87
  334. /**
  335. * Session key exchange between peers.
  336. */
  337. #define GNUNET_MESSAGE_TYPE_CORE_EPHEMERAL_KEY 88
  338. /**
  339. * Other peer confirms having received the type map
  340. */
  341. #define GNUNET_MESSAGE_TYPE_CORE_CONFIRM_TYPE_MAP 89
  342. /*******************************************************************************
  343. * DATASTORE message types
  344. ******************************************************************************/
  345. /**
  346. * Message sent by datastore client on join.
  347. */
  348. #define GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE 92
  349. /**
  350. * Message sent by datastore client on join.
  351. */
  352. #define GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE 93
  353. /**
  354. * Message sent by datastore to client informing about status
  355. * processing a request
  356. * (in response to RESERVE, RELEASE_RESERVE, PUT, UPDATE and REMOVE requests).
  357. */
  358. #define GNUNET_MESSAGE_TYPE_DATASTORE_STATUS 94
  359. /**
  360. * Message sent by datastore client to store data.
  361. */
  362. #define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 95
  363. /**
  364. * Message sent by datastore client to get data.
  365. */
  366. #define GNUNET_MESSAGE_TYPE_DATASTORE_GET 97
  367. /**
  368. * Message sent by datastore client to get random data.
  369. */
  370. #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION 98
  371. /**
  372. * Message sent by datastore client to get random data.
  373. */
  374. #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY 99
  375. /**
  376. * Message sent by datastore to client providing requested data
  377. * (in response to GET or GET_RANDOM request).
  378. */
  379. #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 100
  380. /**
  381. * Message sent by datastore to client signaling end of matching data.
  382. * This message will also be sent for "GET_RANDOM", even though
  383. * "GET_RANDOM" returns at most one data item.
  384. */
  385. #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 101
  386. /**
  387. * Message sent by datastore client to remove data.
  388. */
  389. #define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 102
  390. /**
  391. * Message sent by datastore client to drop the database.
  392. */
  393. #define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103
  394. /**
  395. * Message sent by datastore client to get data by key.
  396. */
  397. #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_KEY 104
  398. /*******************************************************************************
  399. * FS message types
  400. ******************************************************************************/
  401. /**
  402. * Message sent by fs client to request LOC signature.
  403. */
  404. #define GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGN 126
  405. /**
  406. * Reply sent by fs service with LOC signature.
  407. */
  408. #define GNUNET_MESSAGE_TYPE_FS_REQUEST_LOC_SIGNATURE 127
  409. /**
  410. * Message sent by fs client to start indexing.
  411. */
  412. #define GNUNET_MESSAGE_TYPE_FS_INDEX_START 128
  413. /**
  414. * Affirmative response to a request for start indexing.
  415. */
  416. #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_OK 129
  417. /**
  418. * Response to a request for start indexing that
  419. * refuses.
  420. */
  421. #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED 130
  422. /**
  423. * Request from client for list of indexed files.
  424. */
  425. #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET 131
  426. /**
  427. * Reply to client with an indexed file name.
  428. */
  429. #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY 132
  430. /**
  431. * Reply to client indicating end of list.
  432. */
  433. #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END 133
  434. /**
  435. * Request from client to unindex a file.
  436. */
  437. #define GNUNET_MESSAGE_TYPE_FS_UNINDEX 134
  438. /**
  439. * Reply to client indicating unindex receipt.
  440. */
  441. #define GNUNET_MESSAGE_TYPE_FS_UNINDEX_OK 135
  442. /**
  443. * Client asks FS service to start a (keyword) search.
  444. */
  445. #define GNUNET_MESSAGE_TYPE_FS_START_SEARCH 136
  446. /**
  447. * P2P request for content (one FS to another).
  448. */
  449. #define GNUNET_MESSAGE_TYPE_FS_GET 137
  450. /**
  451. * P2P response with content or active migration of content. Also
  452. * used between the service and clients (in response to
  453. * #GNUNET_MESSAGE_TYPE_FS_START_SEARCH).
  454. */
  455. #define GNUNET_MESSAGE_TYPE_FS_PUT 138
  456. /**
  457. * Peer asks us to stop migrating content towards it for a while.
  458. */
  459. #define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139
  460. /**
  461. * P2P request for content (one FS to another via a cadet).
  462. */
  463. #define GNUNET_MESSAGE_TYPE_FS_CADET_QUERY 140
  464. /**
  465. * P2P answer for content (one FS to another via a cadet).
  466. */
  467. #define GNUNET_MESSAGE_TYPE_FS_CADET_REPLY 141
  468. /*******************************************************************************
  469. * DHT message types
  470. ******************************************************************************/
  471. /**
  472. * Client wants to store item in DHT.
  473. */
  474. #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 142
  475. /**
  476. * Client wants to lookup item in DHT.
  477. */
  478. #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 143
  479. /**
  480. * Client wants to stop search in DHT.
  481. */
  482. #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 144
  483. /**
  484. * Service returns result to client.
  485. */
  486. #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 145
  487. /**
  488. * Peer is storing data in DHT.
  489. */
  490. #define GNUNET_MESSAGE_TYPE_DHT_P2P_PUT 146
  491. /**
  492. * Peer tries to find data in DHT.
  493. */
  494. #define GNUNET_MESSAGE_TYPE_DHT_P2P_GET 147
  495. /**
  496. * Data is returned to peer from DHT.
  497. */
  498. #define GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT 148
  499. /**
  500. * Receive information about transiting GETs
  501. */
  502. #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET 149
  503. /**
  504. * Receive information about transiting GET responses
  505. */
  506. #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET_RESP 150
  507. /**
  508. * Receive information about transiting PUTs
  509. */
  510. #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT 151
  511. /**
  512. * Receive information about transiting PUT responses (TODO)
  513. */
  514. #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT_RESP 152
  515. /**
  516. * Request information about transiting messages
  517. */
  518. #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_START 153
  519. /**
  520. * Stop information about transiting messages
  521. */
  522. #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP 154
  523. /**
  524. * Certain results are already known to the client, filter those.
  525. */
  526. #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 156
  527. /**
  528. * Further X-VINE DHT messages continued from 880
  529. */
  530. /*******************************************************************************
  531. * HOSTLIST message types
  532. ******************************************************************************/
  533. /**
  534. * Hostlist advertisement message
  535. */
  536. #define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160
  537. /*******************************************************************************
  538. * STATISTICS message types
  539. ******************************************************************************/
  540. /**
  541. * Set a statistical value.
  542. */
  543. #define GNUNET_MESSAGE_TYPE_STATISTICS_SET 168
  544. /**
  545. * Get a statistical value(s).
  546. */
  547. #define GNUNET_MESSAGE_TYPE_STATISTICS_GET 169
  548. /**
  549. * Response to a STATISTICS_GET message (with value).
  550. */
  551. #define GNUNET_MESSAGE_TYPE_STATISTICS_VALUE 170
  552. /**
  553. * Response to a STATISTICS_GET message (end of value stream).
  554. */
  555. #define GNUNET_MESSAGE_TYPE_STATISTICS_END 171
  556. /**
  557. * Watch changes to a statistical value. Message format is the same
  558. * as for GET, except that the subsystem and entry name must be given.
  559. */
  560. #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH 172
  561. /**
  562. * Changes to a watched value.
  563. */
  564. #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE 173
  565. /**
  566. * Client is done sending service requests and will now disconnect.
  567. */
  568. #define GNUNET_MESSAGE_TYPE_STATISTICS_DISCONNECT 174
  569. /**
  570. * Service confirms disconnect and that it is done processing
  571. * all requests from the client.
  572. */
  573. #define GNUNET_MESSAGE_TYPE_STATISTICS_DISCONNECT_CONFIRM 175
  574. /*******************************************************************************
  575. * VPN message types
  576. ******************************************************************************/
  577. /**
  578. * Type of messages between the gnunet-vpn-helper and the daemon
  579. */
  580. #define GNUNET_MESSAGE_TYPE_VPN_HELPER 185
  581. /**
  582. * Type of messages containing an ICMP packet for a service.
  583. */
  584. #define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE 190
  585. /**
  586. * Type of messages containing an ICMP packet for the Internet.
  587. */
  588. #define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET 191
  589. /**
  590. * Type of messages containing an ICMP packet for the VPN
  591. */
  592. #define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN 192
  593. /**
  594. * Type of messages containing an DNS request for a DNS exit service.
  595. */
  596. #define GNUNET_MESSAGE_TYPE_VPN_DNS_TO_INTERNET 193
  597. /**
  598. * Type of messages containing an DNS reply from a DNS exit service.
  599. */
  600. #define GNUNET_MESSAGE_TYPE_VPN_DNS_FROM_INTERNET 194
  601. /**
  602. * Type of messages containing an TCP packet for a service.
  603. */
  604. #define GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START 195
  605. /**
  606. * Type of messages containing an TCP packet for the Internet.
  607. */
  608. #define GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START 196
  609. /**
  610. * Type of messages containing an TCP packet of an established connection.
  611. */
  612. #define GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_EXIT 197
  613. /**
  614. * Type of messages containing an TCP packet of an established connection.
  615. */
  616. #define GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_VPN 198
  617. /**
  618. * Type of messages containing an UDP packet for a service.
  619. */
  620. #define GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE 199
  621. /**
  622. * Type of messages containing an UDP packet for the Internet.
  623. */
  624. #define GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET 200
  625. /**
  626. * Type of messages containing an UDP packet from a remote host
  627. */
  628. #define GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY 201
  629. /**
  630. * Client asks VPN service to setup an IP to redirect traffic
  631. * via an exit node to some global IP address.
  632. */
  633. #define GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_IP 202
  634. /**
  635. * Client asks VPN service to setup an IP to redirect traffic
  636. * to some peer offering a service.
  637. */
  638. #define GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_SERVICE 203
  639. /**
  640. * VPN service responds to client with an IP to use for the
  641. * requested redirection.
  642. */
  643. #define GNUNET_MESSAGE_TYPE_VPN_CLIENT_USE_IP 204
  644. /*******************************************************************************
  645. * VPN-DNS message types
  646. ******************************************************************************/
  647. /**
  648. * Initial message from client to DNS service for registration.
  649. */
  650. #define GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT 211
  651. /**
  652. * Type of messages between the gnunet-helper-dns and the service
  653. */
  654. #define GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST 212
  655. /**
  656. * Type of messages between the gnunet-helper-dns and the service
  657. */
  658. #define GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE 213
  659. /**
  660. * Type of messages between the gnunet-helper-dns and the service
  661. */
  662. #define GNUNET_MESSAGE_TYPE_DNS_HELPER 214
  663. /*******************************************************************************
  664. * CHAT message types START
  665. ******************************************************************************/
  666. /**
  667. * Message sent from client to join a chat room.
  668. */
  669. #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300
  670. /**
  671. * Message sent to client to indicate joining of another room member.
  672. */
  673. #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_NOTIFICATION 301
  674. /**
  675. * Message sent to client to indicate leaving of another room member.
  676. */
  677. #define GNUNET_MESSAGE_TYPE_CHAT_LEAVE_NOTIFICATION 302
  678. /**
  679. * Notification sent by service to client indicating that we've received a chat
  680. * message.
  681. */
  682. #define GNUNET_MESSAGE_TYPE_CHAT_MESSAGE_NOTIFICATION 303
  683. /**
  684. * Request sent by client to transmit a chat message to another room members.
  685. */
  686. #define GNUNET_MESSAGE_TYPE_CHAT_TRANSMIT_REQUEST 304
  687. /**
  688. * Receipt sent from a message receiver to the service to confirm delivery of
  689. * a chat message.
  690. */
  691. #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_RECEIPT 305
  692. /**
  693. * Notification sent from the service to the original sender
  694. * to acknowledge delivery of a chat message.
  695. */
  696. #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_NOTIFICATION 306
  697. /**
  698. * P2P message sent to indicate joining of another room member.
  699. */
  700. #define GNUNET_MESSAGE_TYPE_CHAT_P2P_JOIN_NOTIFICATION 307
  701. /**
  702. * P2P message sent to indicate leaving of another room member.
  703. */
  704. #define GNUNET_MESSAGE_TYPE_CHAT_P2P_LEAVE_NOTIFICATION 308
  705. /**
  706. * P2P message sent to a newly connected peer to request its known clients in
  707. * order to synchronize room members.
  708. */
  709. #define GNUNET_MESSAGE_TYPE_CHAT_P2P_SYNC_REQUEST 309
  710. /**
  711. * Notification sent from one peer to another to indicate that we have received
  712. * a chat message.
  713. */
  714. #define GNUNET_MESSAGE_TYPE_CHAT_P2P_MESSAGE_NOTIFICATION 310
  715. /**
  716. * P2P receipt confirming delivery of a chat message.
  717. */
  718. #define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311
  719. /*******************************************************************************
  720. * NSE (network size estimation) message types
  721. ******************************************************************************/
  722. /**
  723. * client->service message indicating start
  724. */
  725. #define GNUNET_MESSAGE_TYPE_NSE_START 321
  726. /**
  727. * P2P message sent from nearest peer
  728. */
  729. #define GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD 322
  730. /**
  731. * service->client message indicating
  732. */
  733. #define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323
  734. /*******************************************************************************
  735. * PEERINFO message types
  736. ******************************************************************************/
  737. /**
  738. * Request update and listing of a peer.
  739. */
  740. #define GNUNET_MESSAGE_TYPE_PEERINFO_GET 330
  741. /**
  742. * Request update and listing of all peers.
  743. */
  744. #define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 331
  745. /**
  746. * Information about one of the peers.
  747. */
  748. #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 332
  749. /**
  750. * End of information about other peers.
  751. */
  752. #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 333
  753. /**
  754. * Start notifying this client about all changes to
  755. * the known peers until it disconnects.
  756. */
  757. #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 334
  758. /*******************************************************************************
  759. * ATS message types
  760. ******************************************************************************/
  761. /**
  762. * Type of the 'struct ClientStartMessage' sent by clients to ATS to
  763. * identify the type of the client.
  764. */
  765. #define GNUNET_MESSAGE_TYPE_ATS_START 340
  766. /**
  767. * Type of the 'struct RequestAddressMessage' sent by clients to ATS
  768. * to request an address to help connect.
  769. */
  770. #define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS 341
  771. /**
  772. * Type of the 'struct RequestAddressMessage' sent by clients to ATS
  773. * to request an address to help connect.
  774. */
  775. #define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL 342
  776. /**
  777. * Type of the 'struct AddressUpdateMessage' sent by clients to ATS
  778. * to inform ATS about performance changes.
  779. */
  780. #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE 343
  781. /**
  782. * Type of the 'struct AddressDestroyedMessage' sent by clients to ATS
  783. * to inform ATS about an address being unavailable.
  784. */
  785. #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED 344
  786. /**
  787. * Type of the 'struct AddressSuggestionMessage' sent by ATS to clients
  788. * to suggest switching to a different address.
  789. */
  790. #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION 345
  791. /**
  792. * Type of the 'struct PeerInformationMessage' sent by ATS to clients
  793. * to inform about QoS for a particular connection.
  794. */
  795. #define GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION 346
  796. /**
  797. * Type of the 'struct ReservationRequestMessage' sent by clients to ATS
  798. * to ask for inbound bandwidth reservations.
  799. */
  800. #define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_REQUEST 347
  801. /**
  802. * Type of the 'struct ReservationResultMessage' sent by ATS to clients
  803. * in response to a reservation request.
  804. */
  805. #define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT 348
  806. /**
  807. * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS
  808. * to ask for allocation preference changes.
  809. */
  810. #define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE 349
  811. /**
  812. * Type of the 'struct SessionReleaseMessage' sent by ATS to client
  813. * to confirm that a session ID was destroyed.
  814. */
  815. #define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 350
  816. /**
  817. * Type of the 'struct AddressUpdateMessage' sent by client to ATS
  818. * to add a new address
  819. */
  820. #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_ADD 353
  821. /**
  822. * Type of the 'struct AddressListRequestMessage' sent by client to ATS
  823. * to request information about addresses
  824. */
  825. #define GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_REQUEST 354
  826. /**
  827. * Type of the 'struct AddressListResponseMessage' sent by ATS to client
  828. * with information about addresses
  829. */
  830. #define GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE 355
  831. /**
  832. * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS
  833. * to ask for allocation preference changes.
  834. */
  835. #define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_FEEDBACK 356
  836. /*******************************************************************************
  837. * TRANSPORT message types
  838. ******************************************************************************/
  839. /**
  840. * Message from the core saying that the transport
  841. * server should start giving it messages. This
  842. * should automatically trigger the transmission of
  843. * a HELLO message.
  844. */
  845. #define GNUNET_MESSAGE_TYPE_TRANSPORT_START 360
  846. /**
  847. * Message from TRANSPORT notifying about a
  848. * client that connected to us.
  849. */
  850. #define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 361
  851. /**
  852. * Message from TRANSPORT notifying about a
  853. * client that disconnected from us.
  854. */
  855. #define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 362
  856. /**
  857. * Request to TRANSPORT to transmit a message.
  858. */
  859. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 363
  860. /**
  861. * Confirmation from TRANSPORT that message for transmission has been
  862. * queued (and that the next message to this peer can now be passed to
  863. * the service). Note that this confirmation does NOT imply that the
  864. * message was fully transmitted.
  865. */
  866. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 364
  867. /**
  868. * Message from TRANSPORT notifying about a
  869. * message that was received.
  870. */
  871. #define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 365
  872. /**
  873. * Message telling transport to limit its receive rate.
  874. * (FIXME: was the above comment ever accurate?)
  875. *
  876. * Note: dead in TNG, replaced by RECV_OK!
  877. */
  878. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 366
  879. /**
  880. * Message telling transport to limit its receive rate.
  881. */
  882. #define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV_OK 366
  883. /**
  884. * Request to look addresses of peers in server.
  885. */
  886. #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING 367
  887. /**
  888. * Response to the address lookup request.
  889. */
  890. #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING_REPLY 368
  891. /**
  892. * Register a client that wants to do blacklisting.
  893. */
  894. #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 369
  895. /**
  896. * Query to a blacklisting client (is this peer blacklisted)?
  897. */
  898. #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 370
  899. /**
  900. * Reply from blacklisting client (answer to blacklist query).
  901. */
  902. #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 371
  903. /**
  904. * Transport PING message
  905. */
  906. #define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 372
  907. /**
  908. * Transport PONG message
  909. */
  910. #define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 373
  911. /**
  912. * Transport SYN message exchanged between transport services to
  913. * indicate that a session should be marked as 'connected'.
  914. */
  915. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_SYN 375
  916. /**
  917. * Transport SYN_ACK message exchanged between transport services to
  918. * indicate that a SYN message was accepted
  919. */
  920. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_SYN_ACK 376
  921. /**
  922. * Transport ACK message exchanged between transport services to
  923. * indicate that a SYN_ACK message was accepted
  924. */
  925. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_ACK 377
  926. /**
  927. * Transport DISCONNECT message exchanged between transport services to
  928. * indicate that a connection should be dropped.
  929. */
  930. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 378
  931. /**
  932. * Message exchanged between transport services to
  933. * indicate that the sender should limit its transmission
  934. * rate to the indicated quota.
  935. */
  936. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_QUOTA 379
  937. /**
  938. * Request to monitor addresses used by a peer or all peers.
  939. */
  940. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_REQUEST 380
  941. /**
  942. * Message send by a peer to notify the other to keep the session alive
  943. * and measure latency in a regular interval
  944. */
  945. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 381
  946. /**
  947. * Response to a #GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE message to
  948. * measure latency in a regular interval
  949. */
  950. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE_RESPONSE 382
  951. /**
  952. * Response to #GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_REQUEST
  953. * request to iterate over all known addresses.
  954. */
  955. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_RESPONSE 383
  956. /**
  957. * Message send by a peer to notify the other to keep the session alive.
  958. */
  959. #define GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON 384
  960. /**
  961. * Message containing traffic metrics for transport service
  962. */
  963. #define GNUNET_MESSAGE_TYPE_TRANSPORT_TRAFFIC_METRIC 385
  964. /**
  965. * Request to start monitoring the connection state of plugins.
  966. */
  967. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_START 388
  968. /**
  969. * Monitoring event about the connection state of plugins,
  970. * generated in response to a subscription initiated via
  971. * #GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_START
  972. */
  973. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_EVENT 389
  974. /**
  975. * Monitoring event notifying client that the initial iteration
  976. * is now completed and we are in sync with the state of the subsystem.
  977. */
  978. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PLUGIN_SYNC 390
  979. /**
  980. * Response to #GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_RESPONSE_END
  981. * terminating list of replies.
  982. */
  983. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_PEER_RESPONSE_END 391
  984. /*******************************************************************************
  985. * FS-PUBLISH-HELPER IPC Messages
  986. ******************************************************************************/
  987. /**
  988. * Progress information from the helper: found a file
  989. */
  990. #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_FILE 420
  991. /**
  992. * Progress information from the helper: found a directory
  993. */
  994. #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY 421
  995. /**
  996. * Error signal from the helper.
  997. */
  998. #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR 422
  999. /**
  1000. * Signal that helper skipped a file.
  1001. */
  1002. #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_SKIP_FILE 423
  1003. /**
  1004. * Signal that helper is done scanning the directory tree.
  1005. */
  1006. #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE 424
  1007. /**
  1008. * Extracted meta data from the helper.
  1009. */
  1010. #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_META_DATA 425
  1011. /**
  1012. * Signal that helper is done.
  1013. */
  1014. #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED 426
  1015. /*******************************************************************************
  1016. * NAMECACHE message types
  1017. ******************************************************************************/
  1018. /**
  1019. * Client to service: lookup block
  1020. */
  1021. #define GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK 431
  1022. /**
  1023. * Service to client: result of block lookup
  1024. */
  1025. #define GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK_RESPONSE 432
  1026. /**
  1027. * Client to service: cache a block
  1028. */
  1029. #define GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE 433
  1030. /**
  1031. * Service to client: result of block cache request
  1032. */
  1033. #define GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE_RESPONSE 434
  1034. /*******************************************************************************
  1035. * NAMESTORE message types
  1036. ******************************************************************************/
  1037. /**
  1038. * Client to service: store records (as authority)
  1039. */
  1040. #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE 435
  1041. /**
  1042. * Service to client: result of store operation.
  1043. */
  1044. #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE 436
  1045. /**
  1046. * Client to service: lookup label
  1047. */
  1048. #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP 437
  1049. /**
  1050. * Service to client: lookup label
  1051. */
  1052. #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_LOOKUP_RESPONSE 438
  1053. /**
  1054. * Client to service: "reverse" lookup for zone name based on zone key
  1055. */
  1056. #define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME 439
  1057. /**
  1058. * Service to client: result of zone-to-name lookup.
  1059. */
  1060. #define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE 440
  1061. /**
  1062. * Client to service: start monitoring (yields sequence of
  1063. * "ZONE_ITERATION_RESPONSES" --- forever).
  1064. */
  1065. #define GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_START 441
  1066. /**
  1067. * Service to client: you're now in sync.
  1068. */
  1069. #define GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_SYNC 442
  1070. /**
  1071. * Service to client: here is a (plaintext) record you requested.
  1072. */
  1073. #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT 443
  1074. /**
  1075. * Client to service: I am now ready for the next (set of) monitor
  1076. * events. Monitoring equivlaent of
  1077. * #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT.
  1078. */
  1079. #define GNUNET_MESSAGE_TYPE_NAMESTORE_MONITOR_NEXT 444
  1080. /**
  1081. * Client to service: please start iteration; receives
  1082. * "GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_NAME_RESPONSE" messages in return.
  1083. */
  1084. #define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START 445
  1085. /**
  1086. * Client to service: next record(s) in iteration please.
  1087. */
  1088. #define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT 447
  1089. /**
  1090. * Client to service: stop iterating.
  1091. */
  1092. #define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 448
  1093. /**
  1094. * Service to client: end of list of results
  1095. */
  1096. #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT_END 449
  1097. /*******************************************************************************
  1098. * LOCKMANAGER message types
  1099. ******************************************************************************/
  1100. /**
  1101. * Message to acquire Lock
  1102. */
  1103. #define GNUNET_MESSAGE_TYPE_LOCKMANAGER_ACQUIRE 450
  1104. /**
  1105. * Message to release lock
  1106. */
  1107. #define GNUNET_MESSAGE_TYPE_LOCKMANAGER_RELEASE 451
  1108. /**
  1109. * SUCCESS reply from lockmanager
  1110. */
  1111. #define GNUNET_MESSAGE_TYPE_LOCKMANAGER_SUCCESS 452
  1112. /*******************************************************************************
  1113. * TESTBED message types
  1114. ******************************************************************************/
  1115. /**
  1116. * Initial message from a client to a testing control service
  1117. */
  1118. #define GNUNET_MESSAGE_TYPE_TESTBED_INIT 460
  1119. /**
  1120. * Message to add host
  1121. */
  1122. #define GNUNET_MESSAGE_TYPE_TESTBED_ADD_HOST 461
  1123. /**
  1124. * Message to signal that a add host succeeded
  1125. */
  1126. #define GNUNET_MESSAGE_TYPE_TESTBED_ADD_HOST_SUCCESS 462
  1127. /**
  1128. * Message to link delegated controller to slave controller
  1129. */
  1130. #define GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS 463
  1131. /**
  1132. * Message to create a peer at a host
  1133. */
  1134. #define GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER 464
  1135. /**
  1136. * Message to reconfigure a peer
  1137. */
  1138. #define GNUNET_MESSAGE_TYPE_TESTBED_RECONFIGURE_PEER 465
  1139. /**
  1140. * Message to start a peer at a host
  1141. */
  1142. #define GNUNET_MESSAGE_TYPE_TESTBED_START_PEER 466
  1143. /**
  1144. * Message to stop a peer at a host
  1145. */
  1146. #define GNUNET_MESSAGE_TYPE_TESTBED_STOP_PEER 467
  1147. /**
  1148. * Message to destroy a peer
  1149. */
  1150. #define GNUNET_MESSAGE_TYPE_TESTBED_DESTROY_PEER 468
  1151. /**
  1152. * Configure underlay link message
  1153. */
  1154. #define GNUNET_MESSAGE_TYPE_TESTBED_CONFIGURE_UNDERLAY_LINK 469
  1155. /**
  1156. * Message to connect peers in a overlay
  1157. */
  1158. #define GNUNET_MESSAGE_TYPE_TESTBED_OVERLAY_CONNECT 470
  1159. /**
  1160. * Message for peer events
  1161. */
  1162. #define GNUNET_MESSAGE_TYPE_TESTBED_PEER_EVENT 471
  1163. /**
  1164. * Message for peer connect events
  1165. */
  1166. #define GNUNET_MESSAGE_TYPE_TESTBED_PEER_CONNECT_EVENT 472
  1167. /**
  1168. * Message for operation events
  1169. */
  1170. #define GNUNET_MESSAGE_TYPE_TESTBED_OPERATION_FAIL_EVENT 473
  1171. /**
  1172. * Message to signal successful peer creation
  1173. */
  1174. #define GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER_SUCCESS 474
  1175. /**
  1176. * Message to signal a generic operation has been successful
  1177. */
  1178. #define GNUNET_MESSAGE_TYPE_TESTBED_GENERIC_OPERATION_SUCCESS 475
  1179. /**
  1180. * Message to get a peer's information
  1181. */
  1182. #define GNUNET_MESSAGE_TYPE_TESTBED_GET_PEER_INFORMATION 476
  1183. /**
  1184. * Message containing the peer's information
  1185. */
  1186. #define GNUNET_MESSAGE_TYPE_TESTBED_PEER_INFORMATION 477
  1187. /**
  1188. * Message to request a controller to make one of its peer to connect to another
  1189. * peer using the contained HELLO
  1190. */
  1191. #define GNUNET_MESSAGE_TYPE_TESTBED_REMOTE_OVERLAY_CONNECT 478
  1192. /**
  1193. * Message to request configuration of a slave controller
  1194. */
  1195. #define GNUNET_MESSAGE_TYPE_TESTBED_GET_SLAVE_CONFIGURATION 479
  1196. /**
  1197. * Message which contains the configuration of slave controller
  1198. */
  1199. #define GNUNET_MESSAGE_TYPE_TESTBED_SLAVE_CONFIGURATION 480
  1200. /**
  1201. * Message to signal the result of #GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS
  1202. * request
  1203. */
  1204. #define GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS_RESULT 481
  1205. /**
  1206. * A controller receiving this message floods it to its directly-connected
  1207. * sub-controllers and then stops and destroys all peers
  1208. */
  1209. #define GNUNET_MESSAGE_TYPE_TESTBED_SHUTDOWN_PEERS 482
  1210. /**
  1211. * Message to start/stop a service of a peer
  1212. */
  1213. #define GNUNET_MESSAGE_TYPE_TESTBED_MANAGE_PEER_SERVICE 483
  1214. /**
  1215. * Message to initialise a barrier. Messages of these type are flooded to all
  1216. * sub-controllers
  1217. */
  1218. #define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_INIT 484
  1219. /**
  1220. * Message to cancel a barrier. This message is flooded to all sub-controllers
  1221. */
  1222. #define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_CANCEL 485
  1223. /**
  1224. * Message for signalling status of a barrier
  1225. */
  1226. #define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_STATUS 486
  1227. /**
  1228. * Message sent by a peer when it has reached a barrier and is waiting for it to
  1229. * be crossed
  1230. */
  1231. #define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_WAIT 487
  1232. /**
  1233. * Not really a message, but for careful checks on the testbed messages; Should
  1234. * always be the maximum and never be used to send messages with this type
  1235. */
  1236. #define GNUNET_MESSAGE_TYPE_TESTBED_MAX 488
  1237. /**
  1238. * The initialization message towards gnunet-testbed-helper
  1239. */
  1240. #define GNUNET_MESSAGE_TYPE_TESTBED_HELPER_INIT 495
  1241. /**
  1242. * The reply message from gnunet-testbed-helper
  1243. */
  1244. #define GNUNET_MESSAGE_TYPE_TESTBED_HELPER_REPLY 496
  1245. /******************************************************************************
  1246. * GNS.
  1247. *****************************************************************************/
  1248. /**
  1249. * Client would like to resolve a name.
  1250. */
  1251. #define GNUNET_MESSAGE_TYPE_GNS_LOOKUP 500
  1252. /**
  1253. * Service response to name resolution request from client.
  1254. */
  1255. #define GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT 501
  1256. /**
  1257. * Reverse lookup
  1258. */
  1259. #define GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP 503
  1260. /**
  1261. * Response to reverse lookup
  1262. */
  1263. #define GNUNET_MESSAGE_TYPE_GNS_REVERSE_LOOKUP_RESULT 504
  1264. /*******************************************************************************
  1265. * CONSENSUS message types
  1266. ******************************************************************************/
  1267. /**
  1268. * Join a consensus session. Sent by client to service as first message.
  1269. */
  1270. #define GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_JOIN 520
  1271. /**
  1272. * Insert an element. Sent by client to service.
  1273. */
  1274. #define GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_INSERT 521
  1275. /**
  1276. * Begin accepting new elements from other participants.
  1277. * Sent by client to service.
  1278. */
  1279. #define GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_BEGIN 522
  1280. /**
  1281. * Sent by service when a new element is added.
  1282. */
  1283. #define GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_RECEIVED_ELEMENT 523
  1284. /**
  1285. * Sent by client to service in order to start the consensus conclusion.
  1286. */
  1287. #define GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_CONCLUDE 524
  1288. /**
  1289. * Sent by service to client in order to signal a completed consensus
  1290. * conclusion. Last message sent in a consensus session.
  1291. */
  1292. #define GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_CONCLUDE_DONE 525
  1293. /* message types 526-539 reserved for consensus client/service messages */
  1294. /**
  1295. * Sent by client to service, telling whether a received element should
  1296. * be accepted and propagated further or not.
  1297. */
  1298. #define GNUNET_MESSAGE_TYPE_CONSENSUS_CLIENT_ACK 540
  1299. /**
  1300. * Strata estimator.
  1301. */
  1302. #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_DELTA_ESTIMATE 541
  1303. /**
  1304. * IBF containing all elements of a peer.
  1305. */
  1306. #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_DIFFERENCE_DIGEST 542
  1307. /**
  1308. * One or more elements that are sent from peer to peer.
  1309. */
  1310. #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ELEMENTS 543
  1311. /**
  1312. * Elements, and requests for further elements
  1313. */
  1314. #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ELEMENTS_REQUEST 544
  1315. /**
  1316. * Elements that a peer reports to be missing at the remote peer.
  1317. */
  1318. #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ELEMENTS_REPORT 545
  1319. /**
  1320. * Provide context for a consensus round.
  1321. */
  1322. #define GNUNET_MESSAGE_TYPE_CONSENSUS_P2P_ROUND_CONTEXT 547
  1323. /*******************************************************************************
  1324. * SETU message types
  1325. ******************************************************************************/
  1326. /**
  1327. * Cancel a set operation
  1328. */
  1329. #define GNUNET_MESSAGE_TYPE_SETU_CANCEL 550
  1330. /**
  1331. * Add element to set
  1332. */
  1333. #define GNUNET_MESSAGE_TYPE_SETU_ADD 551
  1334. /**
  1335. * Create a new local set
  1336. */
  1337. #define GNUNET_MESSAGE_TYPE_SETU_CREATE 552
  1338. /**
  1339. * Handle result message from operation
  1340. */
  1341. #define GNUNET_MESSAGE_TYPE_SETU_RESULT 553
  1342. /**
  1343. * Evaluate a set operation
  1344. */
  1345. #define GNUNET_MESSAGE_TYPE_SETU_EVALUATE 554
  1346. /**
  1347. * Listen for operation requests
  1348. */
  1349. #define GNUNET_MESSAGE_TYPE_SETU_LISTEN 555
  1350. /**
  1351. * Reject a set request.
  1352. */
  1353. #define GNUNET_MESSAGE_TYPE_SETU_REJECT 556
  1354. /**
  1355. * Accept an incoming set request
  1356. */
  1357. #define GNUNET_MESSAGE_TYPE_SETU_ACCEPT 557
  1358. /**
  1359. * Notify the client of an incoming request from a remote peer
  1360. */
  1361. #define GNUNET_MESSAGE_TYPE_SETU_REQUEST 558
  1362. /**
  1363. * Demand the whole element from the other
  1364. * peer, given only the hash code.
  1365. */
  1366. #define GNUNET_MESSAGE_TYPE_SETU_P2P_REQUEST_FULL 559
  1367. /**
  1368. * Demand the whole element from the other
  1369. * peer, given only the hash code.
  1370. */
  1371. #define GNUNET_MESSAGE_TYPE_SETU_P2P_DEMAND 560
  1372. /**
  1373. * Tell the other peer to send us a list of
  1374. * hashes that match an IBF key.
  1375. */
  1376. #define GNUNET_MESSAGE_TYPE_SETU_P2P_INQUIRY 561
  1377. /**
  1378. * Tell the other peer which hashes match a
  1379. * given IBF key.
  1380. */
  1381. #define GNUNET_MESSAGE_TYPE_SETU_P2P_OFFER 562
  1382. /**
  1383. * Request a set union operation from a remote peer.
  1384. */
  1385. #define GNUNET_MESSAGE_TYPE_SETU_P2P_OPERATION_REQUEST 563
  1386. /**
  1387. * Strata estimator.
  1388. */
  1389. #define GNUNET_MESSAGE_TYPE_SETU_P2P_SE 564
  1390. /**
  1391. * Invertible bloom filter.
  1392. */
  1393. #define GNUNET_MESSAGE_TYPE_SETU_P2P_IBF 565
  1394. /**
  1395. * Actual set elements.
  1396. */
  1397. #define GNUNET_MESSAGE_TYPE_SETU_P2P_ELEMENTS 566
  1398. /**
  1399. * Set operation is done.
  1400. */
  1401. #define GNUNET_MESSAGE_TYPE_SETU_P2P_DONE 568
  1402. /**
  1403. * Compressed strata estimator.
  1404. */
  1405. #define GNUNET_MESSAGE_TYPE_SETU_P2P_SEC 569
  1406. /**
  1407. * Request all missing elements from the other peer,
  1408. * based on their sets and the elements we previously sent
  1409. * with #GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENTS.
  1410. */
  1411. #define GNUNET_MESSAGE_TYPE_SETU_P2P_FULL_DONE 570
  1412. /**
  1413. * Send a set element, not as response to a demand but because
  1414. * we're sending the full set.
  1415. */
  1416. #define GNUNET_MESSAGE_TYPE_SETU_P2P_FULL_ELEMENT 571
  1417. /**
  1418. * Request all missing elements from the other peer,
  1419. * based on their sets and the elements we previously sent
  1420. * with #GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENTS.
  1421. */
  1422. #define GNUNET_MESSAGE_TYPE_SETU_P2P_OVER 572
  1423. /*******************************************************************************
  1424. * SETI message types
  1425. ******************************************************************************/
  1426. /**
  1427. * Cancel a set operation
  1428. */
  1429. #define GNUNET_MESSAGE_TYPE_SETI_CANCEL 580
  1430. /**
  1431. * Add element to set.
  1432. */
  1433. #define GNUNET_MESSAGE_TYPE_SETI_ADD 581
  1434. /**
  1435. * Create a new local set
  1436. */
  1437. #define GNUNET_MESSAGE_TYPE_SETI_CREATE 582
  1438. /**
  1439. * Handle result message from operation
  1440. */
  1441. #define GNUNET_MESSAGE_TYPE_SETI_RESULT 583
  1442. /**
  1443. * Evaluate a set operation
  1444. */
  1445. #define GNUNET_MESSAGE_TYPE_SETI_EVALUATE 584
  1446. /**
  1447. * Listen for operation requests
  1448. */
  1449. #define GNUNET_MESSAGE_TYPE_SETI_LISTEN 585
  1450. /**
  1451. * Reject a set request.
  1452. */
  1453. #define GNUNET_MESSAGE_TYPE_SETI_REJECT 586
  1454. /**
  1455. * Accept an incoming set request
  1456. */
  1457. #define GNUNET_MESSAGE_TYPE_SETI_ACCEPT 587
  1458. /**
  1459. * Notify the client of an incoming request from a remote peer
  1460. */
  1461. #define GNUNET_MESSAGE_TYPE_SETI_REQUEST 588
  1462. /**
  1463. * Information about the element count for intersection
  1464. */
  1465. #define GNUNET_MESSAGE_TYPE_SETI_P2P_ELEMENT_INFO 591
  1466. /**
  1467. * Bloom filter message for intersection exchange started by Bob.
  1468. */
  1469. #define GNUNET_MESSAGE_TYPE_SETI_P2P_BF 592
  1470. /**
  1471. * Intersection operation is done.
  1472. */
  1473. #define GNUNET_MESSAGE_TYPE_SETI_P2P_DONE 593
  1474. /**
  1475. * Request to begin set intersection operation.
  1476. */
  1477. #define GNUNET_MESSAGE_TYPE_SETI_P2P_OPERATION_REQUEST 594
  1478. /*******************************************************************************
  1479. * SET message types
  1480. ******************************************************************************/
  1481. /**
  1482. * Demand the whole element from the other
  1483. * peer, given only the hash code.
  1484. */
  1485. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_REQUEST_FULL 565
  1486. /**
  1487. * Demand the whole element from the other
  1488. * peer, given only the hash code.
  1489. */
  1490. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_DEMAND 566
  1491. /**
  1492. * Tell the other peer to send us a list of
  1493. * hashes that match an IBF key.
  1494. */
  1495. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_INQUIRY 567
  1496. /**
  1497. * Tell the other peer which hashes match a
  1498. * given IBF key.
  1499. */
  1500. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_OFFER 568
  1501. /**
  1502. * Reject a set request.
  1503. */
  1504. #define GNUNET_MESSAGE_TYPE_SET_REJECT 569
  1505. /**
  1506. * Cancel a set operation
  1507. */
  1508. #define GNUNET_MESSAGE_TYPE_SET_CANCEL 570
  1509. /**
  1510. * Acknowledge result from iteration
  1511. */
  1512. #define GNUNET_MESSAGE_TYPE_SET_ITER_ACK 571
  1513. /**
  1514. * Create an empty set
  1515. */
  1516. #define GNUNET_MESSAGE_TYPE_SET_RESULT 572
  1517. /**
  1518. * Add element to set
  1519. */
  1520. #define GNUNET_MESSAGE_TYPE_SET_ADD 573
  1521. /**
  1522. * Remove element from set
  1523. */
  1524. #define GNUNET_MESSAGE_TYPE_SET_REMOVE 574
  1525. /**
  1526. * Listen for operation requests
  1527. */
  1528. #define GNUNET_MESSAGE_TYPE_SET_LISTEN 575
  1529. /**
  1530. * Accept a set request
  1531. */
  1532. #define GNUNET_MESSAGE_TYPE_SET_ACCEPT 576
  1533. /**
  1534. * Evaluate a set operation
  1535. */
  1536. #define GNUNET_MESSAGE_TYPE_SET_EVALUATE 577
  1537. /**
  1538. * Start a set operation with the given set
  1539. */
  1540. #define GNUNET_MESSAGE_TYPE_SET_CONCLUDE 578
  1541. /**
  1542. * Notify the client of a request from a remote peer
  1543. */
  1544. #define GNUNET_MESSAGE_TYPE_SET_REQUEST 579
  1545. /**
  1546. * Create a new local set
  1547. */
  1548. #define GNUNET_MESSAGE_TYPE_SET_CREATE 580
  1549. /**
  1550. * Request a set operation from a remote peer.
  1551. */
  1552. #define GNUNET_MESSAGE_TYPE_SET_P2P_OPERATION_REQUEST 581
  1553. /**
  1554. * Strata estimator.
  1555. */
  1556. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_SE 582
  1557. /**
  1558. * Invertible bloom filter.
  1559. */
  1560. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_IBF 583
  1561. /**
  1562. * Actual set elements.
  1563. */
  1564. #define GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENTS 584
  1565. /**
  1566. * Set operation is done.
  1567. */
  1568. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_DONE 586
  1569. /**
  1570. * Start iteration over set elements.
  1571. */
  1572. #define GNUNET_MESSAGE_TYPE_SET_ITER_REQUEST 587
  1573. /**
  1574. * Element result for the iterating client.
  1575. */
  1576. #define GNUNET_MESSAGE_TYPE_SET_ITER_ELEMENT 588
  1577. /**
  1578. * Iteration end marker for the client.
  1579. */
  1580. #define GNUNET_MESSAGE_TYPE_SET_ITER_DONE 589
  1581. /**
  1582. * Compressed strata estimator.
  1583. */
  1584. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_SEC 590
  1585. /**
  1586. * Information about the element count for intersection
  1587. */
  1588. #define GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_ELEMENT_INFO 591
  1589. /**
  1590. * Bloom filter message for intersection exchange started by Bob.
  1591. */
  1592. #define GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_BF 592
  1593. /**
  1594. * Intersection operation is done.
  1595. */
  1596. #define GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_DONE 593
  1597. /**
  1598. * Ask the set service to prepare a copy of a set.
  1599. */
  1600. #define GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_PREPARE 594
  1601. /**
  1602. * Give the client an ID for connecting to the set's copy.
  1603. */
  1604. #define GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE 595
  1605. /**
  1606. * Sent by the client to the server to connect to an existing,
  1607. * lazily copied set.
  1608. */
  1609. #define GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT 596
  1610. /**
  1611. * Request all missing elements from the other peer,
  1612. * based on their sets and the elements we previously sent
  1613. * with #GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENTS.
  1614. */
  1615. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_FULL_DONE 597
  1616. /**
  1617. * Send a set element, not as response to a demand but because
  1618. * we're sending the full set.
  1619. */
  1620. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_FULL_ELEMENT 598
  1621. /**
  1622. * Request all missing elements from the other peer,
  1623. * based on their sets and the elements we previously sent
  1624. * with #GNUNET_MESSAGE_TYPE_SET_P2P_ELEMENTS.
  1625. */
  1626. #define GNUNET_MESSAGE_TYPE_SET_UNION_P2P_OVER 599
  1627. /*******************************************************************************
  1628. * TESTBED LOGGER message types
  1629. ******************************************************************************/
  1630. /**
  1631. * Message for TESTBED LOGGER
  1632. */
  1633. #define GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_MSG 600
  1634. /**
  1635. * Message for TESTBED LOGGER acknowledgement
  1636. */
  1637. #define GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_ACK 601
  1638. /**
  1639. * Advertise regex capability.
  1640. */
  1641. #define GNUNET_MESSAGE_TYPE_REGEX_ANNOUNCE 620
  1642. /**
  1643. * Search for peer with matching capability.
  1644. */
  1645. #define GNUNET_MESSAGE_TYPE_REGEX_SEARCH 621
  1646. /**
  1647. * Result in response to regex search.
  1648. */
  1649. #define GNUNET_MESSAGE_TYPE_REGEX_RESULT 622
  1650. /*******************************************************************************
  1651. * IDENTITY message types
  1652. ******************************************************************************/
  1653. /**
  1654. * First message send from identity client to service (to subscribe to
  1655. * updates).
  1656. */
  1657. #define GNUNET_MESSAGE_TYPE_IDENTITY_START 624
  1658. /**
  1659. * Generic response from identity service with success and/or error message.
  1660. */
  1661. #define GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE 625
  1662. /**
  1663. * Update about identity status from service to clients.
  1664. */
  1665. #define GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE 626
  1666. /**
  1667. * Client requests to know default identity for a subsystem.
  1668. */
  1669. #define GNUNET_MESSAGE_TYPE_IDENTITY_GET_DEFAULT 627
  1670. /**
  1671. * Client sets default identity; or service informs about default identity.
  1672. */
  1673. #define GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT 628
  1674. /**
  1675. * Create new identity (client->service).
  1676. */
  1677. #define GNUNET_MESSAGE_TYPE_IDENTITY_CREATE 629
  1678. /**
  1679. * Rename existing identity (client->service).
  1680. */
  1681. #define GNUNET_MESSAGE_TYPE_IDENTITY_RENAME 630
  1682. /**
  1683. * Delete identity (client->service).
  1684. */
  1685. #define GNUNET_MESSAGE_TYPE_IDENTITY_DELETE 631
  1686. /**
  1687. * First message send from identity client to service to
  1688. * lookup a single ego. The service will respond with a
  1689. * #GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE message if the ego
  1690. * exists, or a #GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE if not.
  1691. */
  1692. #define GNUNET_MESSAGE_TYPE_IDENTITY_LOOKUP 632
  1693. /**
  1694. * First message send from identity client to service to lookup a
  1695. * single ego matching the given suffix (longest match). The service
  1696. * will respond with a #GNUNET_MESSAGE_TYPE_IDENTITY_UPDATE message if
  1697. * the ego exists, or a #GNUNET_MESSAGE_TYPE_IDENTITY_RESULT_CODE if
  1698. * not.
  1699. */
  1700. #define GNUNET_MESSAGE_TYPE_IDENTITY_LOOKUP_BY_SUFFIX 633
  1701. /*******************************************************************************
  1702. * REVOCATION message types
  1703. ******************************************************************************/
  1704. /**
  1705. * Client to service: was this key revoked?
  1706. */
  1707. #define GNUNET_MESSAGE_TYPE_REVOCATION_QUERY 636
  1708. /**
  1709. * Service to client: answer if key was revoked!
  1710. */
  1711. #define GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE 637
  1712. /**
  1713. * Client to service OR peer-to-peer: revoke this key!
  1714. */
  1715. #define GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE 638
  1716. /**
  1717. * Service to client: revocation confirmed
  1718. */
  1719. #define GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE 639
  1720. /*******************************************************************************
  1721. * SCALARPRODUCT message types
  1722. ******************************************************************************/
  1723. /**
  1724. * Client -> Alice
  1725. */
  1726. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE 640
  1727. /**
  1728. * Client -> Bob
  1729. */
  1730. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB 641
  1731. /**
  1732. * Client -> Alice multipart
  1733. */
  1734. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MULTIPART_ALICE 642
  1735. /**
  1736. * Client -> Bob multipart
  1737. */
  1738. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_MULTIPART_BOB 643
  1739. /**
  1740. * Alice -> Bob session initialization
  1741. */
  1742. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SESSION_INITIALIZATION 644
  1743. /**
  1744. * Alice -> Bob SP crypto-data (after intersection)
  1745. */
  1746. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_CRYPTODATA 645
  1747. /**
  1748. * Bob -> Alice SP crypto-data
  1749. */
  1750. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA 647
  1751. /**
  1752. * Bob -> Alice SP crypto-data multipart
  1753. */
  1754. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_CRYPTODATA_MULTIPART 648
  1755. /**
  1756. * Alice/Bob -> Client Result
  1757. */
  1758. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_RESULT 649
  1759. /**
  1760. * Alice -> Bob ECC session initialization
  1761. */
  1762. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ECC_SESSION_INITIALIZATION 650
  1763. /**
  1764. * Alice -> Bob ECC crypto data
  1765. */
  1766. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ECC_ALICE_CRYPTODATA 651
  1767. /**
  1768. * Bob -> Alice ECC crypto data
  1769. */
  1770. #define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ECC_BOB_CRYPTODATA 652
  1771. /*******************************************************************************
  1772. * PSYCSTORE message types
  1773. ******************************************************************************/
  1774. /**
  1775. * Store a membership event.
  1776. */
  1777. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_MEMBERSHIP_STORE 660
  1778. /**
  1779. * Test for membership of a member at a particular point in time.
  1780. */
  1781. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_MEMBERSHIP_TEST 661
  1782. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_FRAGMENT_STORE 662
  1783. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_FRAGMENT_GET 663
  1784. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_MESSAGE_GET 664
  1785. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_MESSAGE_GET_FRAGMENT 665
  1786. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_COUNTERS_GET 666
  1787. /* 657 */
  1788. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_MODIFY 668
  1789. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_SYNC 669
  1790. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_RESET 670
  1791. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_HASH_UPDATE 671
  1792. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET 672
  1793. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET_PREFIX 673
  1794. /**
  1795. * Generic response from PSYCstore service with success and/or error message.
  1796. */
  1797. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_CODE 674
  1798. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_FRAGMENT 675
  1799. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_COUNTERS 676
  1800. #define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_STATE 677
  1801. /*******************************************************************************
  1802. * PSYC message types
  1803. ******************************************************************************/
  1804. /**
  1805. * C: client
  1806. * S: service
  1807. * M: multicast
  1808. */
  1809. /** S->C: result of an operation */
  1810. #define GNUNET_MESSAGE_TYPE_PSYC_RESULT_CODE 680
  1811. /** C->S: request to start a channel as a master */
  1812. #define GNUNET_MESSAGE_TYPE_PSYC_MASTER_START 681
  1813. /** S->C: master start acknowledgement */
  1814. #define GNUNET_MESSAGE_TYPE_PSYC_MASTER_START_ACK 682
  1815. /** C->S: request to join a channel as a slave */
  1816. #define GNUNET_MESSAGE_TYPE_PSYC_SLAVE_JOIN 683
  1817. /** S->C: slave join acknowledgement */
  1818. #define GNUNET_MESSAGE_TYPE_PSYC_SLAVE_JOIN_ACK 684
  1819. /** C->S: request to part from a channel */
  1820. #define GNUNET_MESSAGE_TYPE_PSYC_PART_REQUEST 685
  1821. /** S->C: acknowledgement that a slave of master parted from a channel */
  1822. #define GNUNET_MESSAGE_TYPE_PSYC_PART_ACK 686
  1823. /** M->S->C: incoming join request from multicast */
  1824. #define GNUNET_MESSAGE_TYPE_PSYC_JOIN_REQUEST 687
  1825. /** C->S->M: decision about a join request */
  1826. #define GNUNET_MESSAGE_TYPE_PSYC_JOIN_DECISION 688
  1827. /** C->S: request to add/remove channel slave in the membership database. */
  1828. #define GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_MEMBERSHIP_STORE 689
  1829. /* 690 */
  1830. /** S<--C: PSYC message which contains one or more message parts. */
  1831. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE 691
  1832. /** M<->S<->C: PSYC message which contains a header and one or more message
  1833. * parts. */
  1834. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_HEADER \
  1835. 692 // FIXME: start using this where appropriate
  1836. /** Message part: method */
  1837. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_METHOD 693
  1838. /** Message part: modifier */
  1839. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MODIFIER 694
  1840. /** Message part: modifier continuation */
  1841. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MOD_CONT 695
  1842. /** Message part: data */
  1843. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_DATA 696
  1844. /** Message part: end of message */
  1845. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_END 697
  1846. /** Message part: message cancelled */
  1847. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_CANCEL 698
  1848. /** S->C: message acknowledgement */
  1849. #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_ACK 699
  1850. /* 700 */
  1851. /** C->S: request channel history replay from PSYCstore. */
  1852. #define GNUNET_MESSAGE_TYPE_PSYC_HISTORY_REPLAY 701
  1853. /** S->C: result for a channel history request */
  1854. #define GNUNET_MESSAGE_TYPE_PSYC_HISTORY_RESULT 702
  1855. /** C->S: request best matching state variable from PSYCstore. */
  1856. #define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET 703
  1857. /** C->S: request state variables with a given prefix from PSYCstore. */
  1858. #define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET_PREFIX 704
  1859. /** S->C: result for a state request. */
  1860. #define GNUNET_MESSAGE_TYPE_PSYC_STATE_RESULT 705
  1861. /*******************************************************************************
  1862. * CONVERSATION message types
  1863. ******************************************************************************/
  1864. /**
  1865. * Message to transmit the audio between helper and speaker/microphone library.
  1866. */
  1867. #define GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO 730
  1868. /**
  1869. * Client -> Server message to register a phone.
  1870. */
  1871. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_REGISTER 731
  1872. /**
  1873. * Client -> Server message to reject/hangup a call
  1874. */
  1875. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICK_UP 732
  1876. /**
  1877. * Client -> Server message to reject/hangup a call
  1878. */
  1879. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP 733
  1880. /**
  1881. * Client <- Server message to indicate a ringing phone
  1882. */
  1883. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL 734
  1884. /**
  1885. * Client <- Server message to indicate a ringing phone
  1886. */
  1887. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RING 735
  1888. /**
  1889. * Client <-> Server message to suspend connection.
  1890. */
  1891. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_SUSPEND 736
  1892. /**
  1893. * Client <-> Server message to resume connection.
  1894. */
  1895. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RESUME 737
  1896. /**
  1897. * Service -> Client message to notify that phone was picked up.
  1898. */
  1899. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICKED_UP 738
  1900. /**
  1901. * Client <-> Server message to send audio data.
  1902. */
  1903. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO 739
  1904. /**
  1905. * Cadet: call initiation
  1906. */
  1907. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RING 740
  1908. /**
  1909. * Cadet: hang up / refuse call
  1910. */
  1911. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_HANG_UP 741
  1912. /**
  1913. * Cadet: pick up phone (establish audio channel)
  1914. */
  1915. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_PICK_UP 742
  1916. /**
  1917. * Cadet: phone suspended.
  1918. */
  1919. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_SUSPEND 743
  1920. /**
  1921. * Cadet: phone resumed.
  1922. */
  1923. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RESUME 744
  1924. /**
  1925. * Cadet: audio data
  1926. */
  1927. #define GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_AUDIO 745
  1928. /*******************************************************************************
  1929. * MULTICAST message types
  1930. ******************************************************************************/
  1931. /**
  1932. * C: client
  1933. * S: service
  1934. * T: cadet
  1935. */
  1936. /**
  1937. * C->S: Start the origin.
  1938. */
  1939. #define GNUNET_MESSAGE_TYPE_MULTICAST_ORIGIN_START 750
  1940. /**
  1941. * C->S: Join group as a member.
  1942. */
  1943. #define GNUNET_MESSAGE_TYPE_MULTICAST_MEMBER_JOIN 751
  1944. /**
  1945. * C<--S<->T: A peer wants to join the group.
  1946. *
  1947. * Unicast message to the origin or another group member.
  1948. */
  1949. #define GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_REQUEST 752
  1950. /**
  1951. * C<->S<->T: Response to a join request.
  1952. *
  1953. * Unicast message from a group member to the peer wanting to join.
  1954. */
  1955. #define GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION 753
  1956. /**
  1957. * A peer wants to part the group.
  1958. */
  1959. #define GNUNET_MESSAGE_TYPE_MULTICAST_PART_REQUEST 754
  1960. /**
  1961. * Acknowledgement sent in response to a part request.
  1962. *
  1963. * Unicast message from a group member to the peer wanting to part.
  1964. */
  1965. #define GNUNET_MESSAGE_TYPE_MULTICAST_PART_ACK 755
  1966. // FIXME: this is never used!
  1967. /**
  1968. * Group terminated.
  1969. */
  1970. #define GNUNET_MESSAGE_TYPE_MULTICAST_GROUP_END 756
  1971. /**
  1972. * C<->S<->T: Multicast message from the origin to all members.
  1973. */
  1974. #define GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE 757
  1975. /**
  1976. * C<->S<->T: Unicast request from a group member to the origin.
  1977. */
  1978. #define GNUNET_MESSAGE_TYPE_MULTICAST_REQUEST 758
  1979. /**
  1980. * C->S: Acknowledgement of a message or request fragment for the client.
  1981. */
  1982. #define GNUNET_MESSAGE_TYPE_MULTICAST_FRAGMENT_ACK 759
  1983. /**
  1984. * C<->S<->T: Replay request from a group member to another member.
  1985. */
  1986. #define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST 760
  1987. /**
  1988. * C<->S<->T: Replay response from a group member to another member.
  1989. */
  1990. #define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_RESPONSE 761
  1991. /**
  1992. * C<->S: End of replay response.
  1993. */
  1994. #define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_RESPONSE_END 762
  1995. /*******************************************************************************
  1996. * SECRETSHARING message types
  1997. ******************************************************************************/
  1998. /**
  1999. * Establish a new session.
  2000. */
  2001. #define GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_GENERATE 780
  2002. /**
  2003. * Request the decryption of a ciphertext.
  2004. */
  2005. #define GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT 781
  2006. /**
  2007. * The service succeeded in decrypting a ciphertext.
  2008. */
  2009. #define GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_DONE 782
  2010. /**
  2011. * The cryptosystem has been established.
  2012. * Contains the peer's share.
  2013. */
  2014. #define GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_SECRET_READY 783
  2015. /*******************************************************************************
  2016. * PEERSTORE message types
  2017. ******************************************************************************/
  2018. /**
  2019. * Store request message
  2020. */
  2021. #define GNUNET_MESSAGE_TYPE_PEERSTORE_STORE 820
  2022. /**
  2023. * Iteration request
  2024. */
  2025. #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE 821
  2026. /**
  2027. * Iteration record message
  2028. */
  2029. #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_RECORD 822
  2030. /**
  2031. * Iteration end message
  2032. */
  2033. #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_END 823
  2034. /**
  2035. * Watch request
  2036. */
  2037. #define GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH 824
  2038. /**
  2039. * Watch response
  2040. */
  2041. #define GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH_RECORD 825
  2042. /**
  2043. * Watch cancel request
  2044. */
  2045. #define GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH_CANCEL 826
  2046. /*******************************************************************************
  2047. * SOCIAL message types
  2048. ******************************************************************************/
  2049. /**
  2050. * C: client
  2051. * S: service
  2052. * P: PSYC
  2053. */
  2054. /** S->C: result of an operation */
  2055. #define GNUNET_MESSAGE_TYPE_SOCIAL_RESULT_CODE 840
  2056. /** C->S: request to enter a place as the host */
  2057. #define GNUNET_MESSAGE_TYPE_SOCIAL_HOST_ENTER 841
  2058. /** S->C: host enter acknowledgement */
  2059. #define GNUNET_MESSAGE_TYPE_SOCIAL_HOST_ENTER_ACK 842
  2060. /** C->S: request to enter a place as a guest */
  2061. #define GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER 843
  2062. /** C->S: request to enter a place as a guest, using a GNS address */
  2063. #define GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER_BY_NAME 844
  2064. /** S->C: guest enter acknowledgement */
  2065. #define GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER_ACK 845
  2066. /** P->S->C: incoming entry request from PSYC */
  2067. #define GNUNET_MESSAGE_TYPE_SOCIAL_ENTRY_REQUEST 846
  2068. /** C->S->P: decision about an entry request */
  2069. #define GNUNET_MESSAGE_TYPE_SOCIAL_ENTRY_DECISION 847
  2070. /** C->S: request to leave a place */
  2071. #define GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE 848
  2072. /** S->C: place leave acknowledgement */
  2073. #define GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE_ACK 849
  2074. /** C->S: add place to GNS zone */
  2075. #define GNUNET_MESSAGE_TYPE_SOCIAL_ZONE_ADD_PLACE 850
  2076. /** C->S: add nym to GNS zone */
  2077. #define GNUNET_MESSAGE_TYPE_SOCIAL_ZONE_ADD_NYM 851
  2078. /** C->S: connect application */
  2079. #define GNUNET_MESSAGE_TYPE_SOCIAL_APP_CONNECT 852
  2080. /** C->S: detach a place from application */
  2081. #define GNUNET_MESSAGE_TYPE_SOCIAL_APP_DETACH 853
  2082. /** S->C: notify about an existing ego */
  2083. #define GNUNET_MESSAGE_TYPE_SOCIAL_APP_EGO 854
  2084. /** S->C: end of ego list */
  2085. #define GNUNET_MESSAGE_TYPE_SOCIAL_APP_EGO_END 855
  2086. /** S->C: notify about an existing place */
  2087. #define GNUNET_MESSAGE_TYPE_SOCIAL_APP_PLACE 856
  2088. /** S->C: end of place list */
  2089. #define GNUNET_MESSAGE_TYPE_SOCIAL_APP_PLACE_END 857
  2090. /** C->S: set message processing flags */
  2091. #define GNUNET_MESSAGE_TYPE_SOCIAL_MSG_PROC_SET 858
  2092. /** C->S: clear message processing flags */
  2093. #define GNUNET_MESSAGE_TYPE_SOCIAL_MSG_PROC_CLEAR 859
  2094. /*******************************************************************************
  2095. * X-VINE DHT messages
  2096. ******************************************************************************/
  2097. /**
  2098. * Trail setup request is received by a peer.
  2099. */
  2100. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP 880
  2101. /**
  2102. * Trail to a particular peer is returned to this peer.
  2103. */
  2104. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP_RESULT 881
  2105. /**
  2106. * Verify if your immediate successor is still your immediate successor.
  2107. */
  2108. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_VERIFY_SUCCESSOR 882
  2109. /**
  2110. * Notify your new immediate successor that you are its new predecessor.
  2111. */
  2112. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_NOTIFY_NEW_SUCCESSOR 883
  2113. /**
  2114. * Message which contains the immediate predecessor of requested successor
  2115. */
  2116. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_VERIFY_SUCCESSOR_RESULT 884
  2117. /**
  2118. * Message which contains the get result.
  2119. */
  2120. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_GET_RESULT 885
  2121. /**
  2122. * Trail Rejection Message.
  2123. */
  2124. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP_REJECTION 886
  2125. /**
  2126. * Trail Tear down Message.
  2127. */
  2128. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_TEARDOWN 887
  2129. /**
  2130. * Routing table add message.
  2131. */
  2132. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_ADD_TRAIL 888
  2133. /**
  2134. * Peer is storing the data in DHT.
  2135. */
  2136. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_PUT 890
  2137. /**
  2138. * Peer tries to find data in DHT.
  2139. */
  2140. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_GET 891
  2141. /**
  2142. * Send back peer that considers you are its successor, a confirmation
  2143. * that you got the notify successor message.
  2144. */
  2145. #define GNUNET_MESSAGE_TYPE_XDHT_P2P_NOTIFY_SUCCESSOR_CONFIRMATION 892
  2146. #if ENABLE_MALICIOUS
  2147. /**
  2148. * Turn X-VINE DHT service malicious
  2149. */
  2150. #define GNUNET_MESSAGE_TYPE_DHT_ACT_MALICIOUS 893
  2151. /**
  2152. * Acknowledge receiving ACT MALICIOUS request
  2153. */
  2154. #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_ACT_MALICIOUS_OK 894
  2155. #endif
  2156. /*******************************************************************************
  2157. * Whanau DHT messages
  2158. ******************************************************************************/
  2159. /**
  2160. * This message contains the query for performing a random walk
  2161. */
  2162. #define GNUNET_MESSAGE_TYPE_WDHT_RANDOM_WALK 910
  2163. /**
  2164. * This message contains the result of a random walk
  2165. */
  2166. #define GNUNET_MESSAGE_TYPE_WDHT_RANDOM_WALK_RESPONSE 911
  2167. /**
  2168. * This message contains a notification for the death of a trail
  2169. */
  2170. #define GNUNET_MESSAGE_TYPE_WDHT_TRAIL_DESTROY 912
  2171. /**
  2172. * This message are used to route a query to a peer
  2173. */
  2174. #define GNUNET_MESSAGE_TYPE_WDHT_TRAIL_ROUTE 913
  2175. /**
  2176. * This message contains the query to transfer successor values.
  2177. */
  2178. #define GNUNET_MESSAGE_TYPE_WDHT_SUCCESSOR_FIND 914
  2179. /**
  2180. * Message which contains the get query
  2181. */
  2182. #define GNUNET_MESSAGE_TYPE_WDHT_GET 915
  2183. /**
  2184. * Message which contains the "put", a response to
  2185. * #GNUNET_MESSAGE_TYPE_WDHT_SUCCESSOR_FIND.
  2186. */
  2187. #define GNUNET_MESSAGE_TYPE_WDHT_PUT 916
  2188. /**
  2189. * Message which contains the get result, a response
  2190. * to #GNUNET_MESSAGE_TYPE_WDHT_GET.
  2191. */
  2192. #define GNUNET_MESSAGE_TYPE_WDHT_GET_RESULT 917
  2193. /*******************************************************************************
  2194. * RPS messages
  2195. ******************************************************************************/
  2196. /* P2P Messages */
  2197. /**
  2198. * RPS check liveliness message to check liveliness of other peer
  2199. */
  2200. #define GNUNET_MESSAGE_TYPE_RPS_PP_CHECK_LIVE 950
  2201. /**
  2202. * RPS PUSH message to push own ID to another peer
  2203. */
  2204. #define GNUNET_MESSAGE_TYPE_RPS_PP_PUSH 951
  2205. /**
  2206. * RPS PULL REQUEST message to request the local view of another peer
  2207. */
  2208. #define GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REQUEST 952
  2209. /**
  2210. * RPS PULL REPLY message which contains the view of the other peer
  2211. */
  2212. #define GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REPLY 953
  2213. /* Client-Service Messages */
  2214. /**
  2215. * RPS CS SEED Message for the Client to seed peers into rps
  2216. */
  2217. #define GNUNET_MESSAGE_TYPE_RPS_CS_SEED 954
  2218. #if ENABLE_MALICIOUS
  2219. /**
  2220. * Turn RPS service malicious
  2221. */
  2222. #define GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS 955
  2223. #endif /* ENABLE_MALICIOUS */
  2224. /**
  2225. * RPS client-service message to start a sub sampler
  2226. */
  2227. #define GNUNET_MESSAGE_TYPE_RPS_CS_SUB_START 956
  2228. /**
  2229. * RPS client-service message to stop a sub sampler
  2230. */
  2231. #define GNUNET_MESSAGE_TYPE_RPS_CS_SUB_STOP 957
  2232. /* Debugging API continues at 1130 */
  2233. /******************************************************************************/
  2234. /**************************************************
  2235. *
  2236. * IDENTITY PROVIDER MESSAGE TYPES
  2237. */
  2238. #define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_STORE 961
  2239. #define GNUNET_MESSAGE_TYPE_RECLAIM_SUCCESS_RESPONSE 962
  2240. #define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_START 963
  2241. #define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP 964
  2242. #define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT 965
  2243. #define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_RESULT 966
  2244. #define GNUNET_MESSAGE_TYPE_RECLAIM_ISSUE_TICKET 967
  2245. #define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_RESULT 968
  2246. #define GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET 969
  2247. #define GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET_RESULT 970
  2248. #define GNUNET_MESSAGE_TYPE_RECLAIM_CONSUME_TICKET 971
  2249. #define GNUNET_MESSAGE_TYPE_RECLAIM_CONSUME_TICKET_RESULT 972
  2250. #define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_START 973
  2251. #define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_STOP 974
  2252. #define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_NEXT 975
  2253. #define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_DELETE 976
  2254. #define GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_STORE 977
  2255. #define GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_DELETE 978
  2256. #define GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_RESULT 979
  2257. #define GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_ITERATION_START 980
  2258. #define GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_ITERATION_STOP 981
  2259. #define GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_ITERATION_NEXT 982
  2260. /**************************************************
  2261. *
  2262. * ABD MESSAGE TYPES
  2263. */
  2264. #define GNUNET_MESSAGE_TYPE_ABD_VERIFY 991
  2265. #define GNUNET_MESSAGE_TYPE_ABD_VERIFY_RESULT 992
  2266. #define GNUNET_MESSAGE_TYPE_ABD_COLLECT 993
  2267. #define GNUNET_MESSAGE_TYPE_ABD_COLLECT_RESULT 994
  2268. #define GNUNET_MESSAGE_TYPE_ABD_INTERMEDIATE_RESULT 995
  2269. /******************************************************************************/
  2270. /******************************************************************************/
  2271. /*********************************** CADET **********************************/
  2272. /******************************************************************************/
  2273. /* CADET: message types 1000-1059
  2274. * 1000-1009 Connection-level Messages
  2275. * 1010-1019 Channel-level Messages
  2276. * 1020-1029 Local Client-Service
  2277. * 1030-1049 Local Service Monitoring
  2278. * 1050-1059 Application Data
  2279. */
  2280. /******************************** Connection ********************************/
  2281. /**
  2282. * Request the creation of a connection
  2283. */
  2284. #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE 1000
  2285. /**
  2286. * Send origin an ACK that the connection is complete
  2287. */
  2288. #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE_ACK 1001
  2289. /**
  2290. * Notify that a connection is no longer valid
  2291. */
  2292. #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN 1002
  2293. /**
  2294. * Request the destruction of a connection
  2295. */
  2296. #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY 1003
  2297. /**
  2298. * At some point, the route will spontaneously change TODO
  2299. */
  2300. #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_PATH_CHANGED_UNIMPLEMENTED 1004
  2301. /**
  2302. * Hop-by-hop, connection dependent ACK.
  2303. *
  2304. * @deprecated
  2305. */
  2306. #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_ENCRYPTED_ACK 1005
  2307. /**
  2308. * We do not bother with ACKs for
  2309. * #GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED messages, but we instead
  2310. * poll for one if we got nothing for a while and start to be worried.
  2311. *
  2312. * @deprecated
  2313. */
  2314. #define GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED_POLL 1006
  2315. /**
  2316. * Axolotl key exchange.
  2317. */
  2318. #define GNUNET_MESSAGE_TYPE_CADET_TUNNEL_KX 1007
  2319. /**
  2320. * Axolotl encrypted data.
  2321. */
  2322. #define GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED 1008
  2323. /**
  2324. * Axolotl key exchange response with authentication.
  2325. */
  2326. #define GNUNET_MESSAGE_TYPE_CADET_TUNNEL_KX_AUTH 1009
  2327. /********************************** Channel *********************************/
  2328. /**
  2329. * Payload data (inside an encrypted tunnel).
  2330. */
  2331. #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA 1010
  2332. /**
  2333. * Confirm payload data end-to-end.
  2334. */
  2335. #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA_ACK 1011
  2336. /**
  2337. * Announce connection is still alive (direction sensitive).
  2338. */
  2339. #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_KEEPALIVE 1012
  2340. /**
  2341. * Ask the cadet service to create a new channel.
  2342. */
  2343. #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN 1013
  2344. /**
  2345. * Ask the cadet service to destroy a channel.
  2346. */
  2347. #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY 1014
  2348. /**
  2349. * Confirm the creation of a channel
  2350. */
  2351. #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK 1015
  2352. /**
  2353. * Reject the creation of a channel
  2354. *
  2355. * @deprecated
  2356. */
  2357. #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_NACK_DEPRECATED 1016
  2358. /*********************************** Local **********************************/
  2359. /**
  2360. * Payload client <-> service
  2361. */
  2362. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA 1020
  2363. /**
  2364. * Local ACK for data.
  2365. */
  2366. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_ACK 1021
  2367. /**
  2368. * Start listening on a port.
  2369. */
  2370. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_OPEN 1022
  2371. /**
  2372. * Stop listening on a port.
  2373. */
  2374. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_CLOSE 1023
  2375. /**
  2376. * Ask the cadet service to create a new channel.
  2377. */
  2378. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE 1024
  2379. /**
  2380. * Tell client that a channel was destroyed.
  2381. */
  2382. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY 1025
  2383. /********************************** Monitor *********************************/
  2384. /**
  2385. * Local information about all channels of service.
  2386. */
  2387. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_CHANNEL 1030
  2388. /**
  2389. * Local information of service about a specific channel.
  2390. */
  2391. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNEL 1031
  2392. /**
  2393. * End of local information of service about channels.
  2394. */
  2395. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNEL_END 1032
  2396. /**
  2397. * Request local information about all peers known to the service.
  2398. */
  2399. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_PEERS 1033
  2400. /**
  2401. * Local information about all peers known to the service.
  2402. */
  2403. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS 1034
  2404. /**
  2405. * End of local information about all peers known to the service.
  2406. */
  2407. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS_END 1035
  2408. /**
  2409. * Request local information of service about paths to specific peer.
  2410. */
  2411. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_PATH 1036
  2412. /**
  2413. * Local information of service about a specific path.
  2414. */
  2415. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PATH 1037
  2416. /**
  2417. * End of local information of service about a specific path.
  2418. */
  2419. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PATH_END 1038
  2420. /**
  2421. * Request local information about all tunnels of service.
  2422. */
  2423. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_REQUEST_INFO_TUNNELS 1039
  2424. /**
  2425. * Local information about all tunnels of service.
  2426. */
  2427. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS 1040
  2428. /**
  2429. * End of local information about all tunnels of service.
  2430. */
  2431. #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS_END 1041
  2432. /**
  2433. * Request to drop a message of type X to peer y.
  2434. */
  2435. #define GNUNET_MESSAGE_TYPE_CADET_DROP_CADET_MESSAGE 1042
  2436. /******************************** Application *******************************/
  2437. /**
  2438. * Traffic (net-cat style) used by the Command Line Interface.
  2439. */
  2440. #define GNUNET_MESSAGE_TYPE_CADET_CLI 1059
  2441. /******************************************************************************/
  2442. /******************************************************************************/
  2443. /************************************* NAT **********************************/
  2444. /******************************************************************************/
  2445. /**
  2446. * Message to ask NAT service to register a client.
  2447. */
  2448. #define GNUNET_MESSAGE_TYPE_NAT_REGISTER 1060
  2449. /**
  2450. * Message to ask NAT service to handle a STUN packet.
  2451. */
  2452. #define GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN 1061
  2453. /**
  2454. * Message to ask NAT service to request connection reversal.
  2455. */
  2456. #define GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL 1062
  2457. /**
  2458. * Message to from NAT service notifying us that connection reversal
  2459. * was requested by another peer.
  2460. */
  2461. #define GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED 1063
  2462. /**
  2463. * Message to from NAT service notifying us that one of our
  2464. * addresses changed.
  2465. */
  2466. #define GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE 1064
  2467. /**
  2468. * Message to ask NAT service to request autoconfiguration.
  2469. */
  2470. #define GNUNET_MESSAGE_TYPE_NAT_AUTO_REQUEST_CFG 1067
  2471. /**
  2472. * Message from NAT service with the autoconfiguration result.
  2473. */
  2474. #define GNUNET_MESSAGE_TYPE_NAT_AUTO_CFG_RESULT 1068
  2475. /* 1080-1109 reserved for TMCG (Heiko Stamer, see gnunet-developers, January
  2476. * 2017) */
  2477. /******************************************************************************/
  2478. /*********************************** AUCTION ********************************/
  2479. /******************************************************************************/
  2480. /**
  2481. * Client wants to create a new auction.
  2482. */
  2483. #define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_CREATE 1110
  2484. /**
  2485. * Client wants to join an existing auction.
  2486. */
  2487. #define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_JOIN 1111
  2488. /**
  2489. * Service reports the auction outcome to the client.
  2490. */
  2491. #define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_OUTCOME 1112
  2492. /******************************************************************************/
  2493. /********************************* RPS DEBUG ********************************/
  2494. /******************************************************************************/
  2495. /**
  2496. * @brief Request updates of the view
  2497. */
  2498. #define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_REQUEST 1130
  2499. /**
  2500. * @brief Send update of the view
  2501. */
  2502. #define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_REPLY 1131
  2503. /**
  2504. * @brief Cancel getting updates of the view
  2505. */
  2506. #define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_CANCEL 1132
  2507. /**
  2508. * @brief Request biased input stream
  2509. */
  2510. #define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_REQUEST 1133
  2511. /**
  2512. * @brief Send peer of biased stream
  2513. */
  2514. #define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_REPLY 1134
  2515. /**
  2516. * @brief Cancel getting biased stream
  2517. */
  2518. #define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_CANCEL 1135
  2519. /*******************************************************
  2520. NEW (TNG) Transport service
  2521. ******************************************************* */
  2522. /**
  2523. * @brief inform transport to add an address of this peer
  2524. */
  2525. #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADD_ADDRESS 1200
  2526. /**
  2527. * @brief inform transport to delete an address of this peer
  2528. */
  2529. #define GNUNET_MESSAGE_TYPE_TRANSPORT_DEL_ADDRESS 1201
  2530. /**
  2531. * @brief inform transport about an incoming message
  2532. */
  2533. #define GNUNET_MESSAGE_TYPE_TRANSPORT_INCOMING_MSG 1202
  2534. /**
  2535. * @brief transport acknowledges processing an incoming message
  2536. */
  2537. #define GNUNET_MESSAGE_TYPE_TRANSPORT_INCOMING_MSG_ACK 1203
  2538. /**
  2539. * @brief inform transport that a queue was setup to talk to some peer
  2540. */
  2541. #define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_SETUP 1204
  2542. /**
  2543. * @brief inform transport that a queue was torn down
  2544. */
  2545. #define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_TEARDOWN 1205
  2546. /**
  2547. * @brief transport tells communicator it wants a queue
  2548. */
  2549. #define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE 1206
  2550. /**
  2551. * Response from communicator: will try to create queue.
  2552. */
  2553. #define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_OK 1207
  2554. /**
  2555. * Response from communicator: address bogus, will not try to create queue.
  2556. */
  2557. #define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_FAIL 1208
  2558. /**
  2559. * @brief transport tells communicator it wants to transmit
  2560. */
  2561. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_MSG 1209
  2562. /**
  2563. * @brief communicator tells transports that message was sent
  2564. */
  2565. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_MSG_ACK 1210
  2566. /**
  2567. * Message sent to indicate to the transport which address
  2568. * prefix is supported by a communicator.
  2569. */
  2570. #define GNUNET_MESSAGE_TYPE_TRANSPORT_NEW_COMMUNICATOR 1211
  2571. /**
  2572. * Tell transport that it should assist with exchanging a
  2573. * message between communicators. Usually used when
  2574. * communciators are uni-directional and need an alternative
  2575. * back-channel.
  2576. */
  2577. #define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL 1212
  2578. /**
  2579. * Message type used between transport services when they
  2580. * internally forward communicator backchannel messages.
  2581. */
  2582. #define GNUNET_MESSAGE_TYPE_TRANSPORT_BACKCHANNEL_ENCAPSULATION 1213
  2583. /**
  2584. * Type of a fragment of a CORE message created by transport to adjust
  2585. * message length to a queue's MTU.
  2586. */
  2587. #define GNUNET_MESSAGE_TYPE_TRANSPORT_FRAGMENT 1214
  2588. /**
  2589. * Wrapper around non-fragmented CORE message used to measure RTT
  2590. * and ensure reliability.
  2591. */
  2592. #define GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_BOX 1216
  2593. /**
  2594. * Confirmation for a #GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_BOX.
  2595. */
  2596. #define GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_ACK 1217
  2597. /**
  2598. * Message sent for topology discovery at transport level.
  2599. */
  2600. #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_LEARN 1218
  2601. /**
  2602. * Source-routed transport message based DV information gathered.
  2603. */
  2604. #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_BOX 1219
  2605. /**
  2606. * Transport signalling incoming backchannel message to a communicator.
  2607. */
  2608. #define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL_INCOMING 1220
  2609. /**
  2610. * Transport signalling incoming backchannel message to a communicator.
  2611. */
  2612. #define GNUNET_MESSAGE_TYPE_TRANSPORT_FLOW_CONTROL 1221
  2613. /**
  2614. * @brief inform transport that a queue was updated
  2615. */
  2616. #define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_UPDATE 1222
  2617. /**
  2618. * Message sent to indicate to the transport that a monitor
  2619. * wants to observe certain events.
  2620. */
  2621. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_START 1250
  2622. /**
  2623. * Message sent to indicate to a monitor about events.
  2624. */
  2625. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_DATA 1251
  2626. /**
  2627. * Message sent to indicate to a monitor that a one-shot
  2628. * iteration over events is done.
  2629. */
  2630. #define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_END 1252
  2631. /**
  2632. * Message exchanged between communicators to confirm
  2633. * successful KX (and address validation).
  2634. */
  2635. #define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_KX_CONFIRMATION 1275
  2636. /**
  2637. * Message exchanged between communicators to exchange
  2638. * flow control (FC) limits and acknowledgemets.
  2639. */
  2640. #define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_FC_LIMITS 1276
  2641. /**
  2642. * Type of the 'struct ExpressPreferenceMessage' send by clients to TRANSPORT
  2643. * to establish bandwidth preference.
  2644. */
  2645. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SUGGEST 1300
  2646. /**
  2647. * Type of the 'struct ExpressPreferenceMessage' send by clients to TRANSPORT
  2648. * to abandon bandwidth preference.
  2649. */
  2650. #define GNUNET_MESSAGE_TYPE_TRANSPORT_SUGGEST_CANCEL 1301
  2651. /**
  2652. * Type of the 'struct RequestHelloValidationMessage' send by clients to
  2653. * TRANSPORT to trigger validation of addresses.
  2654. */
  2655. #define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_HELLO_VALIDATION 1302
  2656. /**
  2657. * P2P message: transport requests confirmation that an address works.
  2658. */
  2659. #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_VALIDATION_CHALLENGE 1303
  2660. /**
  2661. * P2P message: transport proves that an address worked.
  2662. */
  2663. #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_VALIDATION_RESPONSE 1304
  2664. /* ************** NEW (NG) ATS Messages ************* */
  2665. /* NOTE: it is not clear ATS will survive in TNG */
  2666. /**
  2667. * Type of the 'struct ExpressPreferenceMessage' send by clients to ATS
  2668. * to establish bandwidth preference.
  2669. */
  2670. #define GNUNET_MESSAGE_TYPE_ATS_SUGGEST 1400
  2671. /**
  2672. * Type of the 'struct ExpressPreferenceMessage' send by clients to ATS
  2673. * to abandon bandwidth preference.
  2674. */
  2675. #define GNUNET_MESSAGE_TYPE_ATS_SUGGEST_CANCEL 1401
  2676. /**
  2677. * Type of the 'struct SessionAddMessage' send by transport clients to ATS
  2678. * to ask ATS to allocate resources to a session.
  2679. */
  2680. #define GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD 1402
  2681. /**
  2682. * Type of the 'struct SessionAddMessage' send by transport clients to ATS
  2683. * to inform ATS about a session where resources are consumed but allocation
  2684. * is impossible (unidirectional).
  2685. */
  2686. #define GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD_INBOUND_ONLY 1403
  2687. /**
  2688. * Type of the 'struct SessionUpdateMessage' send by transport clients to ATS
  2689. * to inform ATS about property changes of a session.
  2690. */
  2691. #define GNUNET_MESSAGE_TYPE_ATS_SESSION_UPDATE 1404
  2692. /**
  2693. * Type of the 'struct SessionDelMessage' send by transport clients to ATS
  2694. * to tell ATS that a session is no longer available.
  2695. */
  2696. #define GNUNET_MESSAGE_TYPE_ATS_SESSION_DEL 1405
  2697. /**
  2698. * Type of the 'struct SessionAllocationMessage' send by ATS to the
  2699. * transport to tell it about resources to allocate to the session.
  2700. */
  2701. #define GNUNET_MESSAGE_TYPE_ATS_SESSION_ALLOCATION 1406
  2702. /**
  2703. * TCP communicator rekey message.
  2704. */
  2705. #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_REKEY 1450
  2706. /**
  2707. * TCP communicator payload box
  2708. */
  2709. #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_BOX 1451
  2710. /**
  2711. * TCP communicator end of stream.
  2712. */
  2713. #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_FINISH 1452
  2714. /**
  2715. * TCP communicator confirmation ack.
  2716. */
  2717. #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_TCP_CONFIRMATION_ACK 1453
  2718. /**
  2719. * UDP KX acknowledgement.
  2720. */
  2721. #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_UDP_ACK 1460
  2722. /**
  2723. * UDP communicator padding.
  2724. */
  2725. #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_UDP_PAD 1461
  2726. /**
  2727. * Next available: 1500
  2728. */
  2729. #define GNUNET_MESSAGE_TYPE_RECLAIM_REFERENCE_DELETE 1500
  2730. #define GNUNET_MESSAGE_TYPE_RECLAIM_REFERENCE_RESULT 1501
  2731. /*********************************************************************************/
  2732. /********************************** MESSENGER **********************************/
  2733. /*********************************************************************************/
  2734. /* MESSENGER: message types 1600-1629
  2735. * 1600-1609 Connection-level Messages
  2736. * 1610-1619 Room-level Messages
  2737. */
  2738. /********************************* Connection **********************************/
  2739. #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_CREATE 1600
  2740. #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_UPDATE 1601
  2741. #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_DESTROY 1602
  2742. #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_GET_NAME 1603
  2743. #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_SET_NAME 1604
  2744. #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_GET_KEY 1605
  2745. #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_MEMBER_ID 1606
  2746. /************************************ Room *************************************/
  2747. #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_OPEN 1610
  2748. #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_ENTRY 1611
  2749. #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_CLOSE 1612
  2750. #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_SEND_MESSAGE 1614
  2751. #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_RECV_MESSAGE 1615
  2752. #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_GET_MESSAGE 1616
  2753. /*********************************************************************************/
  2754. /**
  2755. * Type used to match 'all' message types.
  2756. */
  2757. #define GNUNET_MESSAGE_TYPE_ALL 65535
  2758. #if 0 /* keep Emacsens' auto-indent happy */
  2759. {
  2760. #endif
  2761. #ifdef __cplusplus
  2762. }
  2763. #endif
  2764. /* ifndef GNUNET_PROTOCOLS_H */
  2765. #endif
  2766. /** @} */ /* end of group protocols */
  2767. /* end of gnunet_protocols.h */