Commit Graph

2291 Commits

Author SHA1 Message Date
Andrew Bettison
1f10f05302 Add "keyring dump" command 2013-04-30 17:29:06 +09:30
Andrew Bettison
74c82648f2 Fix rotbuf_advance(), add rotbuf_remain() 2013-04-30 17:28:32 +09:30
Andrew Bettison
ba57855160 Add alloca_str_toprint_quoted() macro to str.h 2013-04-30 17:27:10 +09:30
Andrew Bettison
94c6562ee1 Add erealloc() function to mem.h, mem.c 2013-04-30 17:26:27 +09:30
Andrew Bettison
deed4665fe Fix keyring test copyright and header comments 2013-04-29 17:38:01 +09:30
Jeremy Lakeman
559b270966 Only compare routes that have all links via the same neighbour 2013-04-29 17:07:36 +09:30
Andrew Bettison
e6438d74d3 Improve keyring pack code 2013-04-29 16:00:58 +09:30
Andrew Bettison
78b3a3a8c4 Add keyring test case (combined PINs) 2013-04-29 16:00:17 +09:30
Andrew Bettison
ae69da284f Add keyring back-compatibility test case 2013-04-29 15:11:04 +09:30
Andrew Bettison
80280de998 Improve test framework: set TFWSOURCE env var 2013-04-29 15:10:16 +09:30
Andrew Bettison
6fd49099cb Rewrite keyring pack/unpack for extensibility
Use new rotbuf primitives to handle rotated buffers
2013-04-29 14:31:50 +09:30
Andrew Bettison
06cb5de304 Add new rotbuf primitives 2013-04-29 14:30:44 +09:30
Jeremy Lakeman
d7caaf4973 Add length of link record for forward compatibility 2013-04-29 10:06:22 +09:30
Jeremy Lakeman
85b885dde2 Add basic link state routing 2013-04-26 16:54:01 +09:30
gardners
bca0145b13 detect when USB serial adapters have been pulled on OSX
(was spinning in poll())
2013-04-26 16:51:31 +09:30
gardners
05d4c14188 added missing symbols for parsing rs232baudrate 2013-04-26 15:33:09 +09:30
gardners
8045e57b81 fixed version_string.sh to work (or at least not fail) with git
1.7.3.
2013-04-26 15:27:53 +09:30
gardners
3e7de24bdf added uartpbs and ctsrts config options to packet radio serial
interface configuration options.
2013-04-26 15:16:51 +09:30
Andrew Bettison
91a0b2520f Forward-compatible keyring format 2013-04-23 18:13:01 +09:30
Andrew Bettison
8771a50b14 Fix TTL out-of-range bug
Was causing two routing tests to fail since the TTL decrement
logic was fixed in a8b88a46

The default TTL of 64 overflowed the 5-bit unsigned int in the MDP
packet header
2013-04-23 16:02:39 +09:30
Andrew Bettison
121ae2d609 Improve timeout control in routing tests 2013-04-22 16:01:38 +09:30
Andrew Bettison
e66c39a213 Improve config documentation 2013-04-16 12:44:47 +09:30
Andrew Bettison
f72e64fead Minor improvements to config doco 2013-04-15 19:20:35 +09:30
Andrew Bettison
534bf7a1a2 Improve network interface configuration doco 2013-04-15 18:59:49 +09:30
Andrew Bettison
64699101b0 Update Servald network interfaces documentation 2013-04-15 16:30:45 +09:30
Andrew Bettison
ddfcc60331 Log WARNing not ERROR for missing dummy interface file 2013-04-15 16:30:07 +09:30
Andrew Bettison
521e04a1c6 Update configuration and logging instructions 2013-04-12 17:18:53 +09:30
Andrew Bettison
81af4460f3 Fix broken "ping" command arg parsing 2013-04-12 17:18:25 +09:30
Andrew Bettison
a8b88a462f Fix clang compiler warnings (revealed some bugs) 2013-04-12 17:16:50 +09:30
Andrew Bettison
a9a1ffecde Simplify "start" commands
Remove all "in <instancepath>" variants

Make "foreground" and "exec <path>" variants mutually exclusive, using
new CLI alternatives syntax

Fix some log levels to assist newbies
2013-04-11 17:54:18 +09:30
Andrew Bettison
38b1141dc7 Fix bugs in log file rotation 2013-04-11 17:54:18 +09:30
alexandrasclapari
26ca801006 Serialization of new meshms format message 2013-04-10 22:55:58 -07:00
Jeremy Lakeman
96c0889f9a Don't ask for manifests if we don't have room in transfer queues 2013-04-11 15:24:41 +09:30
Andrew Bettison
76d7743efc Silence clang warnings 2013-04-11 13:46:09 +09:30
Andrew Bettison
58ff69c1d3 Fix #59: "-h" and "--help" synonyms for "help" 2013-04-09 17:26:38 +09:30
Andrew Bettison
5bbdef5587 Improve command-line parsing (issue #59)
Emit HINT log message about using "help" command

Support alternatives syntax "word|word|..." in CLI schema

Better return values from cli_parse()
2013-04-09 17:23:20 +09:30
Andrew Bettison
b826ac1f1b Improve logging: add HINT level, NOWHENCE() macro 2013-04-09 17:23:19 +09:30
Jeremy Lakeman
73342a9659 Announce routes to secondary keyring entries 2013-04-08 10:03:51 +09:30
Andrew Bettison
2c379fadb1 Merge branch 'naf2-logging' into 'development'
Conflicts:
	commandline.c
	tests/rhizomeprotocol
2013-04-05 17:39:23 +10:30
Andrew Bettison
ec481e5f0f Rename config option 'log.stderr' to 'log.console'
Because Android <stdio.h> defines 'stderr' as a macro...
2013-04-05 16:55:14 +10:30
Andrew Bettison
f7fc63c452 Improve logging tests, fix failures, add 'log.file.path' config option 2013-04-05 16:23:20 +10:30
Andrew Bettison
f06613c35f Fix test failures from latest logging changes 2013-04-05 15:28:54 +10:30
Andrew Bettison
a822dca2fa Improve config schema macros and log options
Add STRUCT_ASSIGN macro to config schema

Document STRUCT_DEFAULT and STRUCT_ASSIGN in block comments

Move 'log.file_xxx' options to 'log.file.xxx'
2013-04-05 15:00:54 +10:30
Andrew Bettison
60551df890 Implement configurable log file rotation 2013-04-04 17:52:54 +10:30
Andrew Bettison
c11ec7e8bf Improve form_serval_instance_path() error message 2013-04-04 17:46:09 +10:30
Andrew Bettison
bc8c820bf3 New config schema representations: uint32_time_interval and ushort 2013-04-04 17:43:43 +10:30
Andrew Bettison
2077265b2d Add str_index(), str_rindex(), et al 2013-04-04 17:42:33 +10:30
Andrew Bettison
10e89c7438 Add strbuf_remaining()
Improve some comments in strbuf.h
2013-04-04 17:41:18 +10:30
Andrew Bettison
c6666387e8 Add strbuf_append_strftime() 2013-04-04 17:40:58 +10:30
Andrew Bettison
65f6e88e67 Add emkdirs() and emkdirsn() 2013-04-04 17:37:49 +10:30