diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-12-23 08:45:09 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-12-23 08:45:09 +0000 |
commit | 163d2bb7aa86171dc895c303fb02412fc22cafc9 (patch) | |
tree | 5636cabb7ae21060027fd6f1b086f013bcc64c1c /src/nat | |
parent | 6b2288e947a5972f4a24f15cb419d9815f6e51fb (diff) | |
download | gnunet-163d2bb7aa86171dc895c303fb02412fc22cafc9.tar.gz gnunet-163d2bb7aa86171dc895c303fb02412fc22cafc9.zip |
doxygen
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/upnp-commands.c | 4 | ||||
-rw-r--r-- | src/nat/upnp-commands.h | 24 | ||||
-rw-r--r-- | src/nat/upnp-discover.c | 10 | ||||
-rw-r--r-- | src/nat/upnp.c | 4 |
4 files changed, 19 insertions, 23 deletions
diff --git a/src/nat/upnp-commands.c b/src/nat/upnp-commands.c index 00655f753..2d9ca6243 100644 --- a/src/nat/upnp-commands.c +++ b/src/nat/upnp-commands.c | |||
@@ -227,7 +227,7 @@ get_content_and_header_len (const char *p, int n, | |||
227 | * @param available number of bytes in buf | 227 | * @param available number of bytes in buf |
228 | * @param addr address of the sender | 228 | * @param addr address of the sender |
229 | * @param addrlen size of addr | 229 | * @param addrlen size of addr |
230 | * @errCode value of errno | 230 | * @param errCode value of errno |
231 | */ | 231 | */ |
232 | static void | 232 | static void |
233 | UPNP_command_receiver (void *data, | 233 | UPNP_command_receiver (void *data, |
@@ -348,6 +348,8 @@ parse_url (const char *url, char *hostname, unsigned short *port, char **path) | |||
348 | * @param service type of the service corresponding to the command | 348 | * @param service type of the service corresponding to the command |
349 | * @param action action to send | 349 | * @param action action to send |
350 | * @param args arguments for action | 350 | * @param args arguments for action |
351 | * @param buffer buffer | ||
352 | * @param buf_size buffer size | ||
351 | * @param caller_cb user callback to trigger when done | 353 | * @param caller_cb user callback to trigger when done |
352 | * @param caller_cls closure to pass to caller_cb | 354 | * @param caller_cls closure to pass to caller_cb |
353 | */ | 355 | */ |
diff --git a/src/nat/upnp-commands.h b/src/nat/upnp-commands.h index 4f3cdc33c..3d1ebe496 100644 --- a/src/nat/upnp-commands.h +++ b/src/nat/upnp-commands.h | |||
@@ -98,6 +98,8 @@ typedef void (*UPNP_command_cb_) (char *response, size_t received, void *cls); | |||
98 | * @param service type of the service corresponding to the command | 98 | * @param service type of the service corresponding to the command |
99 | * @param action action to send | 99 | * @param action action to send |
100 | * @param args arguments for action | 100 | * @param args arguments for action |
101 | * @param buffer buffer | ||
102 | * @param buf_size buffer size | ||
101 | * @param caller_cb user callback to trigger when done | 103 | * @param caller_cb user callback to trigger when done |
102 | * @param caller_cls closure to pass to caller_cb | 104 | * @param caller_cls closure to pass to caller_cb |
103 | */ | 105 | */ |
@@ -128,7 +130,7 @@ typedef void (*UPNP_get_external_ip_address_cb_) (int error, | |||
128 | * @param control_url the control URL corresponding to service_type on the device | 130 | * @param control_url the control URL corresponding to service_type on the device |
129 | * @param service_type service type to call the command on | 131 | * @param service_type service type to call the command on |
130 | * @param caller_cb function to call when done | 132 | * @param caller_cb function to call when done |
131 | * @param cls closure passed to caller_cb | 133 | * @param caller_cls closure passed to caller_cb |
132 | */ | 134 | */ |
133 | void | 135 | void |
134 | UPNP_get_external_ip_address_ (const char *control_url, | 136 | UPNP_get_external_ip_address_ (const char *control_url, |
@@ -163,8 +165,8 @@ UPNP_get_external_ip_address_ (const char *control_url, | |||
163 | * @param error GNUNET_OK on success, another value on error (see above) | 165 | * @param error GNUNET_OK on success, another value on error (see above) |
164 | * @param control_url the control URL the command was called on | 166 | * @param control_url the control URL the command was called on |
165 | * @param service_type service the command was called on | 167 | * @param service_type service the command was called on |
166 | * @param in_port port on the gateway on the LAN side which was requested | 168 | * @param ext_port external port |
167 | * @param in_client address in the LAN which was requested | 169 | * @param inPort port on the gateway on the LAN side which was requested |
168 | * @param proto protocol for which port mapping was requested | 170 | * @param proto protocol for which port mapping was requested |
169 | * @param remote_host remote host for which port mapping was requested | 171 | * @param remote_host remote host for which port mapping was requested |
170 | * @param cls the closure passed to the command function | 172 | * @param cls the closure passed to the command function |
@@ -186,10 +188,11 @@ typedef void (*UPNP_port_mapping_cb_) (int error, | |||
186 | * @param ext_port port that should be opened on the WAN side | 188 | * @param ext_port port that should be opened on the WAN side |
187 | * @param in_port port on the gateway on the LAN side which should map ext_port | 189 | * @param in_port port on the gateway on the LAN side which should map ext_port |
188 | * @param in_client address in the LAN to which packets should be redirected | 190 | * @param in_client address in the LAN to which packets should be redirected |
191 | * @param desc description | ||
189 | * @param proto protocol for which to request port mapping | 192 | * @param proto protocol for which to request port mapping |
190 | * @param remote_host remote host for which to request port mapping | 193 | * @param remote_host remote host for which to request port mapping |
191 | * @param caller_cb function to call when done | 194 | * @param caller_cb function to call when done |
192 | * @param cls closure passed to caller_cb | 195 | * @param caller_cls closure passed to caller_cb |
193 | */ | 196 | */ |
194 | void | 197 | void |
195 | UPNP_add_port_mapping_ (const char *control_url, const char *service_type, | 198 | UPNP_add_port_mapping_ (const char *control_url, const char *service_type, |
@@ -208,8 +211,7 @@ UPNP_add_port_mapping_ (const char *control_url, const char *service_type, | |||
208 | * | 211 | * |
209 | * @param control_url the control URL the command was called on | 212 | * @param control_url the control URL the command was called on |
210 | * @param service_type service the command was called on | 213 | * @param service_type service the command was called on |
211 | * @param in_port port on the gateway on the LAN side which was requested | 214 | * @param ext_port external port |
212 | * @param in_client address in the LAN which was requested | ||
213 | * @param proto protocol for which port mapping was requested | 215 | * @param proto protocol for which port mapping was requested |
214 | * @param remote_host remote host for which port mapping was requested | 216 | * @param remote_host remote host for which port mapping was requested |
215 | * @param caller_cb function to call when done | 217 | * @param caller_cb function to call when done |
@@ -228,10 +230,10 @@ UPNP_delete_port_mapping_ (const char *control_url, const char *service_type, | |||
228 | * @param error GNUNET_OK if port is currently mapped, another value on error | 230 | * @param error GNUNET_OK if port is currently mapped, another value on error |
229 | * @param control_url the control URL the command was called on | 231 | * @param control_url the control URL the command was called on |
230 | * @param service_type service the command was called on | 232 | * @param service_type service the command was called on |
233 | * @param ext_port external port | ||
234 | * @param proto protocol for which port mapping was requested | ||
231 | * @param in_port port on the gateway on the LAN side which was requested | 235 | * @param in_port port on the gateway on the LAN side which was requested |
232 | * @param in_client address in the LAN which was requested | 236 | * @param in_client address in the LAN which was requested |
233 | * @param proto protocol for which port mapping was requested | ||
234 | * @param remote_host remote host for which port mapping was requested | ||
235 | * @param cls the closure passed to the command function | 237 | * @param cls the closure passed to the command function |
236 | */ | 238 | */ |
237 | typedef void (*UPNP_get_specific_port_mapping_entry_cb_) (int error, | 239 | typedef void (*UPNP_get_specific_port_mapping_entry_cb_) (int error, |
@@ -253,12 +255,10 @@ typedef void (*UPNP_get_specific_port_mapping_entry_cb_) (int error, | |||
253 | * | 255 | * |
254 | * @param control_url the control URL the command was called on | 256 | * @param control_url the control URL the command was called on |
255 | * @param service_type service the command was called on | 257 | * @param service_type service the command was called on |
256 | * @param in_port port on the gateway on the LAN side which was requested | 258 | * @param ext_port external port |
257 | * @param in_client address in the LAN which was requested | ||
258 | * @param proto protocol for which port mapping was requested | 259 | * @param proto protocol for which port mapping was requested |
259 | * @param remote_host remote host for which port mapping was requested | ||
260 | * @param caller_cb function to call when done | 260 | * @param caller_cb function to call when done |
261 | * @param cls closure passed to caller_cb | 261 | * @param callers_cls closure passed to caller_cb |
262 | */ | 262 | */ |
263 | void | 263 | void |
264 | UPNP_get_specific_port_mapping_entry_ (const char *control_url, | 264 | UPNP_get_specific_port_mapping_entry_ (const char *control_url, |
diff --git a/src/nat/upnp-discover.c b/src/nat/upnp-discover.c index b42df5ff2..654be490e 100644 --- a/src/nat/upnp-discover.c +++ b/src/nat/upnp-discover.c | |||
@@ -348,7 +348,7 @@ task_download (void *cls, | |||
348 | * | 348 | * |
349 | * @param url URL of the file to download | 349 | * @param url URL of the file to download |
350 | * @param caller_cb user function to call when done | 350 | * @param caller_cb user function to call when done |
351 | * @caller_cls closure to pass to caller_cb | 351 | * @param caller_cls closure to pass to caller_cb |
352 | */ | 352 | */ |
353 | void | 353 | void |
354 | download_device_description (char *url, download_cb caller_cb, | 354 | download_device_description (char *url, download_cb caller_cb, |
@@ -777,7 +777,7 @@ get_valid_igd_connected_cb (char *response, size_t received, void *data) | |||
777 | * Then, schedule UPnP command to check whether device is connected. | 777 | * Then, schedule UPnP command to check whether device is connected. |
778 | * | 778 | * |
779 | * @param desc UPnP IGD description (in XML) | 779 | * @param desc UPnP IGD description (in XML) |
780 | * @data closure from UPNP_discover() | 780 | * @param data closure from UPNP_discover() |
781 | */ | 781 | */ |
782 | static void | 782 | static void |
783 | get_valid_igd_receive (char *desc, void *data) | 783 | get_valid_igd_receive (char *desc, void *data) |
@@ -910,11 +910,7 @@ discover_send (void *data, const struct GNUNET_SCHEDULER_TaskContext *tc); | |||
910 | * and get their descriptions. | 910 | * and get their descriptions. |
911 | * | 911 | * |
912 | * @param data closure from UPNP_discover() | 912 | * @param data closure from UPNP_discover() |
913 | * @buf content of the reply | 913 | * @param tc task context |
914 | * @available number of bytes stored in buf | ||
915 | * @addr address of the sender | ||
916 | * @addrlen size of addr | ||
917 | * @param errCode value of errno | ||
918 | */ | 914 | */ |
919 | static void | 915 | static void |
920 | discover_recv (void *data, const struct GNUNET_SCHEDULER_TaskContext *tc) | 916 | discover_recv (void *data, const struct GNUNET_SCHEDULER_TaskContext *tc) |
diff --git a/src/nat/upnp.c b/src/nat/upnp.c index 4435741a0..bdb479da1 100644 --- a/src/nat/upnp.c +++ b/src/nat/upnp.c | |||
@@ -338,9 +338,7 @@ get_ip_address_cb (int error, char *ext_addr, void *cls) | |||
338 | * | 338 | * |
339 | * @param handle the handle for UPnP object | 339 | * @param handle the handle for UPnP object |
340 | * @param is_enabled whether enable port redirection | 340 | * @param is_enabled whether enable port redirection |
341 | * @param doPortCheck FIXME | 341 | * @param doPortCheck do port check |
342 | * @param ext_addr pointer for returning external IP address. | ||
343 | * Will be set to NULL if address could not be found. Don't free the sockaddr. | ||
344 | */ | 342 | */ |
345 | void | 343 | void |
346 | GNUNET_NAT_UPNP_pulse (struct GNUNET_NAT_UPNP_Handle *handle, | 344 | GNUNET_NAT_UPNP_pulse (struct GNUNET_NAT_UPNP_Handle *handle, |