summaryrefslogtreecommitdiffstats
path: root/src/shared/protocol.h
Commit message (Collapse)AuthorAgeFilesLines
* [BUILD] rewrite CMake build system to track changes of source filesManuel Bentele2020-10-161-157/+0Star
| | | | | | | | | | This change restructures the source code directories, separates shared form non-shared application code and adds CMake dependencies. These dependencies allow the tracking of changes and trigger a rebuild of those build targets where changed files are involved. WARNING: Note that the support of the DNBD3_SERVER_AFL build option is not supported yet. Thus, the option should be never turned on.
* [SHARED] Fix 16 byte information leakage in select image messageSimon Rettberg2020-06-301-2/+0Star
|
* [SERVER] Fix compiler warningsSimon Rettberg2019-09-021-1/+1
|
* [SERVER] Add pretendClient config optionSimon Rettberg2019-07-231-1/+1
| | | | | | This makes the server not set the FLAGS8_SERVER flag when establishing an uplink connection. Useful mostly for running a proxy on localhost for local caching.
* [SERVER] Only set BGR flag in handshake for BGR_FULLSimon Rettberg2018-11-161-1/+1
| | | | | | | _backgroundReplication was still treated as a boolean flag, so a server with BGR_NONE would reject a server with BGR_HASHBLOCK. While this still forces the BGR_NONE proxy to replicate more than it normally would, it seems reasonable to allow this.
* [SHARED] Reset errnoSimon Rettberg2018-04-051-0/+2
|
* [SERVER] Support finer control over replication when a proxy connects to a proxySimon Rettberg2017-11-021-0/+6
| | | | | | | Introduce new flag in "select image" message to tell the uplink server whether we have background replication enabled or not. Also reject a connecting proxy if the connecting proxy uses BGR but we don't, as this would basically force the image to be replicated locally too.
* [SERVER] Fix types or add explicit casts everywhere we might have type ↵Simon Rettberg2017-10-241-2/+2
| | | | conversion problems
* [*] Support hop-counting in request header, protocol version 3Simon Rettberg2017-10-171-1/+7
| | | | | | | | | | | | | | We steal 8 bits from the request offset to count hops when requests get relayed by proxies. This still leaves plenty of bits for the offset (56 bits, supporting images of up to 72 petabytes). This is used to detect proxy cycles. The algorithm is not perfect but should prevent endless relays of the same request. This is backwards compatible to old clients and servers, as the server only ever sets the hopcount in relayed requests if the upstream server is using protocol version 3 or newer, and clients are automatically upwards compatible as there is practically no image larger than 74PB, so the newly introduced hop count field is always 0 even in requests from old clients.
* [SERVER] Fix formattingSimon Rettberg2016-03-221-1/+1
|
* dnbd3server build success on freebsd :)Sebastian2016-02-111-3/+6
|
* [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1Simon Rettberg2016-02-011-2/+2
| | | | | | | | | | This was a wrong decision made long time ago, and it's broken in certain scenarios (eg. two servers serving from same NFS mount). Also it's of limited use anyways since it only supportes ASCII and would ignore umlauts, so blöd and BLÖD would still be considered two different images. So if you relied on this "feature" in any way, be careful when updating.
* [FUSE] Stability improvements, runs for longer than a couple secs now :)Simon Rettberg2015-12-011-23/+17Star
|
* [FUSE] It works! Kinda...Simon Rettberg2015-11-301-2/+12
|
* [FUSE] Start refactoring so we can handle multithread fuseSimon Rettberg2015-11-211-0/+138