oweals/gnunet.git
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

9 years agominor beautifications
Matthias Wachs [Wed, 4 Feb 2015 07:31:05 +0000 (07:31 +0000)]
minor beautifications

9 years agocleaning up test a bit
Christian Grothoff [Wed, 4 Feb 2015 01:11:45 +0000 (01:11 +0000)]
cleaning up test a bit

9 years agoalso allow local addresses for P2
Christian Grothoff [Wed, 4 Feb 2015 00:47:12 +0000 (00:47 +0000)]
also allow local addresses for P2

9 years agoremember which port we picked at random on port-autoconfig
Christian Grothoff [Wed, 4 Feb 2015 00:46:41 +0000 (00:46 +0000)]
remember which port we picked at random on port-autoconfig

9 years agodoxygen, new define
Christian Grothoff [Tue, 3 Feb 2015 17:40:54 +0000 (17:40 +0000)]
doxygen, new define

9 years ago-forgot to add file
Christian Grothoff [Tue, 3 Feb 2015 17:40:44 +0000 (17:40 +0000)]
-forgot to add file

9 years agoadd internal API to enable telling ATS about 'failed' suggestions
Christian Grothoff [Tue, 3 Feb 2015 16:11:15 +0000 (16:11 +0000)]
add internal API to enable telling ATS about 'failed' suggestions

9 years ago-docu
Christian Grothoff [Tue, 3 Feb 2015 15:32:26 +0000 (15:32 +0000)]
-docu

9 years agoget rid of unused state and dead code: GST_neighbour_get_latency is never used
Christian Grothoff [Tue, 3 Feb 2015 15:31:02 +0000 (15:31 +0000)]
get rid of unused state and dead code: GST_neighbour_get_latency is never used

9 years agonever destroy sessions on free_neighbour(), they should be destroyed by their own...
Christian Grothoff [Tue, 3 Feb 2015 15:28:00 +0000 (15:28 +0000)]
never destroy sessions on free_neighbour(), they should be destroyed by their own timeout

9 years ago-assert to check API use
Christian Grothoff [Tue, 3 Feb 2015 15:26:07 +0000 (15:26 +0000)]
-assert to check API use

9 years ago-fix NPE
Christian Grothoff [Tue, 3 Feb 2015 15:25:21 +0000 (15:25 +0000)]
-fix NPE

9 years ago-dead code elimination
Christian Grothoff [Tue, 3 Feb 2015 15:04:47 +0000 (15:04 +0000)]
-dead code elimination

9 years ago-mesh is dead
Christian Grothoff [Tue, 3 Feb 2015 14:40:45 +0000 (14:40 +0000)]
-mesh is dead

9 years agoseparate ATS interface scanning logic from ATS scheduling logic
Christian Grothoff [Tue, 3 Feb 2015 14:27:56 +0000 (14:27 +0000)]
separate ATS interface scanning logic from ATS scheduling logic

9 years agoseparate ATS connectivity suggestions from ATS scheduling API
Christian Grothoff [Tue, 3 Feb 2015 14:11:03 +0000 (14:11 +0000)]
separate ATS connectivity suggestions from ATS scheduling API

9 years ago-document struct
Christian Grothoff [Tue, 3 Feb 2015 13:23:01 +0000 (13:23 +0000)]
-document struct

9 years agodocument API, do not pass unused 'session' argument
Christian Grothoff [Tue, 3 Feb 2015 13:20:17 +0000 (13:20 +0000)]
document API, do not pass unused 'session' argument

9 years ago-fix FIXME
Christian Grothoff [Tue, 3 Feb 2015 13:14:25 +0000 (13:14 +0000)]
-fix FIXME

9 years agowhen ATS suggests an address that neighbours does not have a peer for, do not ignore...
Christian Grothoff [Tue, 3 Feb 2015 13:14:07 +0000 (13:14 +0000)]
when ATS suggests an address that neighbours does not have a peer for, do not ignore it, setup the neighbour record instead

9 years agodo signal disconnect to transport service, even if specific address is in_destroy
Christian Grothoff [Tue, 3 Feb 2015 12:33:04 +0000 (12:33 +0000)]
do signal disconnect to transport service, even if specific address is in_destroy

9 years agoadding statistics on why transport may drop ATS suggestions
Christian Grothoff [Tue, 3 Feb 2015 00:23:10 +0000 (00:23 +0000)]
adding statistics on why transport may drop ATS suggestions

