diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-22 09:34:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-22 09:34:46 +0000 |
commit | 01a4013c9f1bca74ae784b3508b67be32d9b33db (patch) | |
tree | ce99e2a1deea2155f08470ebd90a581fc9a61650 /src/transport/plugin_transport_tcp.c | |
parent | 79dea1de0667904be4ec99d7b65a61fa966da3f3 (diff) | |
download | gnunet-01a4013c9f1bca74ae784b3508b67be32d9b33db.tar.gz gnunet-01a4013c9f1bca74ae784b3508b67be32d9b33db.zip |
ignore addresses of other peers that are equal to our own
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 34e13cc28..e71e751f6 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -685,7 +685,7 @@ tcp_plugin_send (void *cls, | |||
685 | gettext_noop ("# bytes TCP was asked to transmit"), | 685 | gettext_noop ("# bytes TCP was asked to transmit"), |
686 | msgbuf_size, | 686 | msgbuf_size, |
687 | GNUNET_NO); | 687 | GNUNET_NO); |
688 | /* FIXME: we could do this a cheaper with a hash table | 688 | /* FIXME: we could do this cheaper with a hash table |
689 | where we could restrict the iteration to entries that match | 689 | where we could restrict the iteration to entries that match |
690 | the target peer... */ | 690 | the target peer... */ |
691 | if (session == NULL) | 691 | if (session == NULL) |
@@ -1253,6 +1253,12 @@ disconnect_notify (void *cls, struct GNUNET_SERVER_Client *client) | |||
1253 | /** | 1253 | /** |
1254 | * Add the IP of our network interface to the list of | 1254 | * Add the IP of our network interface to the list of |
1255 | * our external IP addresses. | 1255 | * our external IP addresses. |
1256 | * | ||
1257 | * @param cls the 'struct Plugin*' | ||
1258 | * @param name name of the interface | ||
1259 | * @param isDefault do we think this may be our default interface | ||
1260 | * @param addr address of the interface | ||
1261 | * @param addrlen number of bytes in addr | ||
1256 | */ | 1262 | */ |
1257 | static int | 1263 | static int |
1258 | process_interfaces (void *cls, | 1264 | process_interfaces (void *cls, |