diff options
Diffstat (limited to 'src/core/gnunet-core-list-connections.c')
-rw-r--r-- | src/core/gnunet-core-list-connections.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/src/core/gnunet-core-list-connections.c b/src/core/gnunet-core-list-connections.c index e0d95d0f8..c93f50981 100644 --- a/src/core/gnunet-core-list-connections.c +++ b/src/core/gnunet-core-list-connections.c | |||
@@ -98,11 +98,11 @@ dump_pc (struct PrintContext *pc) | |||
98 | * @param address NULL on error, otherwise 0-terminated printable UTF-8 string | 98 | * @param address NULL on error, otherwise 0-terminated printable UTF-8 string |
99 | */ | 99 | */ |
100 | static void | 100 | static void |
101 | process_resolved_address (void *cls, | 101 | process_resolved_address (void *cls, const struct GNUNET_PeerIdentity *peer, |
102 | const struct GNUNET_PeerIdentity *peer, | 102 | const struct GNUNET_HELLO_Address *address) |
103 | const struct GNUNET_HELLO_Address *address) | ||
104 | { | 103 | { |
105 | struct PrintContext *pc = cls; | 104 | struct PrintContext *pc = cls; |
105 | |||
106 | // struct AddressStringList *new_address; | 106 | // struct AddressStringList *new_address; |
107 | 107 | ||
108 | if (address == NULL) | 108 | if (address == NULL) |
@@ -111,16 +111,16 @@ process_resolved_address (void *cls, | |||
111 | return; | 111 | return; |
112 | } | 112 | } |
113 | 113 | ||
114 | /* This does exactly the same as gnunet-transport -i !*/ | 114 | /* This does exactly the same as gnunet-transport -i ! */ |
115 | /* | 115 | /* |
116 | new_address = GNUNET_malloc (sizeof (struct AddressStringList)); | 116 | * new_address = GNUNET_malloc (sizeof (struct AddressStringList)); |
117 | #if VERBOSE | 117 | * #if VERBOSE |
118 | fprintf (stderr, "Received address %s\n", address); | 118 | * fprintf (stderr, "Received address %s\n", address); |
119 | #endif | 119 | * #endif |
120 | 120 | * | |
121 | new_address->address_string = GNUNET_strdup ("FIXME"); | 121 | * new_address->address_string = GNUNET_strdup ("FIXME"); |
122 | GNUNET_CONTAINER_DLL_insert (pc->address_list_head, pc->address_list_tail, | 122 | * GNUNET_CONTAINER_DLL_insert (pc->address_list_head, pc->address_list_tail, |
123 | new_address); | 123 | * new_address); |
124 | */ | 124 | */ |
125 | } | 125 | } |
126 | 126 | ||
@@ -143,12 +143,9 @@ connected_peer_callback (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
143 | #endif | 143 | #endif |
144 | pc = GNUNET_malloc (sizeof (struct PrintContext)); | 144 | pc = GNUNET_malloc (sizeof (struct PrintContext)); |
145 | pc->peer = *peer; | 145 | pc->peer = *peer; |
146 | GNUNET_TRANSPORT_peer_get_active_addresses (cfg, | 146 | GNUNET_TRANSPORT_peer_get_active_addresses (cfg, peer, GNUNET_YES, |
147 | peer, | ||
148 | GNUNET_YES, | ||
149 | GNUNET_TIME_UNIT_MINUTES, | 147 | GNUNET_TIME_UNIT_MINUTES, |
150 | &process_resolved_address, | 148 | &process_resolved_address, pc); |
151 | pc); | ||
152 | } | 149 | } |
153 | #if VERBOSE | 150 | #if VERBOSE |
154 | else | 151 | else |