aboutsummaryrefslogtreecommitdiff
path: root/src/data
AgeCommit message (Collapse)Author
2021-08-31MIT LicenseDavid Timber
2021-08-16Protocol change: change hostinfo uptime ...David Timber
* Change hostinfo parent_uptime and child_uptime to uint32_t (138 years is a long time)
2021-08-09Impl proone-htbtclient txtrec mode ...David Timber
* Relocate /src/data/proto/txtrec-*.sh to /src
2021-08-09Protocol and build system change ...David Timber
* Use autoheader * Add --enable-minmem * Add OS code. Bin archive and protocol changed accordingly * Add instance flags in hostinfo frame. Bitfield util added for this * Add org_id in hostinfo for lineage record * SQL schema change: store integer value of hostinfo arch and os * Remove config.c * prne_index_nybin() now sets errno * Instance ids are now preserved for lineage record * Proone: remove arguments after init * Fix bug in prne_htbt_ser_bin_meta(): alloc_len is not checked
2021-07-21Impl proone-htbtclient upbin, bug fixes ...David Timber
* Add prne_start_bin_rcb_compat() * PRNE_HTBT_OP_NY_BIN -> PRNE_HTBT_OP_UP_BIN. "nybin" is now the name of the file format * htbt * Fix broken hover redirection (HTBT_LMK_HOVER removed) * HTBT_MAIN_REQ_Q_SIZE * Impl PRNE_HTBT_OP_NOOP response * Fix PRNE_HTBT_OP_SOLICIT is always sent with id 1 * proone * Fix bugs caused by not scrubbing the shared global memory * Fix exec() fail when upbin request with args * Removed do_recombination() as it's not efficient. Now the authoritive end has to do the recombination * PRNE_HTBT_OP_RCB, PRNE_HTBT_STATUS_SUB reserved for future impl
2021-04-26Tweak and bug fixDavid Timber
* Increase socket operation timeout of htbt and resolv * htbt: use of term "jitter" * htbt: Fix bug where debug print is not suppresses when `PRNE_VERBOSE < PRNE_VL_DBG0` * Fix crash bug caused by SIGPIPE * Proone: `sleep(1)` when fork fails
2021-04-09Impl hostinfod, htbtDavid Timber
* htbt: Call `htbt_cncp_do_probe()` right after start * hostinfod: impl DB thread
2021-04-09Impl hostinfod, bug fix and moreDavid Timber
* Merge /src/data/sql/hi-create.sql and /src/data/sql/hi-view.sql * Fix false failure when allocation size is zero * Add "FIXME" comment where it is not clear whether zero size is normal case. * Fix typo in /src/proone-bne.c * "proone-htbthost": always verify ALPN * Fix crash bug in `prne_htbt_dser_host_info()`
2020-11-01Add txtrec-del.sh, rename proto-test -> protoDavid Timber
2020-10-25Impl proone-hostinfod yaml config ...David Timber
* Add proper sample host_cred data in src/data/proto-test/hostinfo_rsp * Fix typo in configure.ac
2020-10-20Impl hostinfod and extras ...David Timber
* Use EOVERFLOW instead of E2BIG * Add prne_iobuf_zero() * Fix format check logic error in prne_htbt_ser_msg_head() * Add prne_dup_str() * Add prne_timespec_ms()
2020-09-18* Impl: bneDavid Timber
* Add prne_index_nybin()
2020-09-14* Add "--enable-static" configure optionDavid Timber
* Change "PRNE_DEBUG" macro use * Add "PRNE_VERBOSE" * Impl "recon" * Add "inet.h" for Internet Protocol stuff * Changes regarding "PRNE_RND_WELL512_SEEDLEN" * Add prne_own_realloc() for objects with multiple array memebers * Add prne_add_timespec()
2020-09-08* Remove proone-unpackDavid Timber
* self test is done by proone-pack * Impl: htbt@proone * htbt: allocate large buffer first by deault * htbt: use 0600 for NY_BIN as the image is not an executable * pack: return error when z_stream is cut short * proone-pack: impl "nybin" file format
2020-09-03* Impl: CNCPDavid Timber
* [htbt] Use randomly generated number for SOLICIT request * Die on pth sync funcs only if debug build * Fix wrong use of pth_mutex_acquire(): use with event can result in failure * [htbt] Take "blackhole" fd as param * Remove unused include to reduce compile time * [htbt] Add const macro values for random msg_id gen * [resolv] Make prne_resolv_prm_t reusable * [resolv] Fix mem leak in proone-resolv * [resolv] Sanity check before returning prm so users don't have to worry about SEGFAULT * Add txtrec-*.sh for CNCP
2020-09-02Impl: PRNE_HTBT_OP_HOVERDavid Timber
2020-08-31Impl: NY_BINDavid Timber
2020-08-31Impl run_binDavid Timber
2020-08-30* Impl run_cmdDavid Timber
* Add prne_htbt_hover_t * Add run_cmd test data