Jeremy Lakeman
884a6211eb
Remove overlay_interface_find_name
2016-04-27 13:10:31 +09:30
Jeremy Lakeman
231ab257e4
Define internal port bindings with section linking tricks
2016-03-07 15:50:34 +10:30
Jeremy Lakeman
c1947cf774
Add prior hop SID to route print output
2016-03-02 10:51:16 +10:30
Jeremy Lakeman
389f16d2bb
Establish a unicast link to a configured host on demand
2016-01-27 16:27:47 +10:30
Jeremy Lakeman
79e8a94792
Add route_link.h
2015-09-28 11:58:48 +09:30
Andrew Bettison
7d9a5faa4e
Move if(config.debug.xxx) tests into DEBUGF()
...
Original DEBUG() and DEBUGF() macros renamed to _DEBUG() and _DEBUGF()
New DEBUG() and DEBUGF() macros, first argument is flagname
New DEBUGF2(foo, bar, ...) macro does if(config.debug.foo||config.debug.bar) test
Replace almost all config.debug.xxx references to IF_DEBUG(xxx)
2015-07-13 16:00:05 +09:30
Jeremy Lakeman
e97f7c4e29
Fix vomp stun tests
...
- Don't trust stun responses about 3rd parties
- Only ack neighbour links via 1hop destinations (not multi-hop routes)
- Don't override network destinations that were manually supplied
2015-06-22 14:50:28 +09:30
Jeremy Lakeman
568f431d91
Share private addresses during stun traversal
2015-06-22 12:15:49 +09:30
Jeremy Lakeman
fea91f3f82
Use configured reachable timeout for network links, read dummy files even when not ticking
2015-03-30 17:38:40 +10:30
Jeremy Lakeman
13bb8a558d
Re-route packets on retransmision if the route has changed
2015-03-30 11:27:37 +10:30
Jeremy Lakeman
f7dbe06836
Rearrange interface config to support unicast settings
2015-03-23 13:35:22 +10:30
Jeremy Lakeman
4440cf3af0
Allow for different routes per packet destination
2014-09-23 14:54:22 +09:30
Jeremy Lakeman
dac67c7059
Small fixes while testing directory services
2014-09-12 15:24:23 +09:30
Jeremy Lakeman
9ed507f740
Move rate limit code to separate file
2014-05-12 13:44:50 +09:30
Jeremy Lakeman
55db779f8c
Remember specified rate limit
2014-05-12 13:44:50 +09:30
Jeremy Lakeman
b56f4c27d3
Replace internal usage of overlay_mdp_dispatch
2014-02-19 16:39:42 +10:30
Jeremy Lakeman
20e2b2fdd7
Shift more internal ports to new interface
2014-02-19 16:35:23 +10:30
Jeremy Lakeman
487df0408d
Refactor mdp packet processing to avoid using struct overlay_mdp_frame
2014-02-19 16:34:11 +10:30
Jeremy Lakeman
5f2c6e364a
Refactor interface addresses to use new socket_address struct
2014-01-09 15:01:38 +10:30
Andrew Bettison
9b64bb87e0
Uniform copyright notices
...
Added some missing copyright/license block comments
2013-12-04 17:15:36 +10:30
Andrew Bettison
42ab9aec4c
Merge branch 'development' into 'naf4'
...
Remove two redundant calls to rhizome_retrieve_manifest() in meshms.c,
revealed by an assert() in the stricter manifest parsing code
Fix header files included by socket.h
2013-12-02 17:17:47 +10:30
Jeremy Lakeman
0d5d878521
Refactor socket name and address length handling
2013-11-27 13:08:37 +10:30
Andrew Bettison
a9ccd38adc
Improve overlay buffer ob_xxx() primitives
...
All ob_append_xxx(b,...) functions return void
ob_makespace() returns 1 if successful, 0 if not
Add ob_overrun(b) predicate to check for overrun after any number of
appends
2013-11-26 15:33:54 +10:30
Andrew Bettison
7564d529a1
Add missing copyright/license comment blocks
...
Update a few existing copyright notices to reflect recent work
2013-11-21 16:05:18 +10:30
Jeremy Lakeman
4434b1b65d
Create keyring.h and move definitions there
2013-11-13 11:55:12 +10:30
Andrew Bettison
a95ef79139
Use sid_t everywhere
...
Remove stowSid() at last
Change API of tohex() and strbuf_tohex(), to pass string length instead of
binary byte count. This allows odd numbers of hex digits to be produced.
Remove alloca_tohex_sid(); replace with alloca_tohex_sid_t()
New alloca_tohex_sid_t_trunc() macro
2013-10-09 18:54:21 +10:30
Jeremy Lakeman
9374c4f823
Use int for signed value to fix android portability
2013-08-13 15:16:17 +09:30
Jeremy Lakeman
81afc42d8b
Major refactor to packet queuing and delivery in preparation for unicast link tracking.
...
Unicast tests broken
2013-08-09 09:37:08 +09:30
Jeremy Lakeman
b1f384cd63
Swap between broadcast & unicast links as they become available
2013-05-31 11:32:31 +09:30
Jeremy Lakeman
02be4c2979
Add support for retransmitting broadcast mdp packets
2013-05-29 11:58:05 +09:30
Jeremy Lakeman
a59b306173
Allow for out of order packets, reduce link state spam
2013-05-08 11:37:31 +09:30
Jeremy Lakeman
af14aaa740
Fix network scanning
2013-05-03 17:00:39 +09:30
Jeremy Lakeman
a29c1d3468
Don't override subscriber interface due to unicast probe packets
2013-05-02 14:29:31 +09:30
gardners
2252fdcaa7
created tool for automatically finding IN()s without matching
...
OUT()s or where return() is used instead of RETURN().
Added OUT() to end of all functions using IN() that lacked it to
make it easier to statically analyse this invariant.
Fixed several return instead of RETURNs detected through use of
this tool. #49
2013-02-20 16:18:56 +10:30
gardners
80168e3530
Improve debug logging
...
- add debug.trace to help track down segfaults
- warn about alarms without names (which are then hard to track down).
2013-02-20 15:36:30 +10:30
Jeremy Lakeman
d80b5a0c8d
Prevent sending probe packets to invalid addresses
2013-02-20 15:36:28 +10:30
Jeremy Lakeman
eeb7fb7f9b
Reinitialise an interface when it comes back up
2013-02-20 15:36:28 +10:30
Jeremy Lakeman
6d9bbe2e2c
Refactor interface handling to separate encapsulation from stream type
2013-02-20 15:36:23 +10:30
Jeremy Lakeman
33da5ee2da
Never send a unicast probe over a packet radio link
2013-02-20 15:36:22 +10:30
Andrew Bettison
e856cafc97
Quieten overlay_link.c DEBUG statements
...
Make them conditional on config.debug.overlayrouting, like other DEBUG
statements in the same source file
2013-02-15 10:30:23 +10:30
Jeremy Lakeman
b35c1aca43
Specify that unicast traffic should use unicast UDP packets
2013-01-29 11:57:13 +11:00
Jeremy Lakeman
82db15db5b
Use any packet as a self-announce
...
Stop sending OF_TYPE_SELFANNOUNCE
Deprecate OF_TYPE_DATA_VOICE
Tweak payload priorities
Don't allow client applications to send high priority payloads
2012-12-16 10:09:29 +10:30
Jeremy Lakeman
55be5208a9
Remove packet queue delays, rely on network limits
2012-12-14 17:11:57 +10:30
Jeremy Lakeman
e517e3a59e
Add per-interface packet transmit limits
2012-12-14 17:07:28 +10:30
Jeremy Lakeman
7be03f15e7
Move link tracking to one c file
2012-12-14 17:07:28 +10:30