4 See also this page @ref{Новости, on russian}.
11 Experimental @code{kqueue} and @code{inotify} based notifications
12 support about spool directory changes, for reducing their often reading
18 @section Release 7.6.0
22 Logging may be done to specified opened file descriptor
23 (@env{$NNCPLOG=FD:5} for example).
24 That is friendly to use under @command{daemontools}.
27 Added additional checks of public keys existence in configuration file,
28 preventing some commands from failing.
33 @section Release 7.5.1
37 NNCP builds on NetBSD.
42 @section Release 7.5.0
46 @command{nncp-daemon} is compatible with UCSPI-TCP interface, so log
47 will contain remote side's address (when running under appropriate
48 utility). @option{-ucspi} option should be used instead of @option{-inetd}.
51 @command{nncp-call} can be UCSPI-TCP client, using @option{-ucspi} option.
54 Do not exit if some of MCD network interfaces can not be listened --
60 @section Release 7.4.0
64 Fixed simultaneous @command{nncp-daemon} and @command{nncp-caller} MCD work.
69 @section Release 7.3.2
73 @command{hjson-cli} utility builds in vendor-mode now.
78 @section Release 7.3.1
82 Fixed possibly left opened file descriptor in online commands.
85 Severely decreased memory usage of MTH hashing.
90 @section Release 7.3.0
94 Fixed some workability problems on 32-bit systems with big files.
97 Ability to use directory with a bunch of files as a configuration.
98 @command{nncp-cfgdir} command appeared.
103 @section Release 7.2.1
107 Small optimizations in online commands.
112 @section Release 7.2.0
116 @command{nncp-trns} command appeared for manual transition packets creation.
119 If destination node of transitional packet has non empty @option{via}
120 route, then do not ignore, but use it.
123 Do not relay multicast packet to area message's originator, that
124 obviously has seen its own packet.
127 Much less memory usage during MTH hashing when offset is zero: when
128 packet is not resumed, but for example checked with @command{nncp-check}
134 @section Release 7.1.1
138 Fixed failing directories fsync after @file{.seen} file creation.
143 @section Release 7.1.0
147 Multicasting areas feature appeared. Implemented merely by an additional
148 plain packet type with @command{nncp-toss}, @command{nncp-file} and
149 @command{nncp-exec} commands modification.
152 Fixed workability of @command{nncp-file} and @command{nncp-exec}
153 commands, that use temporary file (stdin and @option{-use-tmp}).
156 Fixed disappearing bad return code in @command{nncp-exec} command.
159 Fixed invalid @file{.hdr} generation when transitional packets are used.
162 @option{-all} option appeared in @command{nncp-rm} command, applying to
163 all the nodes at once.
166 @option{-cycle} option appeared in @command{nncp-check} command, looping
167 the check in infinite cycle.
170 @command{nncp-rm} command can take node alias name.
173 @command{nncp-pkt} can parse @file{.hdr} files.
178 @section Release 7.0.0
182 Minimal required Go version 1.13.
185 Merkle Tree-based Hashing with BLAKE3 (MTH) is used instead of BLAKE2b.
186 Because of that, there are backward @strong{incompatible} changes of
187 encrypted files (everything laying in the spool directory) and
188 @file{.meta} files of chunked transfer.
190 Current implementation is far from being optimal: it lacks
191 parallelizable calculations and has higher memory consumption: nearly
192 512 KiB for each 1 GiB of file's data. Future performance and memory
193 size optimizations should not lead to packet's format change. But it is
194 still several times faster than BLAKE2b.
197 Resumed online downloads, because of MTH, require reading only of the
198 preceding part of file, not the whole one as was before.
201 @command{nncp-hash} utility appeared for calculating file's MTH hash.
204 BLAKE2 KDF and XOF functions are replaced with BLAKE3 in encrypted
205 packets. Lowering number of used primitives. Also, its encrypted
206 packet's header is used as an associated data during encryption.
209 MultiCast Discovery uses
210 @verb{|ff02::4e4e:4350|} address instead of @verb{|ff02::1|}.
213 @command{nncp-cfgenc} mistakenly asked passphrase three times during encryption.
216 @command{nncp-stat} reports about partly downloaded packets.
219 Updated dependencies.
224 @section Release 6.6.0
228 @command{nncp-daemon}, @command{nncp-call} and @command{nncp-caller}
229 commands wait for all background checksummers completion after
230 connection is finished.
233 Added possibility of address determining through multicast announcement
234 in local area network, so called MCD (MultiCast Discovery).
239 @section Release 6.5.0
243 Fixed segfault in @command{nncp-daemon} when SP handshake did not succeed.
246 Fixed possible bad return code ignoring in automatic tosser.
249 Fixed race during file descriptors closing when online protocol call is
250 finished, that could lead to write error of received packet fragment.
253 Kill all packet transmission progress bars in @command{nncp-daemon},
254 @command{nncp-call} and @command{nncp-caller} when call is finished.
259 @section Release 6.4.0
263 Fixed possible race in online protocol, that lead to panic.
268 @section Release 6.3.0
272 Fixed possible panic while showing progress during online protocol.
277 @section Release 6.2.1
281 Three places in logs contained excess @code{%s}.
286 @section Release 6.2.0
290 Returned @command{nncp-caller}'s @option{-autotoss*} options workability.
293 Yet another logging refactoring and simplification.
294 Should be no visible differences to the end user.
299 @section Release 6.1.0
303 Optimization: most commands do not keep opened file descriptors now.
304 Previously you can exceed maximal number of opened files if you have got
305 many packets in the spool directory.
308 Optimization: do not close file descriptor of the file we download
309 online. Previously each chunk lead to expensive open/close calls.
312 Online downloaded files are saved with @file{.nock} (non-checksummed)
313 suffix, waiting either for @command{nncp-check}, or online daemons to
314 perform integrity check.
317 Optimization: files, that are not resumed, are checksummed immediately
318 during the online download, skipping @file{.nock}-intermediate step.
321 Ability to store encrypted packet's header in @file{.hdr} file, close to
322 the packet itself. That can greatly increase performance of packets
323 listing on filesystems with big block's size.
328 @section Release 6.0.0
332 Log uses human readable and easy machine parseable
333 @url{https://www.gnu.org/software/recutils/, recfile} format for the
334 records, instead of structured RFC 3339 lines. Old logs are not readable
335 by @command{nncp-log} anymore.
338 @option{-autotoss*} option workability with @command{nncp-daemon}'s
339 @option{-inetd} mode.
342 Call's @option{when-tx-exists} allows to make a call only when outbound
343 packets exists. Combined with seconds-aware cron expression that can be
344 used as some kind of auto dialler.
347 @command{nncp-cronexpr} command allows you to check validity and
348 expectations of specified cron expression.
353 @section Release 5.6.0
357 @option{-autotoss*} option runs tosser not after the call, but every
358 second while it is active.
361 @option{autotoss}, @option{autotoss-doseen},
362 @option{autotoss-nofile}, @option{autotoss-nofreq},
363 @option{autotoss-noexec}, @option{autotoss-notrns} options available in
364 @option{calls} configuration section. You can configure per-call
365 automatic tosser options.
368 Use vendoring, instead of @env{$GOPATH} overriding during tarball
369 installation, because current minimal Go's version is 1.12 and it
375 @section Release 5.5.1
379 Respect for @env{$BINDIR}, @env{$INFODIR} and @env{$DOCDIR} environment
380 variables in @file{config} during installation.
385 @section Release 5.5.0
389 Bugfixes in @command{nncp-call(er)}/@command{nncp-daemon},
390 @command{nncp-bundle} and @command{nncp-stat}.
393 @command{nncp-rm} has @option{-dryrun} and @option{-older} options now.
396 @command{nncp-exec} has @option{-use-tmp} and @option{-nocompress}
397 options now. Uncompressed packets are not compatible with previous NNCP
401 @command{nncp-call}, @command{nncp-caller} and @command{nncp-daemon} commands
402 have @option{-autotoss*} options for running tosser after call is ended.
405 Updated dependencies. Minimal required Go version is 1.12.
410 @section Release 5.4.1
414 Fixed @code{SENDMAIL} variable usage during the build.
419 @section Release 5.4.0
423 Updated dependencies.
426 Build system is moved from Makefiles to @url{http://cr.yp.to/redo.html, redo}.
427 This should not influence package maintainers, because minimal @command{redo}
428 implementation is included in tarball.
433 @section Release 5.3.3
437 More various error checks.
440 Updated dependencies.
445 @section Release 5.3.2
449 Fixed incorrect logic of @option{onlinedeadline} timeout, where
450 connection won't take into account incoming packets events and will
451 forcefully disconnect.
456 @section Release 5.3.1
460 Fixed @option{onlinedeadline} workability with call addresses that use
461 external commands (@verb{#"|somecmd"#}).
464 @command{nncp-stat} has @option{-pkt} option displaying information
465 about each packet in the spool.
470 @section Release 5.3.0
474 Progress messages contain prefix, describing the running action.
477 Fixed not occurring handshake messages padding.
480 Finish all SP protocol related goroutines, less memory leak.
483 SP protocol generates less socket write calls, thus generating less TCP
487 Check @option{onlinedeadline} and @option{maxonlinetime} options every
488 second, independently from socket reads (up to 10 seconds).
491 Once per minute, if no other traffic exists, PING packets are sent in
492 SP-connection. That allows faster determining of connection unworkability.
495 @command{nncp-toss} uses lock-file to prevent simultaneous tossing.
500 @section Release 5.2.1
504 Fixed SP protocol error handling, sometimes causing program panic.
509 @section Release 5.2.0
513 Most commands by default show oneline operations progress.
514 @option{-progress}, @option{-noprogress} command line options,
515 @option{noprogress} configuration file option appeared.
518 Fixed incorrect @command{nncp-check} command return code, that returned
519 bad code when everything is good.
522 Free disk space check during @command{nncp-bundle -rx} call.
527 @section Release 5.1.2
531 @strong{Critical} vulnerability: remote peers authentication could lead
532 to incorrect identification of remote side, allowing foreign encrypted
536 Bugfix: private and public Noise keys were swapped in newly created
537 configuration files, that lead to inability to authenticate online peers.
540 Explicit directories fsync-ing for guaranteed files renaming.
545 @section Release 5.1.1
549 Fixed workability of @command{nncp-file} with @option{-chunked 0} option.
554 @section Release 5.1.0
558 @command{nncp-file} can send directories, automatically creating pax
562 Free disk space is checked during outbound packets creation.
565 @option{freq}, @option{freqminsize}, @option{freqchunked} configuration
566 file options replaced with the structure:
567 @option{freq: @{path: @dots{}, minsize: @dots{}, chunked: @dots{}@}}.
570 Added @option{freq.maxsize} configuration file option, forbidding of
571 freq sending larger than specified size.
574 Ability to notify about successfully executed commands (exec) with
575 @option{notify.exec} configuration file option.
580 @section Release 5.0.0
584 @strong{Incompatible} configuration file format change: YAML is
585 replaced with Hjson, due to its simplicity, without noticeable lack
586 of either functionality or convenience.
589 @strong{Incompatible} plain packet format changes. Older versions are
590 not supported. @code{zlib} compression is replaced with
591 @code{Zstandard}, due to its speed and efficiency, despite library
592 version is not mature enough.
595 Ability to call remote nodes via pipe call of external command, not only
599 @command{nncp-cfgnew} generates configuration file with many
600 comments. @option{-nocomments} option can be used for an old
604 Duplicate filenames have @file{.CTR} suffix, instead of @file{CTR}, to
605 avoid possible collisions with @file{.nncp.chunkCTR}.
608 Ability to override process umask through configuration file option.
611 Files and directories are created with 666/777 permissions by default,
612 allowing control with @command{umask}.
615 Updated dependencies.
618 Full usage of go modules for dependencies management
619 (@code{go.cypherpunks.ru/nncp/v5} namespace is used).
622 Forbid any later GNU GPL version autousage
623 (project's licence now is GNU GPLv3-only).
630 @item Workability on GNU/Linux systems and Go 1.10 is fixed.
638 @strong{Incompatible} encrypted and eblob packet format change: AEAD
639 encryption mode with 128 KiB blocks is used now, because previously
640 @command{nncp-toss} did not verify encrypted packet's MAC before feeding
641 decrypted data to external command. Older versions are not supported.
644 Available free space checking before copying in @command{nncp-xfer},
645 @command{nncp-daemon}, @command{nncp-call(er)}.
648 @command{nncp-call} has ability only to list packets on remote node,
649 without their transmission.
652 @command{nncp-call} has ability to transfer only specified packets.
655 Workability of @option{xxrate} preference in @option{calls}
656 configuration file section.
659 Dependant libraries are updated.
665 Begin using of @code{go.mod} subsystem.
672 @item @command{nncp-daemon} can be run as @command{inetd}-service.
680 @command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller} check
681 if @file{.seen} exists and treat it like file was already downloaded.
682 Possibly it was transferred out-of-bound and remote side needs to be
686 If higher priority packet is spooled, then @command{nncp-daemon} will
687 queue its sending first, interrupting lower priority transmissions.
690 Simple packet rate limiter added to online-related tools
691 (@command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller}).
694 Ability to specify niceness with symbolic notation:
695 @verb{|NORMAL|}, @verb{|BULK+10|}, @verb{|PRIORITY-5|}, etc.
698 Changed default niceness levels:
699 for @command{nncp-exec} from 64 to 96,
700 for @command{nncp-freq} from 64 to 160,
701 for @command{nncp-file} from 196 to 224.
709 @strong{Incompatible} @emph{bundle} archive format changes and
710 @command{nncp-bundle} workability with Go 1.10+. Bundles must be
711 valid tar archives, but Go 1.9 made them invalid because of long paths
712 inside. NNCP accidentally was dependant on that bug. Explicit adding of
713 @file{NNCP/} directory in archive restores workability with valid tar
721 Ability to disable relaying at all using @verb{|-via -|} command line option.
729 @strong{Incompatible} plain packet format changes. Older versions are
733 Ability to queue remote command execution, by configuring @option{exec}
734 option in configuration file and using @command{nncp-exec} command:
737 @command{nncp-mail} command is replaced with more flexible
738 @command{nncp-exec}. Instead of @verb{|nncp-mail NODE RECIPIENT|}
739 you must use @verb{|nncp-exec NODE sendmail RECIPIENT|}.
741 @option{sendmail} configuration file option is replaced with
742 @option{exec}. @verb{|sendmail: [...]|} must be replaced with
743 @verb{|exec: sendmail: [...]|}.
747 Ability to override @option{via} configuration option for destination
748 node via @option{-via} command line option for following commands:
749 @command{nncp-file}, @command{nncp-freq}, @command{nncp-exec}.
752 Chunked files, having size less than specified chunk size, will be sent
753 as an ordinary single file.
756 Exec commands are invoked with additional @env{$NNCP_NICE} and
757 @env{$NNCP_SELF} environment variables.
760 Files, that are sent as a reply to freq, have niceness level taken from
761 the freq packet. You can set desired niceness during @command{nncp-freq}
762 invocation using @option{-replynice} option.
765 @command{nncp-toss} command can ignore specified packet types during
766 processing: @option{-nofile}, @option{-nofreq}, @option{-noexec},
770 @command{nncp-file} command uses
771 @option{FreqMinSize}/@option{FreqChunked} configuration file options
772 for @option{-minsize}/@option{-chunked} by default. You can turn this
773 off by specifying zero value.
782 @strong{Incompatible} encrypted/eblob packet format changes. Older
783 versions are not supported.
786 Twofish encryption algorithm is replaced with ChaCha20. It is much more
787 faster. One cryptographic primitive less.
790 HKDF-BLAKE2b-256 KDF algorithm is replaced with BLAKE2Xb XOF. Yet
791 another cryptographic primitive less (assuming that BLAKE2X is nearly
792 identical to BLAKE2).
801 @strong{Incompatible} encrypted packet format changes. Older versions
805 @command{nncp-bundle} command can either create stream of encrypted
806 packets, or digest it. It is useful when dealing with
807 @code{stdin}/@code{stdout} based transmission methods (like writing to
808 CD-ROM without intermediate prepared ISO image and working with tape
812 @command{nncp-toss} is able to create @file{.seen} files preventing
813 duplicate packets receiving.
816 Single background checksum verifier worker is allowed in
817 @command{nncp-call}. This is helpful when thousands of small inbound
818 packets could create many goroutines.
821 Ability to override path to spool directory and logfile through either
822 command line argument, or environment variable.
825 @command{nncp-rm} is able to delete outbound/inbound, @file{.seen},
826 @file{.part}, @file{.lock} and temporary files.
831 @section Release 0.12
833 @item Sendmail command is called with @env{$NNCP_SENDER} environment variable.
837 @section Release 0.11
839 @item @command{nncp-stat}'s command output is sorted by node name.
843 @section Release 0.10
846 @command{nncp-freq}'s @file{DST} argument is optional now. Last
847 @file{SRC} path's element will be used by default.
854 Fix @option{-rx}/@option{-tx} arguments processing in
855 @command{nncp-call} command. They were ignored.
862 Little bugfix in @command{nncp-file} command, where @option{-minsize}
863 option for unchunked transfer was not in KiBs, but in bytes.
871 Ability to feed @command{nncp-file} from @code{stdin}, that uses an
872 encrypted temporary file for that.
875 Chunked files transmission appeared with corresponding
876 @command{nncp-reass} command and @option{freqchunked} configuration file
877 entry. Useful for transferring big files over small storage devices.
880 @option{freqminsize} configuration file option, analogue to
881 @option{-minsize} one.
884 @command{nncp-xfer}'s @option{-force} option is renamed to
885 @option{-mkdir} for clarity.
888 @option{-minsize} option is specified in KiBs, not bytes, for
892 @command{nncp-newcfg} command is renamed to @command{nncp-cfgnew},
893 and @command{nncp-mincfg} to @command{nncp-cfgmin} -- now they have
894 common prefix and are grouped together for convenience.
897 @command{nncp-cfgenc} command appeared, allowing configuration file
898 encryption/decryption, for keeping it safe without any either OpenPGP or
902 Cryptographic libraries (dependencies) are updated.
909 @item Small @command{nncp-rm} command appeared.
910 @item Cryptographic libraries (dependencies) are updated.
917 Trivial small fix in default niceness level of @command{nncp-file}
918 and @command{nncp-freq} commands.
926 Small fix in @command{nncp-call}, @command{nncp-caller},
927 @command{nncp-daemon}: they can segmentation fail sometimes (no data is
931 @command{nncp-newnode} renamed to @command{nncp-newcfg} -- it is shorter
932 and more convenient to use.
935 @command{nncp-mincfg} command appeared: helper allowing to create
936 minimalistic stripped down configuration file without private keys, that
937 is useful during @command{nncp-xfer} usage.
944 @item Fixed compatibility with Go 1.6.
952 @strong{Incompatible} packet's format change (magic number is changed
953 too): size field is encrypted and is not send in plaintext anymore.
956 @option{-minsize} option gives ability to automatically pad outgoing
957 packets to specified minimal size.
960 @command{nncp-daemon} and @command{nncp-call}/@command{nncp-caller}
961 always check new @emph{tx} packets appearance in the background while
962 connected. Remote side is immediately notified.
965 @option{-onlinedeadline} option gives ability to configure timeout of
966 inactivity of online connection, when it could be disconnected. It could
967 be used to keep connection alive for a long time.
970 @option{-maxonlinetime} option gives ability to set maximal allowable
971 online connection aliveness time.
974 @command{nncp-caller} command appeared: cron-ed TCP daemon caller.
977 @command{nncp-pkt} command can decompress the data.