dissect-wireshark: Add support for dissecting PPP frames
This commit also fixes Info column output: before this change, the
column was showing KeyLocator name for data packets, instead of name of
the data packet.
Change-Id: I742d943662916072b1f08ff6050564ff34a698b4
diff --git a/tools/dissect-wireshark/ndn.lua b/tools/dissect-wireshark/ndn.lua
index 9cedb4a..51befaa 100755
--- a/tools/dissect-wireshark/ndn.lua
+++ b/tools/dissect-wireshark/ndn.lua
@@ -477,7 +477,7 @@
pktType = "Nack"
end
- if pktName == "" and block.type == 7 then
+ if block.type == 7 then
pktName = getUriFromName(block)
end
end
@@ -527,4 +527,7 @@
local ethernetDissectorTable = DissectorTable.get("ethertype")
ethernetDissectorTable:add(0x8624, ndn)
+local pppDissectorTable = DissectorTable.get("ppp.protocol")
+pppDissectorTable:add(0x0077, ndn)
+
io.stderr:write("NDN dissector successfully loaded\n")