oweals/gnunet.git
9 years agofix #3664: during PS_RECONNECT_ATS, primary address may be NULL, causing an NPE if...
Christian Grothoff [Tue, 10 Feb 2015 11:34:49 +0000 (11:34 +0000)]
fix #3664: during PS_RECONNECT_ATS, primary address may be NULL, causing an NPE if we continue here

9 years ago-do not reschedule validation if in_use did not change
Christian Grothoff [Tue, 10 Feb 2015 11:04:54 +0000 (11:04 +0000)]
-do not reschedule validation if in_use did not change

9 years ago-just eliminate useless check, can just be false
Christian Grothoff [Tue, 10 Feb 2015 11:03:15 +0000 (11:03 +0000)]
-just eliminate useless check, can just be false

9 years ago-fix
Christian Grothoff [Tue, 10 Feb 2015 00:00:56 +0000 (00:00 +0000)]
-fix

9 years ago-improve UDP logging
Christian Grothoff [Mon, 9 Feb 2015 21:19:46 +0000 (21:19 +0000)]
-improve UDP logging

9 years ago-eliminate dead argument, do use quota immediately
Christian Grothoff [Mon, 9 Feb 2015 20:56:56 +0000 (20:56 +0000)]
-eliminate dead argument, do use quota immediately

9 years ago-reorder tests to have slow ones go last
Christian Grothoff [Mon, 9 Feb 2015 16:13:43 +0000 (16:13 +0000)]
-reorder tests to have slow ones go last

9 years ago-report if testcase failure is because switching is not enforced, then do not fail...
Christian Grothoff [Mon, 9 Feb 2015 16:06:10 +0000 (16:06 +0000)]
-report if testcase failure is because switching is not enforced, then do not fail hard

9 years ago-do not continue in case of transmission error
Christian Grothoff [Mon, 9 Feb 2015 15:56:11 +0000 (15:56 +0000)]
-do not continue in case of transmission error

9 years ago-minor indentation/logging fixes
Christian Grothoff [Mon, 9 Feb 2015 15:30:55 +0000 (15:30 +0000)]
-minor indentation/logging fixes

9 years agodo proper check for stability, in particular UINT32_MAX-0 is not a delta of 1...
Christian Grothoff [Mon, 9 Feb 2015 15:30:22 +0000 (15:30 +0000)]
do proper check for stability, in particular UINT32_MAX-0 is not a delta of 1...

9 years agoperform proper locking and unlocking
Christian Grothoff [Mon, 9 Feb 2015 15:12:40 +0000 (15:12 +0000)]
perform proper locking and unlocking

9 years ago-do only send HELLO to clients once on startup, do only send fully initialized HELLO...
Christian Grothoff [Mon, 9 Feb 2015 14:28:45 +0000 (14:28 +0000)]
-do only send HELLO to clients once on startup, do only send fully initialized HELLO to clients if we can help it, even the first one; do not perform blacklist check twice for try_connect

9 years ago-tolerateNAT instant reporting
Christian Grothoff [Mon, 9 Feb 2015 14:27:59 +0000 (14:27 +0000)]
-tolerateNAT instant reporting

9 years ago-instantly report addresses during NAT initialization if possible
Christian Grothoff [Mon, 9 Feb 2015 14:27:47 +0000 (14:27 +0000)]
-instantly report addresses during NAT initialization if possible

9 years ago-better debug output, indentation
Christian Grothoff [Mon, 9 Feb 2015 14:27:29 +0000 (14:27 +0000)]
-better debug output, indentation

9 years ago-use backoff for reconnects
Christian Grothoff [Mon, 9 Feb 2015 12:17:18 +0000 (12:17 +0000)]
-use backoff for reconnects

9 years ago-that the tests do not catch bugs like this is a real issue...
Christian Grothoff [Mon, 9 Feb 2015 11:59:59 +0000 (11:59 +0000)]
-that the tests do not catch bugs like this is a real issue...

