dissect-wireshark: recognize CanBePrefix, HopLimit, Parameters
refs #4517
Change-Id: I9ea61a070286bbc460ff7f64fb66092a891dcadb
diff --git a/tests/dissect-wireshark/README.md b/tests/dissect-wireshark/README.md
index df3a906..7933e6d 100644
--- a/tests/dissect-wireshark/README.md
+++ b/tests/dissect-wireshark/README.md
@@ -140,3 +140,16 @@
- the dissection results include Fragment (Interest/Data), Sequence (number), FragIndex (number),
FragCount (number), Nack (various reasons), NextHopFaceId, IncomingFaceId, CachingPolicy, and
unknown fields
+
+### 11. NDN Packet Format v0.3
+
+Trace file: `packet03.pcap`
+
+Trace summary: Hand-crafted packets in NDN Packet Format v0.3
+(`xxd -p -r < packet03.hex > packet03.pcap`).
+All packets are valid and do not contain unrecognized TLV elements.
+
+Expected results of the dissection:
+- Packet 1 is recognized as "Interest" type, and has "CanBePrefix: Yes", "MustBeFresh: Yes",
+ "HopLimit: 214", and "Parameters" field.
+- Packet 3 is recognized as "Data" type.
diff --git a/tests/dissect-wireshark/packet03.hex b/tests/dissect-wireshark/packet03.hex
new file mode 100644
index 0000000..da0d7e4
--- /dev/null
+++ b/tests/dissect-wireshark/packet03.hex
@@ -0,0 +1,52 @@
+A1B2C3D4
+00020004
+00000000
+00000000
+00010000
+00000001
+
+00000000
+00000000
+00000039
+00000039
+
+01005E0017AA
+000000000000
+8624
+
+0529
+0703080149
+2100
+1200
+1E0B 1F09 1E023E15 0703080148
+0A044ACB1E4C
+0C0276A1
+2201D6
+2304C0C1C2C3
+
+00000000
+00000000
+00000050
+00000050
+
+01005E0017AA
+000000000000
+8624
+
+0540
+0738 020141 070142 080143 FC0144 FD01000145 FDFFFF0145 0120EE357C5791DCAA4494D9B301047B875D8833CAA76DADA3E95837BBC3EAF7B300
+0A044ACB1E4C
+
+00000000
+00000000
+00000039
+00000039
+
+01005E0017AA
+000000000000
+8624
+
+0629
+0700
+16031B0100
+1720612A79399E60304A9F701C1ECAC7956BF2F1B046E6C6F0D6C29B3FE3A29BAD76
diff --git a/tests/dissect-wireshark/packet03.pcap b/tests/dissect-wireshark/packet03.pcap
new file mode 100644
index 0000000..35f6161
--- /dev/null
+++ b/tests/dissect-wireshark/packet03.pcap
Binary files differ