aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-07-21 20:48:40 +0000
committerChristian Grothoff <christian@grothoff.org>2010-07-21 20:48:40 +0000
commitb05f920bfa907476b618a24bd78487db8873d2a1 (patch)
treefad22297a66787044837faa4c2c3459f48d6bb85 /src/transport/transport.h
parentafec51a8dd5d9f77a00d902acd7b5efc04675298 (diff)
downloadgnunet-b05f920bfa907476b618a24bd78487db8873d2a1.tar.gz
gnunet-b05f920bfa907476b618a24bd78487db8873d2a1.zip
add code to enable checking if transport's idea of our peer identity matches that of core, etc -- might help diagnose certain bugs
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r--src/transport/transport.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h
index 0f2d5c6c9..aa934c944 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -48,6 +48,33 @@
48 48
49/** 49/**
50 * Message from the transport service to the library 50 * Message from the transport service to the library
51 * asking to check if both processes agree about this
52 * peers identity.
53 */
54struct StartMessage
55{
56
57 /**
58 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_START
59 */
60 struct GNUNET_MessageHeader header;
61
62 /**
63 * Should the 'self' field be checked?
64 */
65 uint32_t do_check;
66
67 /**
68 * Identity we think we have. If it does not match, the
69 * receiver should print out an error message and disconnect.
70 */
71 struct GNUNET_PeerIdentity self;
72
73};
74
75
76/**
77 * Message from the transport service to the library
51 * informing about neighbors. 78 * informing about neighbors.
52 */ 79 */
53struct ConnectInfoMessage 80struct ConnectInfoMessage