/tool/sniffer/packet
packet
The packets that the last run of start captured, kept in memory for 10 minutes after the sniffer stops, or until the next start. time counts seconds from the start of the capture, shown with microseconds. See Packet...
tool/sniffer/packet
Type: Directory
最后一次运行 start 捕获的数据包,在嗅探器停止后保留在内存中 10 分钟,或直到下一次启动。time 从捕获开始计算秒数,并显示微秒。参见 数据包嗅探器。
| 只读参数 | 类型 | 描述 |
|---|---|---|
time | num | 数据包相对于捕获开始的时间偏移,以秒为单位,精确到微秒。 |
num | num | 数据包序号,从第一个捕获的数据包开始为 0。 |
direction | enum (rx | tx) { rx:0, tx:1 } | 数据包相对于路由器的方向,rx 接收,tx 发送。 |
src-mac | macAddr | 帧的源 MAC 地址,仅对具有 MAC 地址的接口显示,例如 Ethernet、WiFi、EoIP、VXLAN 或 VLAN。 |
dst-mac | macAddr | 帧的目标 MAC 地址,仅对具有 MAC 地址的接口显示,例如 Ethernet、WiFi、EoIP、VXLAN 或 VLAN。 |
vlan | object { vlan: composite { id: num , prio: [ num] } } | 帧的 VLAN 标记,显示为 id:priority。 |
interface | iface_enum | 捕获数据包的接口。 |
src-address | composite { address: alt { ip: ipAddr , ipv6: ip6Addr } , port: enum () } | 数据包的源 IP 地址和源端口,显示为 address:port。 |
dst-address | composite { address: alt { ip: ipAddr , ipv6: ip6Addr } , port: enum () } | 数据包的目标 IP 地址和目标端口,显示为 address:port。 |
protocol | enum () | 帧的 MAC(二层)协议,例如 ip、arp 或 ipv6。 |
ip-protocol | enum (ip) { ip:0 } | 数据包的 IP 协议,例如 icmp、tcp 或 udp。 |
size | num | 帧总大小(字节),包括二层头。 |
cpu | num | 处理数据包的 CPU 核心。 |
ip-packet-size | num | IP 数据包大小(字节)。 |
ip-header-size | num | IP 头大小(字节)。 |
dscp | num | IP 头的 DSCP(区分服务代码点)字段。 |
ecn | num | IP 头的 ECN(显式拥塞通知)字段。 |
identification | num | IP 头的标识字段。 |
fragment-offset | num | IP 头的分片偏移字段。 |
ttl | num | IP 头的生存时间字段。 |
tcp-flags | multi { array-id, flag: enum (fin | syn | rst | psh | ack | urg | ece | cwr) { fin:0, syn:1, rst:2, psh:3, ack:4, urg:5, ece:6, cwr:7 } } | 数据包的 TCP 标志:fin、syn、rst、psh、ack、urg、ece 或 cwr。 |
data | string | 捕获数据包的内容,十六进制格式。 |