+++ /dev/null
-doc/install.texi
\ No newline at end of file
+++ /dev/null
-doc/news.texi
\ No newline at end of file
Online connection deadline of node inactivity in seconds. It is the time
connection considered dead after not receiving/sending any packets and
node must disconnect. By default it is set to 10 seconds -- that means
-that disconnecting after 10 seconds when no packets received and
-transmitted. This can be set to rather high values to keep connection
-alive (to reduce handshake overhead and delays), wait for appearing
-packets ready to send and notifying remote side about their appearance.
+disconnecting after 10 seconds when no packets received and transmitted.
+This can be set to rather high values to keep connection alive (to
+reduce handshake overhead and delays), wait for appearing packets ready
+to send and notifying remote side about their appearance.
@anchor{CfgMaxOnlineTime}
@item maxonlinetime
@multitable {XXXXX} {XXXX KiB} {link sign} {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
@headitem Version @tab Size @tab Tarball @tab SHA256 checksum
-@item 0.1 @tab 720 KiB
-@tab @url{download/nncp-0.1.tar.xz, link} @url{download/nncp-0.1.tar.xz.sig, sign}
-@tab @code{8F71D65B 70865EBF FE802CDF A5C14D00 A9FD6559 FD722E60 5D97E82C 5E2412C2}
+@item @ref{Release 0.4, 0.4} @tab 741 KiB
+@tab @url{download/nncp-0.4.tar.xz, link} @url{download/nncp-0.4.tar.xz.sig, sign}
+@tab @code{93577327 B3DEBFE3 A80BEB0D 8325B2E6 0939EC55 4DBB05F3 4CA34B99 229C3722}
-@item @ref{Release 0.2, 0.2} @tab 740 KiB
-@tab @url{download/nncp-0.2.tar.xz, link} @url{download/nncp-0.2.tar.xz.sig, sign}
-@tab @code{00BEAC5A 0C4083B0 42E3152B ACA6FF20 12768B82 CE24D716 8E04279C ECE14DB7}
@item @ref{Release 0.3, 0.3} @tab 741 KiB
@tab @url{download/nncp-0.3.tar.xz, link} @url{download/nncp-0.3.tar.xz.sig, sign}
@tab @code{6E76EC5E 6B575C65 BF2D6388 870F2A1C 417D63E4 1628CAA1 BB499D0D 0634473B}
+@item @ref{Release 0.2, 0.2} @tab 740 KiB
+@tab @url{download/nncp-0.2.tar.xz, link} @url{download/nncp-0.2.tar.xz.sig, sign}
+@tab @code{00BEAC5A 0C4083B0 42E3152B ACA6FF20 12768B82 CE24D716 8E04279C ECE14DB7}
+
+@item 0.1 @tab 720 KiB
+@tab @url{download/nncp-0.1.tar.xz, link} @url{download/nncp-0.1.tar.xz.sig, sign}
+@tab @code{8F71D65B 70865EBF FE802CDF A5C14D00 A9FD6559 FD722E60 5D97E82C 5E2412C2}
+
@end multitable
@itemize
-@item This website @ref{Contacts, alternates} and maillist containing
-public key fingerprint.
-
@item
@verbatim
% gpg --keyserver hkp://keys.gnupg.net/ --recv-keys 0x2B25868E75A1A953
@node News
@unnumbered News
+@node Release 0.5
+@section Release 0.5
+@itemize
+@item Trivial small fix in default niceness level of @command{nncp-file}
+and @command{nncp-freq} commands.
+@end itemize
+
+@node Release 0.4
+@section Release 0.4
+@itemize
+@item Small fix in @command{nncp-call}, @command{nncp-caller},
+@command{nncp-daemon}: they can segmentation fail sometimes (no data is
+lost).
+@item @command{nncp-newnode} renamed to @command{nncp-newcfg} -- it is
+shorter and more convenient to use.
+@item @command{nncp-mincfg} command appeared: helper allowing to create
+minimalistic stripped down configuration files without private keys,
+that is useful during @command{nncp-xfer} usage.
+@end itemize
+
+@node Release 0.3
+@section Release 0.3
+Fixed compatibility with Go 1.6.
+
@node Release 0.2
@section Release 0.2
@itemize
anymore.
@item @option{-minsize} option gives ability to automatically pad
outgoing packets to specified minimal size.
-@item @ref{nncp-daemon} and @ref{nncp-call}/@ref{nncp-caller} always
-check new @emph{tx} packets appearance in the background while
-connected. Remote side is immediately notified.
+@item @command{nncp-daemon} and
+@command{nncp-call}/@command{nncp-caller} always check new @emph{tx}
+packets appearance in the background while connected. Remote side is
+immediately notified.
@item @option{-onlinedeadline} option gives ability to configure timeout
of inactivity of online connection, when it could be disconnected. It
could be used to keep connection alive for a long time.
@item @option{-maxonlinetime} option gives ability to set maximal
allowable online connection aliveness time.
-@item @ref{nncp-caller} command appeared: cron-ed TCP daemon caller.
-@item @ref{nncp-pkt} command can decompress the data.
-@end itemize
-
-@node Release 0.3
-@section Release 0.3
-Fixed compatibility with Go 1.6.
-
-@node Release 0.4
-@section Release 0.4
-@itemize
-@item Small fix in @ref{nncp-call}, @ref{nncp-caller},
-@ref{nncp-daemon}: they can segmentation fail sometimes (no data is lost).
-@item @command{nncp-newnode} renamed to @ref{nncp-newcfg} -- it is
-shorter and more convenient to use.
-@item @ref{nncp-mincfg} command appeared: helper allowing to create
-minimalistic stripped down configuration files without private keys,
-that is useful during @ref{nncp-xfer} usage.
+@item @command{nncp-caller} command appeared: cron-ed TCP daemon caller.
+@item @command{nncp-pkt} command can decompress the data.
@end itemize
@url{http://www.nncpgo.org/}.
EOF
make -C doc
-rm -r doc/.well-known doc/nncp.html/.well-known
+./news_and_install.sh
+rm -r doc/.well-known doc/nncp.html/.well-known news_and_install.sh
find . -name .git -type d | xargs rm -fr
find . -name .gitignore -delete
--- /dev/null
+#!/bin/sh
+
+texi=`mktemp`
+cat > $texi <<EOF
+\input texinfo
+@documentencoding UTF-8
+@settitle NEWS
+
+`cat doc/news.texi`
+
+@bye
+EOF
+makeinfo --plaintext -o NEWS $texi
+rm -f $texi
+
+texi=$(TMPDIR=doc mktemp)
+cat > $texi <<EOF
+\input texinfo
+@documentencoding UTF-8
+@settitle INSTALL
+
+@include install.texi
+
+@bye
+EOF
+makeinfo --plaintext -o INSTALL $texi
+rm -f $texi
# $FreeBSD$
PORTNAME= nncp
-PORTVERSION= 0.4
+PORTVERSION= 0.5
CATEGORIES= net
MASTER_SITES= http://www.nncpgo.org/download/ \
http://sourceforge.net/projects/nncp/files/
func main() {
var (
cfgPath = flag.String("cfg", nncp.DefaultCfgPath, "Path to configuration file")
- niceRaw = flag.Int("nice", nncp.DefaultNiceMail, "Outbound packet niceness")
+ niceRaw = flag.Int("nice", nncp.DefaultNiceFile, "Outbound packet niceness")
minSize = flag.Uint64("minsize", 0, "Minimal required resulting packet size")
quiet = flag.Bool("quiet", false, "Print only errors")
debug = flag.Bool("debug", false, "Print debug messages")
func main() {
var (
cfgPath = flag.String("cfg", nncp.DefaultCfgPath, "Path to configuration file")
- niceRaw = flag.Int("nice", nncp.DefaultNiceMail, "Outbound packet niceness")
+ niceRaw = flag.Int("nice", nncp.DefaultNiceFreq, "Outbound packet niceness")
minSize = flag.Uint64("minsize", 0, "Minimal required resulting packet size")
quiet = flag.Bool("quiet", false, "Print only errors")
debug = flag.Bool("debug", false, "Print debug messages")
MaxPathSize = 1<<8 - 1
DefaultNiceMail = 64
- DefaultNiceFreq = 196
+ DefaultNiceFreq = 64
DefaultNiceFile = 196
)
case PktTypeFile:
dst := string(pkt.Path[:int(pkt.PathLen)])
sds := SdsAdd(sds, SDS{"type": "file", "dst": dst})
+ if filepath.IsAbs(dst) {
+ ctx.LogE("rx", sds, "non-relative destination path")
+ isBad = true
+ goto Closing
+ }
incoming := ctx.Neigh[*job.PktEnc.Sender].Incoming
if incoming == nil {
ctx.LogE("rx", sds, "incoming is not allowed")
}
case PktTypeFreq:
src := string(pkt.Path[:int(pkt.PathLen)])
+ if filepath.IsAbs(src) {
+ ctx.LogE("rx", sds, "non-relative source path")
+ isBad = true
+ goto Closing
+ }
sds := SdsAdd(sds, SDS{"type": "freq", "src": src})
dstRaw, err := ioutil.ReadAll(pipeR)
if err != nil {