Advertisement

wireshark数据包 protocol pcap

阅读量:

pcap格式文件组成

pcap文件包含全局头信息、数据包头部信息以及数据内容。其中数据内容即表示为根据网络协议进行解析的信息。

Global Header的定义

复制代码
 typedef struct pcap_hdr_s {

    
     guint32 magic_number;   /* magic number */
    
     guint16 version_major;  /* major version number */
    
     guint16 version_minor;  /* minor version number */
    
     gint32  thiszone;       /* GMT to local correction */
    
     guint32 sigfigs;        /* accuracy of timestamps */
    
     guint32 snaplen;        /* max length of captured packets, in octets */

全部评论 (0)

还没有任何评论哟~