5 $ nncp-pkt [options] < pkt
6 $ nncp-pkt [options] [-decompress] -dump < pkt > payload
10 Low level packet parser. Can be useful for debugging. There are two
11 types of packets: @ref{Plain, plain} and @ref{Encrypted, encrypted}. By
12 default it will print packet's header, for example:
15 Packet type: encrypted
17 Sender: 2WHBV3TPZHDOZGUJEH563ZEK7M33J4UESRFO4PDKWD5KZNPROABQ (self)
20 @option{-dump} option outputs plain packet's payload (if it is file
21 transmission, then it will be the file itself as an example). If it is
22 an encrypted packet, then it will be decrypted first, outputing the
23 included plain packet, that can be fed to @command{nncp-pkt} again:
27 Payload type: transitional
29 Path: VHMTRWDOXPLK7BR55ICZ5N32ZJUMRKZEMFNGGCEAXV66GG43PEBQ (name-of-node)
32 Payload type: exec compressed
34 Path: stargrave@@stargrave.org
37 @option{-decompress} option tries to zstd-decompress data from plain
38 packet (useful with @verb{|exec compressed|} types of packets).
40 @option{-overheads} options print encrypted, plain and size header overheads.
42 This command automatically determines if an encrypted packet belongs to
43 @ref{Multicast, multicast} area and will try to decrypt it with its