[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r38195 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r38195 - gnunet/src/include |
Date: |
Mon, 24 Oct 2016 23:05:25 +0200 |
Author: grothoff
Date: 2016-10-24 23:05:25 +0200 (Mon, 24 Oct 2016)
New Revision: 38195
Modified:
gnunet/src/include/gnunet_nat_service.h
Log:
more work on new nat library
Modified: gnunet/src/include/gnunet_nat_service.h
===================================================================
--- gnunet/src/include/gnunet_nat_service.h 2016-10-24 21:04:38 UTC (rev
38194)
+++ gnunet/src/include/gnunet_nat_service.h 2016-10-24 21:05:25 UTC (rev
38195)
@@ -128,13 +128,17 @@
* reversal.
*
* @param cls closure
- * @param addr public IP address of the other peer
- * @param addrlen actual lenght of the @a addr
+ * @param local_addr address where we received the request
+ * @param local_addrlen actual length of the @a local_addr
+ * @param remote_addr public IP address of the other peer
+ * @param remote_addrlen actual length of the @a remote_addr
*/
typedef void
(*GNUNET_NAT_ReversalCallback) (void *cls,
- const struct sockaddr *addr,
- socklen_t addrlen);
+ const struct sockaddr *local_addr,
+ socklen_t local_addrlen,
+ const struct sockaddr *remote_addr,
+ socklen_t remote_addrlen);
/**
@@ -192,6 +196,7 @@
*
* @param nh handle to the NAT service
* @param sender_addr address from which we got @a data
+ * @param sender_addr_len number of bytes in @a sender_addr
* @param data the packet
* @param data_size number of bytes in @a data
* @return #GNUNET_OK on success
@@ -201,6 +206,7 @@
int
GNUNET_NAT_stun_handle_packet (struct GNUNET_NAT_Handle *nh,
const struct sockaddr *sender_addr,
+ size_t sender_addr_len,
const void *data,
size_t data_size);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r38195 - gnunet/src/include,
gnunet <=