The PCAP Format package is exposed to the SDK:
from Pro.Core import *
from Pkg.PCAP import *
def parsePCAP(fname):
c = createContainerFromFile(fname)
if c.isNull():
return
obj = PCAPObject()
if not obj.Load(c) or not obj.Parse():
return
for packet in obj.IteratePackets():
out = NTTextBuffer()
packet.Dump(out)
print(out.buffer)
