diff options
author | t3sserakt <t3ss@posteo.de> | 2021-11-13 09:36:00 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2021-11-13 09:36:00 +0100 |
commit | 154d13fcb10205edf5fb56c12ac47e65abfec5a6 (patch) | |
tree | 9ea19addc17db8085650e95251bd4738d61f0894 /src/transport/gnunet-communicator-udp.c | |
parent | a97852fb9e6a3eccd4261319787a26db68b0a801 (diff) | |
download | gnunet-154d13fcb10205edf5fb56c12ac47e65abfec5a6.tar.gz gnunet-154d13fcb10205edf5fb56c12ac47e65abfec5a6.zip |
- Added broadcast test case. changed transport_api_cmd_start_peer.c to be configure to use broadcast or not. Changed transport_api_cmd_send_simple.c to use map of connected peers. Fixed bugs in service and udp communicator.
Diffstat (limited to 'src/transport/gnunet-communicator-udp.c')
-rw-r--r-- | src/transport/gnunet-communicator-udp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c index b7a3b4082..201e94e80 100644 --- a/src/transport/gnunet-communicator-udp.c +++ b/src/transport/gnunet-communicator-udp.c | |||
@@ -2354,6 +2354,13 @@ sock_read (void *cls) | |||
2354 | uhs.purpose.size = htonl (sizeof(uhs)); | 2354 | uhs.purpose.size = htonl (sizeof(uhs)); |
2355 | uhs.sender = ub->sender; | 2355 | uhs.sender = ub->sender; |
2356 | sender = ub->sender; | 2356 | sender = ub->sender; |
2357 | if (0 == memcmp (&sender, &my_identity, sizeof (struct | ||
2358 | GNUNET_PeerIdentity))) | ||
2359 | { | ||
2360 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2361 | "Received our own broadcast\n"); | ||
2362 | return; | ||
2363 | } | ||
2357 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2364 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2358 | "checking UDPBroadcastSignature for %s\n", | 2365 | "checking UDPBroadcastSignature for %s\n", |
2359 | GNUNET_i2s (&sender)); | 2366 | GNUNET_i2s (&sender)); |