projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ad1ef89
)
- wip mesh/regex
author
Bart Polot
<bart@net.in.tum.de>
Mon, 25 Jun 2012 11:55:03 +0000
(11:55 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Mon, 25 Jun 2012 11:55:03 +0000
(11:55 +0000)
src/mesh/gnunet-service-mesh_new.c
patch
|
blob
|
history
diff --git
a/src/mesh/gnunet-service-mesh_new.c
b/src/mesh/gnunet-service-mesh_new.c
index 86d0b4a09fcab503469c069b96a18c5309de3992..d7446bc43dc83c79d865aa478b0a8bccf5c07aaa 100644
(file)
--- a/
src/mesh/gnunet-service-mesh_new.c
+++ b/
src/mesh/gnunet-service-mesh_new.c
@@
-4024,7
+4024,9
@@
dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp,
size_t size, const void *data)
{
const struct MeshRegexBlock *block = data;
size_t size, const void *data)
{
const struct MeshRegexBlock *block = data;
+ struct MeshRegexSerachContext *ctx = cls;
char *proof;
char *proof;
+ size_t len;
// FIXME: does proof have to be NULL terminated?
proof = (char *) &block[1];
// FIXME: does proof have to be NULL terminated?
proof = (char *) &block[1];
@@
-4033,6
+4035,20
@@
dht_get_string_handler (void *cls, struct GNUNET_TIME_Absolute exp,
GNUNET_break_op (0);
return;
}
GNUNET_break_op (0);
return;
}
+ len = strlen (ctx->description);
+ if (len == ctx->position)
+ {
+ if (GNUNET_YES == ntohl (block->accepting))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Found peer by service\n");
+ }
+ else
+ {
+ GNUNET_break (0);
+ // FIXME ERROR? Backtrace?
+ }
+ return;
+ }
// FIXME complete
return;
}
// FIXME complete
return;
}