aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_ats_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r--src/include/gnunet_ats_service.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index 7be2e4758..e09dc5d75 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -35,11 +35,6 @@
35 */ 35 */
36#define GNUNET_ATS_NetworkTypeCount 6 36#define GNUNET_ATS_NetworkTypeCount 6
37 37
38/**
39 * ATS network types as array initializer
40 */
41#define GNUNET_ATS_NetworkType { GNUNET_ATS_NET_UNSPECIFIED, GNUNET_ATS_NET_LOOPBACK, GNUNET_ATS_NET_LAN, GNUNET_ATS_NET_WAN, GNUNET_ATS_NET_WLAN, GNUNET_ATS_NET_BT }
42
43 38
44/** 39/**
45 * Types of networks (with separate quotas) we support. 40 * Types of networks (with separate quotas) we support.
@@ -79,6 +74,13 @@ enum GNUNET_ATS_Network_Type
79 74
80 75
81/** 76/**
77 * ATS network types as array initializer
78 */
79#define GNUNET_ATS_NetworkType { GNUNET_ATS_NET_UNSPECIFIED, GNUNET_ATS_NET_LOOPBACK, GNUNET_ATS_NET_LAN, GNUNET_ATS_NET_WAN, GNUNET_ATS_NET_WLAN, GNUNET_ATS_NET_BT }
80
81
82
83/**
82 * Default bandwidth assigned to a network : 64 KB/s 84 * Default bandwidth assigned to a network : 64 KB/s
83 */ 85 */
84#define GNUNET_ATS_DefaultBandwidth 65536 86#define GNUNET_ATS_DefaultBandwidth 65536
@@ -430,9 +432,9 @@ GNUNET_ATS_print_network_type (enum GNUNET_ATS_Network_Type net);
430 * @param sh the `struct GNUNET_ATS_SchedulingHandle` handle 432 * @param sh the `struct GNUNET_ATS_SchedulingHandle` handle
431 * @param addr address 433 * @param addr address
432 * @param addrlen address length 434 * @param addrlen address length
433 * @return location as `struct GNUNET_ATS_Information` 435 * @return type of the network the address belongs to
434 */ 436 */
435struct GNUNET_ATS_Information 437enum GNUNET_ATS_Network_Type
436GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh, 438GNUNET_ATS_address_get_type (struct GNUNET_ATS_SchedulingHandle *sh,
437 const struct sockaddr *addr, 439 const struct sockaddr *addr,
438 socklen_t addrlen); 440 socklen_t addrlen);