Andrew Bettison
7add45214c
Add [keyring-pin] arg to keyring load command
2013-09-10 11:28:55 +09:30
Andrew Bettison
befb658958
All keyring commands now close (free) the keyring
2013-09-05 16:34:52 +09:30
Andrew Bettison
8a300c2520
Get new keyring dump command and test working
2013-09-05 16:34:01 +09:30
Andrew Bettison
08c02e0e20
More progress towards keyring load command
2013-09-03 17:31:10 +09:30
Andrew Bettison
425aa1005c
Start work on "keyring load" command
2013-09-02 17:33:52 +09:30
Andrew Bettison
080ccd957a
Replace str_fromprint() with strn_fromprint()
2013-09-02 17:31:13 +09:30
Andrew Bettison
7d30b3cce7
Pass command-line args to server() function
...
So that the daemon can open the keyring file with --keyring-pin and --entry-pin
options.
Also remove some unused code.
2013-08-30 11:20:19 +09:30
Jeremy Lakeman
8fea1523b1
More consistent use of sleep_ms
2013-08-27 15:14:17 +09:30
Jeremy Lakeman
f2e7391672
Fix format warnings on 64bit machines
2013-08-26 11:54:46 +09:30
gardners
76f90f6004
add simple test to make sure byte order manipulation routines work.
2013-08-25 22:30:06 +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
8a1c0a39e3
Merge branch 'meshmsv2' into development
2013-08-05 13:05:44 +09:30
Jeremy Lakeman
6c85999917
Log crashes and unexpected signals as FATAL
2013-07-31 14:53:52 +09:30
Jeremy Lakeman
7634e1fcfb
Add command to mark messages as read
2013-07-26 14:36:11 +09:30
Jeremy Lakeman
ddfb7d9417
First cut of new meshms API, unfinished
2013-07-22 17:55:02 +09:30
Jeremy Lakeman
4dd2c8e2a2
Revert sid output format change for now
2013-07-15 13:22:24 +09:30
Jeremy Lakeman
3855ff35c4
Clean up string formatting for 64bit compilation
2013-07-15 09:59:24 +09:30
Jeremy Lakeman
8ac359e550
Use consistent integer types for 64bit compilation
2013-07-13 14:47:06 +09:30
Jeremy Lakeman
62a4cd407d
Identify a journal bundle by the presense of a tail field
2013-07-08 14:57:47 +09:30
Jeremy Lakeman
e758e0130f
Create journal append command
2013-07-08 14:29:08 +09:30
Jeremy Lakeman
2bc07a8eaa
Fix stupid syntax error
2013-07-04 16:02:19 +09:30
Jeremy Lakeman
53f3920b90
Move cli global state into a structure and pass it around
2013-07-03 16:51:27 +09:30
Jeremy Lakeman
b67516558e
Add clean command to verify all bundles
2013-06-14 11:58:19 +09:30
Jeremy Lakeman
e2c34b62fd
Allow mdp ping to flood packets rapidly
2013-05-27 14:25:59 +09:30
Jeremy Lakeman
118dcca40b
Improve quality and readability of some routing tests
2013-05-10 12:05:28 +09:30
gardners
dc49671583
take sleep() out of urandomdev(), since it just causes problems, and
...
read() should block if there aren't bytes available yet.
2013-05-07 14:42:47 +09:30
Jeremy Lakeman
b8a2026618
Use appropriate cli interface functions for console output
2013-05-03 16:21:29 +09:30
Jeremy Lakeman
9ee09e36a0
Replace old routing engine with new link state engine
2013-05-02 14:29:28 +09:30
Andrew Bettison
4e48725c93
Merge branch 'new-keyring' into 'development'
2013-04-30 17:57:59 +09:30
Andrew Bettison
1f10f05302
Add "keyring dump" command
2013-04-30 17:29:06 +09:30
Jeremy Lakeman
85b885dde2
Add basic link state routing
2013-04-26 16:54:01 +09:30
Andrew Bettison
121ae2d609
Improve timeout control in routing tests
2013-04-22 16:01:38 +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
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
2c379fadb1
Merge branch 'naf2-logging' into 'development'
...
Conflicts:
commandline.c
tests/rhizomeprotocol
2013-04-05 17:39:23 +10:30
Andrew Bettison
4be43b76d5
Remove CLIFLAG_NONOVERLAY and CLIFLAG_STANDALONE
...
Not used for anything
2013-04-02 17:49:56 +10:30
Andrew Bettison
21991726ae
Add logging tests, add "log" command
...
Refactor log.c ready for log file rotation
2013-04-02 17:01:48 +10:30
Andrew Bettison
0f83b9a5fc
Fix #60 - "rhizome direct" command line URL
...
Add test case for "rhizome push <url>" command
2013-04-02 14:54:46 +10:30
Andrew Bettison
2d09ec545e
Improve configuration dump to log
...
Refactor much of the new code in log.c
Add new functions: cf_load_strict() and cf_reload_strict() for use by the
server, which does not want to overwrite its in-memory config at all if there
is any defect in the config file. However, commands always want to overwrite
the default in-memory config, even with a defective config file, so that
logging has a chance to succeed.
Added `log_format.dump_config` boolean config option
2013-03-29 00:22:08 +10:30
Andrew Bettison
95b0c028f2
Log to file, Android and stderr simultaneously
...
Indepent configuration of show_pid, show_time and log level for each
destination
Update test scripts for new config options
Include xprintf.c in MDP client source files (now used by log.c)
2013-03-27 16:17:38 +10:30
Andrew Bettison
a88234ce9d
Add optional filter args to 'help' command
2013-03-25 12:05:26 +10:30
Andrew Bettison
300ec986f1
Fix warnings from gcc 4.6.3
2013-03-18 16:48:15 +10:30
Andrew Bettison
b17f5a6f63
Servald version string from git describe
2013-03-12 14:03:33 +10:30
Andrew Bettison
1d1f7a37a4
Fix Solaris SIGBUS bug in MDP ping
...
Also fixed non-portable (endian dependent) code
2013-03-07 14:54:40 +10:30
Andrew Bettison
8771d6181b
Merge branch 'naf2-logging' into 'development'
2013-03-01 17:32:57 +10:30
Andrew Bettison
ae787339ec
Improve "config dump" command
...
All STRUCT cf_fmt_config_xxx() functions omit invalid values, silently
if the invalid value is the default, otherwise with a non-CFOK return
value.
The "config dump --full" option includes all options with valid values,
otherwise omits options having default values.
2013-02-28 15:18:48 +10:30
Andrew Bettison
46eeacb823
Improve new "config dump" command
...
No more SEGV. Omits invalid (default) values. Logs unconditional DEBUG
output, to be removed before merging into development. Still missing
cf_cmp_ functions to prune out default values.
Improved config Object Model iterator logic to barf on internal NULL
nodes.
2013-02-27 16:26:07 +10:30