9 years ago-fix shutdown
Christian Grothoff [Sun, 8 Feb 2015 23:22:18 +0000 (23:22 +0000)]
-fix shutdown

9 years ago-fix shutdown order
Christian Grothoff [Sun, 8 Feb 2015 23:17:43 +0000 (23:17 +0000)]
-fix shutdown order

9 years ago-fin, mention future work in TODO
Christian Grothoff [Sun, 8 Feb 2015 22:58:14 +0000 (22:58 +0000)]
-fin, mention future work in TODO

9 years ago-updating comments
Christian Grothoff [Sun, 8 Feb 2015 22:46:45 +0000 (22:46 +0000)]
-updating comments

9 years ago-cleaning up bandwidth allocation routine
Christian Grothoff [Sun, 8 Feb 2015 22:38:43 +0000 (22:38 +0000)]
-cleaning up bandwidth allocation routine

9 years ago-when selecting addresses, kick out peers with insufficient support if we are at...
Christian Grothoff [Sun, 8 Feb 2015 22:24:50 +0000 (22:24 +0000)]
-when selecting addresses, kick out peers with insufficient support if we are at the limit

9 years ago-further simplify
Christian Grothoff [Sun, 8 Feb 2015 22:18:16 +0000 (22:18 +0000)]
-further simplify

9 years ago-further simplify
Christian Grothoff [Sun, 8 Feb 2015 21:48:01 +0000 (21:48 +0000)]
-further simplify

9 years ago-further simplify
Christian Grothoff [Sun, 8 Feb 2015 21:06:29 +0000 (21:06 +0000)]
-further simplify

9 years ago-getting there...
Christian Grothoff [Sun, 8 Feb 2015 20:55:25 +0000 (20:55 +0000)]
-getting there...

9 years ago-simplify flow, redistribute bandwidth after adding address
Christian Grothoff [Sun, 8 Feb 2015 19:59:05 +0000 (19:59 +0000)]
-simplify flow, redistribute bandwidth after adding address

9 years agodo not force disconnect just because client does not request address anymore
Christian Grothoff [Sun, 8 Feb 2015 19:56:19 +0000 (19:56 +0000)]
do not force disconnect just because client does not request address anymore

9 years ago-simplify flow
Christian Grothoff [Sun, 8 Feb 2015 19:53:36 +0000 (19:53 +0000)]
-simplify flow

9 years ago-simplify flow
Christian Grothoff [Sun, 8 Feb 2015 19:43:46 +0000 (19:43 +0000)]
-simplify flow

9 years ago-simplify logic
Christian Grothoff [Sun, 8 Feb 2015 19:43:00 +0000 (19:43 +0000)]
-simplify logic

9 years ago-useless assertion removal
Christian Grothoff [Sun, 8 Feb 2015 19:38:35 +0000 (19:38 +0000)]
-useless assertion removal

9 years ago-indent
Christian Grothoff [Sun, 8 Feb 2015 18:36:52 +0000 (18:36 +0000)]
-indent

9 years agochanging s_get API to return void instead of address, have plugin use existing mechan...
Christian Grothoff [Sun, 8 Feb 2015 18:13:10 +0000 (18:13 +0000)]
changing s_get API to return void instead of address, have plugin use existing mechanism to signal address activation

9 years ago-simplify logic, convert breaks into asserts
Christian Grothoff [Sun, 8 Feb 2015 17:40:57 +0000 (17:40 +0000)]
-simplify logic, convert breaks into asserts

9 years ago-restructuring, adding comments
Christian Grothoff [Sun, 8 Feb 2015 17:34:33 +0000 (17:34 +0000)]
-restructuring, adding comments

9 years ago-remove fprintf
Christian Grothoff [Sun, 8 Feb 2015 17:11:19 +0000 (17:11 +0000)]
-remove fprintf

9 years agoeliminate super-lazy functions
Christian Grothoff [Sun, 8 Feb 2015 17:02:40 +0000 (17:02 +0000)]
eliminate super-lazy functions

