PCAP Next Generation (pcapng) Capture File Format
draft-tuexen-opsawg-pcapng-02
OPSAWG Working Group M. Tuexen
Internet-Draft Muenster University of Applied Sciences
Intended status: Standards Track F. Risso
Expires: 1 April 2021 Politecnico di Torino
J. Bongertz
Airbus Defence and Space CyberSecurity
G. Combs
Wireshark Foundation
G. Harris
M. Richardson
Sandelman Software Works
28 September 2020
PCAP Next Generation (pcapng) Capture File Format
draft-tuexen-opsawg-pcapng-02
Abstract
This document describes a format to record captured packets to a
file. This format is extensible; Wireshark can currently read and
write it, and libpcap can currently read some pcapng files.
RFCEDITOR-please-remove: this document is being worked on at:
https://github.com/pcapng/pcapng.git
Discussion Venues
This note is to be removed before publishing as an RFC.
Discussion of this document takes place on the OPSAWG Working Group
mailing list (opsawg@ietf.org), which is archived at
https://mailarchive.ietf.org/arch/browse/opsawg/
(https://mailarchive.ietf.org/arch/browse/opsawg/).
Source for this draft and an issue tracker can be found at
https://github.com/pcapng/pcapng (https://github.com/pcapng/pcapng).
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Tuexen, et al. Expires 1 April 2021 [Page 1]
Internet-Draft pcapng September 2020
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 1 April 2021.
Copyright Notice
Copyright (c) 2020 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document. Code Components
extracted from this document must include Simplified BSD License text
as described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1. Acronyms . . . . . . . . . . . . . . . . . . . . . . . . 4
3. General File Structure . . . . . . . . . . . . . . . . . . . 4
3.1. General Block Structure . . . . . . . . . . . . . . . . . 4
3.2. Block Types . . . . . . . . . . . . . . . . . . . . . . . 6
3.3. Logical Block Hierarchy . . . . . . . . . . . . . . . . . 7
3.4. Physical File Layout . . . . . . . . . . . . . . . . . . 8
3.5. Options . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.5.1. Custom Options . . . . . . . . . . . . . . . . . . . 12
3.6. Data format . . . . . . . . . . . . . . . . . . . . . . . 13
3.6.1. Endianness . . . . . . . . . . . . . . . . . . . . . 14
3.6.2. Alignment . . . . . . . . . . . . . . . . . . . . . . 14
4. Block Definition . . . . . . . . . . . . . . . . . . . . . . 14
4.1. Section Header Block . . . . . . . . . . . . . . . . . . 14
4.2. Interface Description Block . . . . . . . . . . . . . . . 17
4.3. Enhanced Packet Block . . . . . . . . . . . . . . . . . . 22
4.3.1. Enhanced Packet Block Flags Word . . . . . . . . . . 25
4.4. Simple Packet Block . . . . . . . . . . . . . . . . . . . 26
4.5. Name Resolution Block . . . . . . . . . . . . . . . . . . 28
4.6. Interface Statistics Block . . . . . . . . . . . . . . . 32
4.7. systemd Journal Export Block . . . . . . . . . . . . . . 34
Show full document text