Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

# packet_file_header Struct Reference
[NPF structures and definitions]

Header of a libpcap dump file. More...

`#include <Packet.h>`

## Data Fields
UINT | magic
| Libpcap magic number.
USHORT | version_major
| Libpcap major version.
USHORT | version_minor
| Libpcap minor version.
UINT | thiszone
| Gmt to local correction.
UINT | sigfigs
| Accuracy of timestamps.
UINT | snaplen
| Length of the max saved portion of each packet.
UINT | linktype
| Data link type (DLT_*). See win_bpf.h for details.

## Detailed Description

Header of a libpcap dump file.

Used when a driver instance is set in dump mode to create a libpcap-compatible file.

Definition at line 206 of file Packet.h.

## Field Documentation

UINT linktype

| Data link type (DLT_*). See win_bpf.h for details. Definition at line 214 of file Packet.h.

UINT magic

| Libpcap magic number. Definition at line 208 of file Packet.h.

UINT sigfigs

| Accuracy of timestamps. Definition at line 212 of file Packet.h.

UINT snaplen

| Length of the max saved portion of each packet. Definition at line 213 of file Packet.h.

UINT thiszone

| Gmt to local correction. Definition at line 211 of file Packet.h.

USHORT version_major

| Libpcap major version. Definition at line 209 of file Packet.h.

USHORT version_minor

| Libpcap minor version. Definition at line 210 of file Packet.h.

The documentation for this struct was generated from the following file:

- Packet.h

documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005 CACE technologies. All rights reserved.