是否有获取包的层字段值信息的方法?(即在打印数据包层时显示在右侧的字符串信息)像下面的几行:协议鉴别符:移动性管理消息跳过指示器:没有指示所选择的PLMN
例如
packets = pyshark.FileCapture(...)
print(packet[0]['IP']):
.... 0101 = Protocol discriminator: Mobility Management messages (0x5)
0000 .... = Skip Indicator: No indication of selected PLMN (0)
...
...
...
m_list.append(str(packet[0]['IP']))
with open("out.txt", "w") as f:
f.write(m_list)