diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-10 08:54:30 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-10 08:54:30 +0000 |
commit | 7ff2687a523b15f9483bec521ebf7f89e0690e3a (patch) | |
tree | c6e05c1f3ce3cc8b94ab2141b084188ee02ad2ad | |
parent | f363035eff30aa7e28ce2f561b7d7fd89a19f97f (diff) | |
download | gnunet-7ff2687a523b15f9483bec521ebf7f89e0690e3a.tar.gz gnunet-7ff2687a523b15f9483bec521ebf7f89e0690e3a.zip |
updated configuration files
-rw-r--r-- | src/ats-tests/Makefile.am | 48 | ||||
-rw-r--r-- | src/ats-tests/perf_ats.c | 3 | ||||
-rw-r--r-- | src/ats-tests/perf_ats_mlp_bandwidth.conf | 4 | ||||
-rw-r--r-- | src/ats-tests/perf_ats_mlp_delay.conf | 4 | ||||
-rw-r--r-- | src/ats-tests/perf_ats_proportional_bandwidth.conf | 28 | ||||
-rw-r--r-- | src/ats-tests/perf_ats_proportional_delay.conf | 10 | ||||
-rw-r--r-- | src/ats-tests/perf_ats_ril_bandwidth.conf | 4 | ||||
-rw-r--r-- | src/ats-tests/perf_ats_ril_delay.conf | 4 | ||||
-rw-r--r-- | src/ats-tests/template_perf_ats.conf | 28 |
9 files changed, 95 insertions, 38 deletions
diff --git a/src/ats-tests/Makefile.am b/src/ats-tests/Makefile.am index 79010f06d..3285143aa 100644 --- a/src/ats-tests/Makefile.am +++ b/src/ats-tests/Makefile.am | |||
@@ -13,13 +13,17 @@ if USE_COVERAGE | |||
13 | endif | 13 | endif |
14 | 14 | ||
15 | if HAVE_LIBGLPK | 15 | if HAVE_LIBGLPK |
16 | 16 | PERF_MLP_BANDWIDTH = perf_ats_mlp_bandwidth | |
17 | PERF_MLP_DELAY = perf_ats_mlp_delay | ||
17 | endif | 18 | endif |
18 | 19 | ||
19 | if HAVE_TESTING | 20 | if HAVE_TESTING |
20 | TESTING_TESTS = \ | 21 | TESTING_TESTS = \ |
21 | perf_ats_proportional_bandwidth \ | 22 | perf_ats_proportional_bandwidth \ |
22 | perf_ats_proportional_delay | 23 | perf_ats_proportional_delay \ |
24 | perf_ats_ril_bandwidth \ | ||
25 | perf_ats_ril_delay \ | ||
26 | $(PERF_MLP_BANDWIDTH) $(PERF_MLP_DELAY) | ||
23 | endif | 27 | endif |
24 | 28 | ||
25 | check_PROGRAMS = \ | 29 | check_PROGRAMS = \ |
@@ -44,7 +48,45 @@ perf_ats_proportional_delay_LDADD = \ | |||
44 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | 48 | $(top_builddir)/src/testbed/libgnunettestbed.la \ |
45 | $(top_builddir)/src/ats/libgnunetats.la \ | 49 | $(top_builddir)/src/ats/libgnunetats.la \ |
46 | $(top_builddir)/src/core/libgnunetcore.la | 50 | $(top_builddir)/src/core/libgnunetcore.la |
51 | |||
52 | if HAVE_LIBGLPK | ||
53 | perf_ats_mlp_bandwidth_SOURCES = \ | ||
54 | perf_ats.c | ||
55 | perf_ats_mlp_bandwidth_LDADD = \ | ||
56 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
57 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
58 | $(top_builddir)/src/ats/libgnunetats.la \ | ||
59 | $(top_builddir)/src/core/libgnunetcore.la | ||
60 | |||
61 | perf_ats_mlp_delay_SOURCES = \ | ||
62 | perf_ats.c | ||
63 | perf_ats_mlp_delay_LDADD = \ | ||
64 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
65 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
66 | $(top_builddir)/src/ats/libgnunetats.la \ | ||
67 | $(top_builddir)/src/core/libgnunetcore.la | ||
68 | endif | ||
69 | |||
70 | perf_ats_ril_bandwidth_SOURCES = \ | ||
71 | perf_ats.c | ||
72 | perf_ats_ril_bandwidth_LDADD = \ | ||
73 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
74 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
75 | $(top_builddir)/src/ats/libgnunetats.la \ | ||
76 | $(top_builddir)/src/core/libgnunetcore.la | ||
77 | |||
78 | perf_ats_ril_delay_SOURCES = \ | ||
79 | perf_ats.c | ||
80 | perf_ats_ril_delay_LDADD = \ | ||
81 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
82 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
83 | $(top_builddir)/src/ats/libgnunetats.la \ | ||
84 | $(top_builddir)/src/core/libgnunetcore.la | ||
47 | 85 | ||
48 | EXTRA_DIST = \ | 86 | EXTRA_DIST = \ |
49 | perf_ats_proportional_bandwidth.conf \ | 87 | perf_ats_proportional_bandwidth.conf \ |
50 | perf_ats_proportional_delay.conf | 88 | perf_ats_proportional_delay.conf \ |
89 | perf_ats_mlp_bandwidth.conf \ | ||
90 | perf_ats_mlp_delay.conf \ | ||
91 | perf_ats_ril_bandwidth.conf \ | ||
92 | perf_ats_ril_delay.conf | ||
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c index 34334c643..c67933bd2 100644 --- a/src/ats-tests/perf_ats.c +++ b/src/ats-tests/perf_ats.c | |||
@@ -693,8 +693,6 @@ core_connect_cb (void *cls, const struct GNUNET_PeerIdentity * peer) | |||
693 | int c; | 693 | int c; |
694 | int cs; | 694 | int cs; |
695 | 695 | ||
696 | id = GNUNET_strdup (GNUNET_i2s (&p->id)); | ||
697 | |||
698 | t = find_peer (peer); | 696 | t = find_peer (peer); |
699 | if (NULL == t) | 697 | if (NULL == t) |
700 | { | 698 | { |
@@ -702,6 +700,7 @@ core_connect_cb (void *cls, const struct GNUNET_PeerIdentity * peer) | |||
702 | return; | 700 | return; |
703 | } | 701 | } |
704 | 702 | ||
703 | id = GNUNET_strdup (GNUNET_i2s (&p->id)); | ||
705 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 704 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
706 | "%s %s connected to %s %s\n", | 705 | "%s %s connected to %s %s\n", |
707 | (p->master == GNUNET_YES) ? "Master": "Slave", | 706 | (p->master == GNUNET_YES) ? "Master": "Slave", |
diff --git a/src/ats-tests/perf_ats_mlp_bandwidth.conf b/src/ats-tests/perf_ats_mlp_bandwidth.conf new file mode 100644 index 000000000..175521c87 --- /dev/null +++ b/src/ats-tests/perf_ats_mlp_bandwidth.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | @INLINE@ template_perf_ats.conf | ||
2 | |||
3 | [ats] | ||
4 | MODE = MLP \ No newline at end of file | ||
diff --git a/src/ats-tests/perf_ats_mlp_delay.conf b/src/ats-tests/perf_ats_mlp_delay.conf new file mode 100644 index 000000000..7bdf20182 --- /dev/null +++ b/src/ats-tests/perf_ats_mlp_delay.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | @INLINE@ template_perf_ats.conf | ||
2 | |||
3 | [ats] | ||
4 | MODE = MLP | ||
diff --git a/src/ats-tests/perf_ats_proportional_bandwidth.conf b/src/ats-tests/perf_ats_proportional_bandwidth.conf index d83653d15..dc2f47313 100644 --- a/src/ats-tests/perf_ats_proportional_bandwidth.conf +++ b/src/ats-tests/perf_ats_proportional_bandwidth.conf | |||
@@ -1,28 +1,4 @@ | |||
1 | [hostlist] | 1 | @INLINE@ template_perf_ats.conf |
2 | SERVERS = | ||
3 | |||
4 | [transport-udp] | ||
5 | BROADCAST = NO | ||
6 | |||
7 | [peerinfo] | ||
8 | USE_INCLUDED_HELLOS = NO | ||
9 | 2 | ||
10 | [ats] | 3 | [ats] |
11 | # Network specific inbound/outbound quotas | 4 | MODE = PROPORTIONAL |
12 | UNSPECIFIED_QUOTA_IN = 128 KiB | ||
13 | UNSPECIFIED_QUOTA_OUT = 128 KiB | ||
14 | # LOOPBACK | ||
15 | LOOPBACK_QUOTA_IN = 128 KiB | ||
16 | LOOPBACK_QUOTA_OUT = 128 KiB | ||
17 | # LAN | ||
18 | LAN_QUOTA_IN = 128 KiB | ||
19 | LAN_QUOTA_OUT = 128 KiB | ||
20 | # WAN | ||
21 | WAN_QUOTA_IN = 128 KiB | ||
22 | WAN_QUOTA_OUT = 128 KiB | ||
23 | # WLAN | ||
24 | WLAN_QUOTA_IN = 128 KiB | ||
25 | WLAN_QUOTA_OUT = 128 KiB | ||
26 | # BLUETOOTH | ||
27 | BLUETOOTH_QUOTA_IN = 128 KiB | ||
28 | BLUETOOTH_QUOTA_OUT = 128 KiB \ No newline at end of file | ||
diff --git a/src/ats-tests/perf_ats_proportional_delay.conf b/src/ats-tests/perf_ats_proportional_delay.conf index a5127d25f..dc2f47313 100644 --- a/src/ats-tests/perf_ats_proportional_delay.conf +++ b/src/ats-tests/perf_ats_proportional_delay.conf | |||
@@ -1,8 +1,4 @@ | |||
1 | [hostlist] | 1 | @INLINE@ template_perf_ats.conf |
2 | SERVERS = | ||
3 | 2 | ||
4 | [transport-udp] | 3 | [ats] |
5 | BROADCAST = NO | 4 | MODE = PROPORTIONAL |
6 | |||
7 | [peerinfo] | ||
8 | USE_INCLUDED_HELLOS = NO | ||
diff --git a/src/ats-tests/perf_ats_ril_bandwidth.conf b/src/ats-tests/perf_ats_ril_bandwidth.conf new file mode 100644 index 000000000..14eb9f68d --- /dev/null +++ b/src/ats-tests/perf_ats_ril_bandwidth.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | @INLINE@ template_perf_ats.conf | ||
2 | |||
3 | [ats] | ||
4 | MODE = RIL \ No newline at end of file | ||
diff --git a/src/ats-tests/perf_ats_ril_delay.conf b/src/ats-tests/perf_ats_ril_delay.conf new file mode 100644 index 000000000..40336a90d --- /dev/null +++ b/src/ats-tests/perf_ats_ril_delay.conf | |||
@@ -0,0 +1,4 @@ | |||
1 | @INLINE@ template_perf_ats.conf | ||
2 | |||
3 | [ats] | ||
4 | MODE = RIL | ||
diff --git a/src/ats-tests/template_perf_ats.conf b/src/ats-tests/template_perf_ats.conf new file mode 100644 index 000000000..d83653d15 --- /dev/null +++ b/src/ats-tests/template_perf_ats.conf | |||
@@ -0,0 +1,28 @@ | |||
1 | [hostlist] | ||
2 | SERVERS = | ||
3 | |||
4 | [transport-udp] | ||
5 | BROADCAST = NO | ||
6 | |||
7 | [peerinfo] | ||
8 | USE_INCLUDED_HELLOS = NO | ||
9 | |||
10 | [ats] | ||
11 | # Network specific inbound/outbound quotas | ||
12 | UNSPECIFIED_QUOTA_IN = 128 KiB | ||
13 | UNSPECIFIED_QUOTA_OUT = 128 KiB | ||
14 | # LOOPBACK | ||
15 | LOOPBACK_QUOTA_IN = 128 KiB | ||
16 | LOOPBACK_QUOTA_OUT = 128 KiB | ||
17 | # LAN | ||
18 | LAN_QUOTA_IN = 128 KiB | ||
19 | LAN_QUOTA_OUT = 128 KiB | ||
20 | # WAN | ||
21 | WAN_QUOTA_IN = 128 KiB | ||
22 | WAN_QUOTA_OUT = 128 KiB | ||
23 | # WLAN | ||
24 | WLAN_QUOTA_IN = 128 KiB | ||
25 | WLAN_QUOTA_OUT = 128 KiB | ||
26 | # BLUETOOTH | ||
27 | BLUETOOTH_QUOTA_IN = 128 KiB | ||
28 | BLUETOOTH_QUOTA_OUT = 128 KiB \ No newline at end of file | ||