MCPcopy Create free account
hub / github.com/bobolike123/NetworkTrafficAnalysis / run

Function run

tools/PacketNumPerClass.py:12–20  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

10# 总数147376
11
12def run(path):
13 sum = 0
14 file_list = glob.glob(path + '/*.pcap')
15 # print(file_list)
16 for file in file_list:
17 packet_num_in_file = len(rdpcap(file))
18 sum += packet_num_in_file
19
20 print('包总数为:{}'.format(sum))
21
22
23def run_all(root_path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected