diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-28 18:42:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-28 18:42:55 +0000 |
commit | f119c5a88b06a05349f311c27f27be9a2760bf3f (patch) | |
tree | 908ac7420b538f134b62c55dff86d7176b7ef27d /src/core | |
parent | 95cbbcfb126067111d489b0df43fb7f27eb005b5 (diff) | |
download | gnunet-f119c5a88b06a05349f311c27f27be9a2760bf3f.tar.gz gnunet-f119c5a88b06a05349f311c27f27be9a2760bf3f.zip |
-align core message, do not run psycstore here
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core.h | 5 | ||||
-rw-r--r-- | src/core/gnunet-service-core_clients.c | 1 | ||||
-rw-r--r-- | src/core/gnunet-service-core_sessions.c | 1 | ||||
-rw-r--r-- | src/core/test_core_defaults.conf | 3 |
4 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index cb5caca1c..4cfc83611 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
@@ -111,6 +111,11 @@ struct ConnectNotifyMessage | |||
111 | struct GNUNET_MessageHeader header; | 111 | struct GNUNET_MessageHeader header; |
112 | 112 | ||
113 | /** | 113 | /** |
114 | * Always zero. | ||
115 | */ | ||
116 | uint32_t reserved GNUNET_PACKED; | ||
117 | |||
118 | /** | ||
114 | * Identity of the connecting peer. | 119 | * Identity of the connecting peer. |
115 | */ | 120 | */ |
116 | struct GNUNET_PeerIdentity peer; | 121 | struct GNUNET_PeerIdentity peer; |
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 7813a97c1..7514da8a2 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c | |||
@@ -721,6 +721,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | |||
721 | cnm = (struct ConnectNotifyMessage *) buf; | 721 | cnm = (struct ConnectNotifyMessage *) buf; |
722 | cnm->header.size = htons (size); | 722 | cnm->header.size = htons (size); |
723 | cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); | 723 | cnm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); |
724 | cnm->reserved = htonl (0); | ||
724 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message to client.\n", | 725 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending `%s' message to client.\n", |
725 | "NOTIFY_CONNECT"); | 726 | "NOTIFY_CONNECT"); |
726 | cnm->peer = *neighbour; | 727 | cnm->peer = *neighbour; |
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 1deb3efc6..f1a53bee8 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c | |||
@@ -661,6 +661,7 @@ queue_connect_message (void *cls, const struct GNUNET_HashCode * key, void *valu | |||
661 | /* FIXME: code duplication with clients... */ | 661 | /* FIXME: code duplication with clients... */ |
662 | cnm.header.size = htons (sizeof (struct ConnectNotifyMessage)); | 662 | cnm.header.size = htons (sizeof (struct ConnectNotifyMessage)); |
663 | cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); | 663 | cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT); |
664 | cnm.reserved = htonl (0); | ||
664 | cnm.peer = session->peer; | 665 | cnm.peer = session->peer; |
665 | GNUNET_SERVER_transmit_context_append_message (tc, &cnm.header); | 666 | GNUNET_SERVER_transmit_context_append_message (tc, &cnm.header); |
666 | return GNUNET_OK; | 667 | return GNUNET_OK; |
diff --git a/src/core/test_core_defaults.conf b/src/core/test_core_defaults.conf index e7271b913..d0bfa52f6 100644 --- a/src/core/test_core_defaults.conf +++ b/src/core/test_core_defaults.conf | |||
@@ -77,3 +77,6 @@ AUTOSTART = NO | |||
77 | 77 | ||
78 | [identity] | 78 | [identity] |
79 | AUTOSTART = NO | 79 | AUTOSTART = NO |
80 | |||
81 | [psycstore] | ||
82 | AUTOSTART = NO | ||