aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-04-28 12:40:41 +0000
committerChristian Grothoff <christian@grothoff.org>2010-04-28 12:40:41 +0000
commitd83a3d2ac2a33d43239bbd5703574872081ba81f (patch)
tree4cf623eeec48634fa1d0ffd6ce31521ee90a3c3c /src/fs/fs_download.c
parent0398c75b95c53ffd109635e5477e8bb3b93217de (diff)
downloadgnunet-d83a3d2ac2a33d43239bbd5703574872081ba81f.tar.gz
gnunet-d83a3d2ac2a33d43239bbd5703574872081ba81f.zip
added option to restrict search to local-only
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r--src/fs/fs_download.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index 14e6266f8..fe9c18aa1 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -1150,6 +1150,10 @@ transmit_download_request (void *cls,
1150 memset (sm, 0, sizeof (struct SearchMessage)); 1150 memset (sm, 0, sizeof (struct SearchMessage));
1151 sm->header.size = htons (sizeof (struct SearchMessage)); 1151 sm->header.size = htons (sizeof (struct SearchMessage));
1152 sm->header.type = htons (GNUNET_MESSAGE_TYPE_FS_START_SEARCH); 1152 sm->header.type = htons (GNUNET_MESSAGE_TYPE_FS_START_SEARCH);
1153 if (0 != (dc->options & GNUNET_FS_DOWNLOAD_OPTION_LOOPBACK_ONLY))
1154 sm->options = htonl (1);
1155 else
1156 sm->options = htonl (0);
1153 if (dc->pending->depth == dc->treedepth) 1157 if (dc->pending->depth == dc->treedepth)
1154 sm->type = htonl (GNUNET_BLOCK_TYPE_DBLOCK); 1158 sm->type = htonl (GNUNET_BLOCK_TYPE_DBLOCK);
1155 else 1159 else