9 years agoclean up find_quality_property_index and get_active_address_it
Christian Grothoff [Sun, 8 Feb 2015 16:43:41 +0000 (16:43 +0000)]
clean up find_quality_property_index and get_active_address_it

9 years agocleaning up get_active_address
Christian Grothoff [Sun, 8 Feb 2015 16:39:33 +0000 (16:39 +0000)]
cleaning up get_active_address

9 years agocleaning up address_decrement
Christian Grothoff [Sun, 8 Feb 2015 16:36:30 +0000 (16:36 +0000)]
cleaning up address_decrement

9 years agocheck for nan
Christian Grothoff [Sun, 8 Feb 2015 16:26:48 +0000 (16:26 +0000)]
check for nan

9 years agoremoving dead argument
Christian Grothoff [Sun, 8 Feb 2015 16:24:51 +0000 (16:24 +0000)]
removing dead argument

9 years agoavoid several linear scans and allocations by combining AddressWrapper and asi structs
Christian Grothoff [Sun, 8 Feb 2015 16:24:42 +0000 (16:24 +0000)]
avoid several linear scans and allocations by combining AddressWrapper and asi structs

9 years agouse new 'get_connectivity' API which is also RC-counting, instead of another map
Christian Grothoff [Sun, 8 Feb 2015 15:50:13 +0000 (15:50 +0000)]
use new 'get_connectivity' API which is also RC-counting, instead of another map

9 years agoexpose connectivity desire of clients to ATS plugins
Christian Grothoff [Sun, 8 Feb 2015 15:34:37 +0000 (15:34 +0000)]
expose connectivity desire of clients to ATS plugins

9 years agoadding FIXME about 'struct Session'
Christian Grothoff [Sun, 8 Feb 2015 15:24:10 +0000 (15:24 +0000)]
adding FIXME about 'struct Session'

9 years ago-clarify API
Christian Grothoff [Sun, 8 Feb 2015 15:22:16 +0000 (15:22 +0000)]
-clarify API

9 years agocleaning up preference_peers as well once they are no longer needed
Christian Grothoff [Sun, 8 Feb 2015 15:20:15 +0000 (15:20 +0000)]
cleaning up preference_peers as well once they are no longer needed

9 years agocleaning up gnunet-service-ats_preferences.c
Christian Grothoff [Sun, 8 Feb 2015 15:12:23 +0000 (15:12 +0000)]
cleaning up gnunet-service-ats_preferences.c

9 years agocleaning up gnunet-service-ats_preferences.c
Christian Grothoff [Sun, 8 Feb 2015 15:12:14 +0000 (15:12 +0000)]
cleaning up gnunet-service-ats_preferences.c

9 years ago-adding comments, minor cleanup start
Christian Grothoff [Sun, 8 Feb 2015 13:41:07 +0000 (13:41 +0000)]
-adding comments, minor cleanup start

9 years ago-fix config, shutdown issue
Christian Grothoff [Sun, 8 Feb 2015 13:30:30 +0000 (13:30 +0000)]
-fix config, shutdown issue

9 years ago-rename for naming consistency
Christian Grothoff [Sun, 8 Feb 2015 13:19:14 +0000 (13:19 +0000)]
-rename for naming consistency

9 years agofix testcase FTBFS
Christian Grothoff [Sun, 8 Feb 2015 13:05:58 +0000 (13:05 +0000)]
fix testcase FTBFS

9 years agosimplify normalization logic, also have clients access norm array of address directly
Christian Grothoff [Sun, 8 Feb 2015 13:04:27 +0000 (13:04 +0000)]
simplify normalization logic, also have clients access norm array of address directly

9 years agomore dead and duplicate code elimination
Christian Grothoff [Sun, 8 Feb 2015 11:46:36 +0000 (11:46 +0000)]
more dead and duplicate code elimination

9 years ago-updating gettext m4 macros
Christian Grothoff [Sun, 8 Feb 2015 11:45:04 +0000 (11:45 +0000)]
-updating gettext m4 macros

