public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
From: John Goerzen <jgoerzen@complete•org>
To: nncp-devel@lists.cypherpunks.ru
Subject: Questions on payload types & niceness
Date: Mon, 30 Oct 2023 17:07:00 -0500	[thread overview]
Message-ID: <87cywvix24.fsf@complete.org> (raw)

Hi Sergey,

I created a very simple test NNCP packet with:

echo payload | /usr/bin/nncp-exec -cfg nncp1.hjson nncp3 testcmd arg1 arg2

I've been working to decode NNCP packets in Rust.  I've observed a few
oddities:

The niceness in the outer header (encrypted packet header) is 96, while
in the inner plain header it is 224.

Also, the payload type is 3 rather than 2.  I wonder if the payload
types start at 1 instead of 0?

Another random question: why is the niceness in both the outer
(encrypted) and inner (plain) headers?  When might it be different
between them?  Which one do the NNCP tools respect?

Thanks!

- John

             reply	other threads:[~2023-10-30 22:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-30 22:07 John Goerzen [this message]
2023-10-31  8:25 ` Questions on payload types & niceness Sergey Matveev