summaryrefslogtreecommitdiff
path: root/print-ppi.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-03-22 12:03:17 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-03-22 12:10:27 +0100
commitef53a557d738762c053c23f57001ab902388b0cc (patch)
tree0562a23446dc3c30fe769168a52b7dc079c15313 /print-ppi.c
parentad2b380c5bb34aa2c3268b783c01f0349d2c7c94 (diff)
downloadtcpdump-ef53a557d738762c053c23f57001ab902388b0cc.tar.gz
PPI: Add specification, update summary, add some comments
[skip ci]
Diffstat (limited to 'print-ppi.c')
-rw-r--r--print-ppi.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/print-ppi.c b/print-ppi.c
index fe85fa51..6d901a20 100644
--- a/print-ppi.c
+++ b/print-ppi.c
@@ -2,7 +2,12 @@
* Oracle
*/
-/* \summary: Oracle DLT_PPI printer */
+/* \summary: Per-Packet Information (DLT_PPI) printer */
+
+/* Specification:
+ * Per-Packet Information Header Specification - Version 1.0.7
+ * https://web.archive.org/web/20160328114748/http://www.cacetech.com/documents/PPI%20Header%20format%201.0.7.pdf
+ */
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -15,10 +20,12 @@
typedef struct ppi_header {
- nd_uint8_t ppi_ver;
- nd_uint8_t ppi_flags;
- nd_uint16_t ppi_len;
- nd_uint32_t ppi_dlt;
+ nd_uint8_t ppi_ver; /* Version. Currently 0 */
+ nd_uint8_t ppi_flags; /* Flags. */
+ nd_uint16_t ppi_len; /* Length of entire message, including
+ * this header and TLV payload. */
+ nd_uint32_t ppi_dlt; /* Data Link Type of the captured
+ * packet data. */
} ppi_header_t;
#define PPI_HDRLEN 8