9 years ago-bringing copyright tags up to FSF standard
Christian Grothoff [Sat, 7 Feb 2015 23:20:06 +0000 (23:20 +0000)]
-bringing copyright tags up to FSF standard

9 years ago-bringing copyright tags up to FSF standard
Christian Grothoff [Sat, 7 Feb 2015 23:11:14 +0000 (23:11 +0000)]
-bringing copyright tags up to FSF standard

9 years agoDCE
Christian Grothoff [Sat, 7 Feb 2015 18:35:13 +0000 (18:35 +0000)]
DCE

9 years agodeduplicate code for quota parsing
Christian Grothoff [Sat, 7 Feb 2015 18:28:48 +0000 (18:28 +0000)]
deduplicate code for quota parsing

9 years agodeduplicate code for quota parsing
Christian Grothoff [Sat, 7 Feb 2015 18:27:41 +0000 (18:27 +0000)]
deduplicate code for quota parsing

9 years ago- change in POTFILES.in
Julius Bünger [Sat, 7 Feb 2015 16:19:37 +0000 (16:19 +0000)]
- change in POTFILES.in

9 years agodistinct samplers for client and Brahms protocol
Julius Bünger [Sat, 7 Feb 2015 16:19:34 +0000 (16:19 +0000)]
distinct samplers for client and Brahms protocol

9 years agominor cleanup
Christian Grothoff [Sat, 7 Feb 2015 13:01:42 +0000 (13:01 +0000)]
minor cleanup

9 years agosimplify logic: just use string directly for the plugin name
Christian Grothoff [Sat, 7 Feb 2015 12:52:52 +0000 (12:52 +0000)]
simplify logic: just use string directly for the plugin name

9 years agouse lower-case
Christian Grothoff [Sat, 7 Feb 2015 12:49:58 +0000 (12:49 +0000)]
use lower-case

9 years agosimplify logic
Christian Grothoff [Sat, 7 Feb 2015 12:46:37 +0000 (12:46 +0000)]
simplify logic

9 years agosimplify logic
Christian Grothoff [Sat, 7 Feb 2015 12:33:51 +0000 (12:33 +0000)]
simplify logic

9 years ago-sane timeout
Christian Grothoff [Fri, 6 Feb 2015 14:26:35 +0000 (14:26 +0000)]
-sane timeout

9 years agotest ATS tests to pass again
Christian Grothoff [Fri, 6 Feb 2015 14:25:50 +0000 (14:25 +0000)]
test ATS tests to pass again

9 years ago-fix ril delete address handling
Christian Grothoff [Fri, 6 Feb 2015 12:42:48 +0000 (12:42 +0000)]
-fix ril delete address handling

9 years ago-fix misc minor crashes
Christian Grothoff [Fri, 6 Feb 2015 12:18:53 +0000 (12:18 +0000)]
-fix misc minor crashes

9 years ago-fixing silly NPEs
Christian Grothoff [Fri, 6 Feb 2015 09:37:01 +0000 (09:37 +0000)]
-fixing silly NPEs

9 years agoget rid of stupid network[i]=i array
Christian Grothoff [Fri, 6 Feb 2015 09:28:57 +0000 (09:28 +0000)]
get rid of stupid network[i]=i array

9 years ago-use only one nc per client
Christian Grothoff [Fri, 6 Feb 2015 09:00:14 +0000 (09:00 +0000)]
-use only one nc per client

9 years ago-fix segv
Christian Grothoff [Fri, 6 Feb 2015 08:35:41 +0000 (08:35 +0000)]
-fix segv

9 years agofirst pass at cleaning up ATS plugin API
Christian Grothoff [Thu, 5 Feb 2015 21:41:58 +0000 (21:41 +0000)]
first pass at cleaning up ATS plugin API

9 years agostarting with cleaning up gnunet-service-ats_preferences.c
Christian Grothoff [Thu, 5 Feb 2015 20:15:02 +0000 (20:15 +0000)]
starting with cleaning up gnunet-service-ats_preferences.c

9 years agostarting with cleaning up gnunet-service-ats_preferences.c
Christian Grothoff [Thu, 5 Feb 2015 20:09:20 +0000 (20:09 +0000)]
starting with cleaning up gnunet-service-ats_preferences.c

9 years agodead code elimination
Christian Grothoff [Thu, 5 Feb 2015 20:04:08 +0000 (20:04 +0000)]
dead code elimination

9 years agodead code elimination
Christian Grothoff [Thu, 5 Feb 2015 19:58:37 +0000 (19:58 +0000)]
dead code elimination

9 years agoavoid void *, use proper type for client
Christian Grothoff [Thu, 5 Feb 2015 19:57:26 +0000 (19:57 +0000)]
avoid void *, use proper type for client

9 years ago-misc cleanups
Christian Grothoff [Thu, 5 Feb 2015 19:55:31 +0000 (19:55 +0000)]
-misc cleanups

9 years agocleaning up gnunet-service-ats_normalization.c
Christian Grothoff [Thu, 5 Feb 2015 19:48:15 +0000 (19:48 +0000)]
cleaning up gnunet-service-ats_normalization.c

9 years ago- fixed resource leakages
Julius Bünger [Thu, 5 Feb 2015 18:35:39 +0000 (18:35 +0000)]
- fixed resource leakages

9 years ago- trying to fix coverity defects
Julius Bünger [Thu, 5 Feb 2015 17:47:52 +0000 (17:47 +0000)]
- trying to fix coverity defects

9 years ago- change in POTFILES.in
Julius Bünger [Thu, 5 Feb 2015 17:47:48 +0000 (17:47 +0000)]
- change in POTFILES.in

9 years ago-move header
Christian Grothoff [Thu, 5 Feb 2015 16:27:58 +0000 (16:27 +0000)]
-move header

9 years agoseparating out feedback from preferences
Christian Grothoff [Thu, 5 Feb 2015 16:26:23 +0000 (16:26 +0000)]
separating out feedback from preferences

9 years ago-cleaning up gnunet-service-ats_performance-*
Christian Grothoff [Thu, 5 Feb 2015 16:09:26 +0000 (16:09 +0000)]
-cleaning up gnunet-service-ats_performance-*

9 years ago-cleaning up gnunet-service-ats_connectivity-*
Christian Grothoff [Thu, 5 Feb 2015 15:45:30 +0000 (15:45 +0000)]
-cleaning up gnunet-service-ats_connectivity-*

9 years ago-cleaning up gnunet-service-ats_addresses.h
Christian Grothoff [Thu, 5 Feb 2015 15:30:24 +0000 (15:30 +0000)]
-cleaning up gnunet-service-ats_addresses.h

9 years ago-cleaning up gnunet-service-ats_addresses.c
Christian Grothoff [Thu, 5 Feb 2015 15:27:35 +0000 (15:27 +0000)]
-cleaning up gnunet-service-ats_addresses.c

9 years agobig ATS refactoring, no serious semantic changes should stem from this
Christian Grothoff [Thu, 5 Feb 2015 12:52:20 +0000 (12:52 +0000)]
big ATS refactoring, no serious semantic changes should stem from this

9 years agoVarious changes:
Christian Grothoff [Thu, 5 Feb 2015 00:53:22 +0000 (00:53 +0000)]
Various changes:

- removed "in_use" from being passed to ATS, no
  longer needed as we tell ATS when we cannot
  follow a suggestion by removing the address;
  simplifies the code a lot
- better handling of state machine, fallback to
  primary session if address switch to new
  session timed out
- nicer logging
- more comments
- new testcase failures, because of
  #3652, #3651 and #3650 (or more that i missed).

9 years agoimproved test description
Matthias Wachs [Wed, 4 Feb 2015 08:08:16 +0000 (08:08 +0000)]
improved test description