exported packet payload format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<?xml version="1.0" encoding="ISO-8859-1"?>
<dropPacket>
<model version="1.0" author="ConnetOS"/>
<metaData>
<ingressPhysicalPort>te-1/1/1</ingressPhysicalPort>
<egressPhysicalPort>NA</egressPhysicalPort>
<vlanId>52</vlanId>
<dropReason>2</dropReason>
<dropReasonString>Tag Vlan Not Exist</dropReasonString>
<timeStamp>2017-04-07 20:07:41</timeStamp>
<packetSize>157</packetSize>
<dataSize>128</dataSize>
</metaData>
<data>
2C600C7BC1FB000000BBBB44810000340800450C0087000040004006B605373737140B0B0B0A2410008000000000000000005000FFFF8B6F000001010008010200000000123000001231000012320000123300001234000012300000123000001230000012310000123200001233000012340000123100001232000012330000
</data>
</dropPacket>Put the lua plugin into the direcotry of wireshark plugin.
Find the init.lua file, add the line below.
1
dofile(sdrop.lua)
or
1
dofile(DATA_DIR.."sdrop.lua")
With the first way, you don’t need to put the sdrop.lua into to DATA_DIR, you can just put in the same directory with the pcap files.
1 | do |