分组层字段值信息

问题描述 投票:0回答:1

是否有获取包的层字段值信息的方法?(即在打印数据包层时显示在右侧的字符串信息)像下面的几行:协议鉴别符:移动性管理消息跳过指示器:没有指示所选择的PLMN

例如

packets = pyshark.FileCapture(...)
print(packet[0]['IP']):

 .... 0101 = Protocol discriminator: Mobility Management messages (0x5)
 0000 .... = Skip Indicator: No indication of selected PLMN (0)
 ...
 ...
 ...
pyshark
1个回答
0
投票
例如:

m_list.append(str(packet[0]['IP'])) with open("out.txt", "w") as f: f.write(m_list)

© www.soinside.com 2019 - 2024. All rights reserved.