9 years ago-fix fix
Christian Grothoff [Mon, 2 Feb 2015 23:52:41 +0000 (23:52 +0000)]
-fix fix

9 years agodramatically simplify quota notification: avoid registration, simply always notify...
Christian Grothoff [Mon, 2 Feb 2015 23:31:25 +0000 (23:31 +0000)]
dramatically simplify quota notification: avoid registration, simply always notify plugin

9 years agoreduce callback insanity for callbacks that are always bound to only one value
Christian Grothoff [Mon, 2 Feb 2015 23:16:13 +0000 (23:16 +0000)]
reduce callback insanity for callbacks that are always bound to only one value

9 years agoget_address_latency is actually dead
Christian Grothoff [Mon, 2 Feb 2015 23:04:39 +0000 (23:04 +0000)]
get_address_latency is actually dead

9 years agoget_address_latency also does not use session
Christian Grothoff [Mon, 2 Feb 2015 23:03:04 +0000 (23:03 +0000)]
get_address_latency also does not use session

9 years agoGST_validation_set_address_use does not need the session
Christian Grothoff [Mon, 2 Feb 2015 22:59:24 +0000 (22:59 +0000)]
GST_validation_set_address_use does not need the session

9 years agocheck that we support the specified plugin early, not late
Christian Grothoff [Mon, 2 Feb 2015 22:44:16 +0000 (22:44 +0000)]
check that we support the specified plugin early, not late

9 years agoremove blacklisted addresses immediately from validation map
Christian Grothoff [Mon, 2 Feb 2015 22:37:09 +0000 (22:37 +0000)]
remove blacklisted addresses immediately from validation map

9 years agoadd statistic on size of validation_map
Christian Grothoff [Mon, 2 Feb 2015 22:35:01 +0000 (22:35 +0000)]
add statistic on size of validation_map

9 years ago-removing dead code, chvc_ was not used at all
Christian Grothoff [Mon, 2 Feb 2015 22:28:47 +0000 (22:28 +0000)]
-removing dead code, chvc_ was not used at all

9 years agoavoid passing both PeerIdentity and Address (which contains PeerIdentity) if address...
Christian Grothoff [Mon, 2 Feb 2015 22:25:48 +0000 (22:25 +0000)]
avoid passing both PeerIdentity and Address (which contains PeerIdentity) if address is always present as then this is redundant

9 years ago-cleanup
Christian Grothoff [Mon, 2 Feb 2015 11:31:34 +0000 (11:31 +0000)]
-cleanup

9 years agoavoid duplication from storing PID in both address and in validation entry
Christian Grothoff [Mon, 2 Feb 2015 09:24:50 +0000 (09:24 +0000)]
avoid duplication from storing PID in both address and in validation entry

9 years ago-doxyen, comments, indentation
Christian Grothoff [Mon, 2 Feb 2015 09:22:18 +0000 (09:22 +0000)]
-doxyen, comments, indentation

9 years ago-improve logging to help diagnose #3593
Christian Grothoff [Mon, 2 Feb 2015 09:12:25 +0000 (09:12 +0000)]
-improve logging to help diagnose #3593

9 years ago-reduce log level, this is expected on shutdown
Christian Grothoff [Mon, 2 Feb 2015 08:51:25 +0000 (08:51 +0000)]
-reduce log level, this is expected on shutdown

9 years agoUse configured proportionality factor
David Barksdale [Sun, 1 Feb 2015 18:35:51 +0000 (18:35 +0000)]
Use configured proportionality factor

9 years agoUse configured stability factor, not constant
David Barksdale [Sun, 1 Feb 2015 18:31:01 +0000 (18:31 +0000)]
Use configured stability factor, not constant

9 years agofix #3630
Christian Grothoff [Sun, 1 Feb 2015 18:08:17 +0000 (18:08 +0000)]
fix #3630

9 years agocleaning up UDP code to use only on address format throughout the code as much as...
Christian Grothoff [Sun, 1 Feb 2015 18:00:31 +0000 (18:00 +0000)]
cleaning up UDP code to use only on address format throughout the code as much as possible

9 years ago-fix use after free
Christian Grothoff [Fri, 30 Jan 2015 12:18:47 +0000 (12:18 +0000)]
-fix use after free

9 years ago-fix leak
Christian Grothoff [Fri, 30 Jan 2015 12:18:20 +0000 (12:18 +0000)]
-fix leak