systemd-resolve: allow whole packets to be dumped in binary form

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-02-16 19:55:50 -05:00
parent 2e74028a5c
commit dab48ea63a
2 changed files with 80 additions and 39 deletions
+10
View File
@@ -232,6 +232,16 @@
logic is disabled.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--raw</option><optional>=payload|packet</optional></term>
<listitem><para>Dump the answer as binary data. If there is no argument or if the argument is
<literal>payload</literal>, the payload of the packet is exported. If the argument is
<literal>packet</literal>, the whole packet is dumped in wire format, prefixed by
length specified as a little-endian 64-bit number. This format allows multiple packets
to be dumped and unambigously parsed.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--legend=</option><replaceable>BOOL</replaceable></term>