Network Working Group L. Degioanni
Internet-Draft F. Risso
Expires: August 30, 2004 Politecnico di Torino
March 2004
PCAP New Generation Dump File Format
pcap
Status of this Memo
This document is an Internet-Draft and is in full conformance with
all provisions of Section 10 of RFC2026.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF), its areas, and its working groups. Note that other
groups may also distribute working documents as Internet-Drafts.
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."
The list of current Internet-Drafts can be accessed at http://
www.ietf.org/ietf/1id-abstracts.txt.
The list of Internet-Draft Shadow Directories can be accessed at
http://www.ietf.org/shadow.html.
This Internet-Draft will expire on August 30, 2004.
Copyright Notice
Copyright (C) The Internet Society (2004). All Rights Reserved.
Abstract
This document describes a format to dump captured packets on a file.
This format is extensible and it is currently proposed for
implementation in the libpcap/WinPcap packet capture library.
Degioanni & Risso Expires August 30, 2004 [Page 1]
Internet-Draft PCAP New Generation Dump File Format March 2004
Table of Contents
1. Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. General File Structure . . . . . . . . . . . . . . . . . . . . 4
2.1 General Block Structure . . . . . . . . . . . . . . . . . . . 4
2.2 Block Types . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3 Block Hierarchy and Precedence . . . . . . . . . . . . . . . . 5
2.4 Data format . . . . . . . . . . . . . . . . . . . . . . . . . 6
3. Block Definition . . . . . . . . . . . . . . . . . . . . . . . 8
3.1 Section Header Block (mandatory) . . . . . . . . . . . . . . . 8
3.2 Interface Description Block (mandatory) . . . . . . . . . . . 9
3.3 Packet Block (optional) . . . . . . . . . . . . . . . . . . . 13
3.4 Simple Packet Block (optional) . . . . . . . . . . . . . . . . 15
3.5 Name Resolution Block (optional) . . . . . . . . . . . . . . . 16
3.6 Interface Statistics Block (optional) . . . . . . . . . . . . 18
4. Options . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5. Experimental Blocks (deserved to a further investigation) . . 23
5.1 Other Packet Blocks (experimental) . . . . . . . . . . . . . . 23
5.2 Compression Block (experimental) . . . . . . . . . . . . . . . 23
5.3 Encryption Block (experimental) . . . . . . . . . . . . . . . 23
5.4 Fixed Length Block (experimental) . . . . . . . . . . . . . . 24
5.5 Directory Block (experimental) . . . . . . . . . . . . . . . . 25
5.6 Traffic Statistics and Monitoring Blocks (experimental) . . . 25
5.7 Event/Security Block (experimental) . . . . . . . . . . . . . 25
6. Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . 27
7. Most important open issues . . . . . . . . . . . . . . . . . . 28
Intellectual Property and Copyright Statements . . . . . . . . 29
Degioanni & Risso Expires August 30, 2004 [Page 2]
Internet-Draft PCAP New Generation Dump File Format March 2004
1. Objectives
The problem of exchanging packet traces becomes more and more
critical every day; unfortunately, no standard solutions exist for
this task right now. One of the most accepted packet interchange
formats is the one defined by libpcap, which is rather old and does
not fit for some of the nowadays applications especially in terms of
extensibility.
This document proposes a new format for dumping packet traces. The
following goals are being pursued:
o Extensibility: aside of some common functionalities, third parties
should be able to enrich the information embedded in the file with
proprietary extensions, which will be ignored by tools that are
not able to understand them.
o Portability: a capture trace must contain all the information
needed to read data independently from network, hardware and
operating system of the machine that made the capture.
o Merge/Append data: it should be possible to add data at the end of
a given file, and the resulting file must still be readable.
Degioanni & Risso Expires August 30, 2004 [Page 3]
Internet-Draft PCAP New Generation Dump File Format March 2004
2. General File Structure
2.1 General Block Structure
A capture file is organized in blocks, that are appended one to
another to form the file. All the blocks share a common format, which
is shown in Figure 1.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Block Type |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Block Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/ Block Body /
/ /* variable length, aligned to 32 bits */ /
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Block Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 1: Basic block structure.
The fields have the following meaning:
o Block Type (32 bits): unique value that identifies the block.
Values whose Most Significant Bit (MSB) is equal to 1 are reserved
for local use. They allow to save private data to the file and to
extend the file format.
o Block Total Length: total size of this block, in bytes. For
instance, a block that does not have a body has a length of 12
bytes.
o Block Body: content of the block.
o Block Total Length: total size of this block, in bytes. This field
is duplicated for permitting backward file navigation.
This structure, shared among all blocks, makes easy to process a file
and to skip unneeded or unknown blocks. Blocks can be nested one
inside the others (NOTE: needed?). Some of the blocks are mandatory,
i.e. a dump file is not valid if they are not present, other are
optional.
The structure of the blocks allows to define other blocks if needed.
A parser that does non understand them can simply ignore their
content.
Degioanni & Risso Expires August 30, 2004 [Page 4]
Internet-Draft PCAP New Generation Dump File Format March 2004
2.2 Block Types
The currently defined blocks are the following:
1. Section Header Block: it defines the most important
characteristics of the capture file.
2. Interface Description Block: it defines the most important
characteristics of the interface(s) used for capturing traffic.
3. Packet Block: it contains a single captured packet, or a portion
of it.
4. Simple Packet Block: it contains a single captured packet, or a
portion of it, with only a minimal set of information about it.
5. Name Resolution Block: it defines the mapping from numeric
addresses present in the packe
没有合适的资源?快使用搜索试试~ 我知道了~
winpcap获取网络数据包,winpcap 信息截获是基于windows的网络编程
共193个文件
h:57个
c:52个
obj:9个
5星 · 超过95%的资源 需积分: 9 46 下载量 105 浏览量
2010-04-25
00:11:52
上传
评论 1
收藏 893KB RAR 举报
温馨提示
vc++开发 winpcap获取网络数据包,winpcap 信息截获是基于windows的网络编程,需要安装wincap4.0
资源推荐
资源详情
资源评论
收起资源包目录
winpcap获取网络数据包,winpcap 信息截获是基于windows的网络编程 (193个子文件)
pcap.3 36KB
nit_if.o.sun4c.4.0.3c 5KB
README.aix 3KB
version.aps 32KB
pkt_rx0.asm 6KB
ndis_0.asm 4KB
scanner.c 165KB
gencode.c 159KB
grammar.c 78KB
pcap-remote.c 72KB
pcap-linux.c 62KB
optimize.c 50KB
daemon.c 48KB
pcap-dlpi.c 48KB
sockutils.c 42KB
pktdrvr.c 39KB
savefile.c 39KB
pcap-dos.c 36KB
pcap-new.c 33KB
pcap-bpf.c 31KB
pcap.c 26KB
getaddrinfo.c 25KB
ndis2.c 24KB
pcap-dag.c 23KB
rpcapd.c 22KB
pcap-win32.c 22KB
inet.c 18KB
pcap-pf.c 17KB
fad-gifc.c 17KB
snprintf.c 13KB
pcap-snoop.c 12KB
bpf_filter.c 12KB
pcap-snit.c 11KB
fad-glifc.c 11KB
nametoaddr.c 11KB
pcap-nit.c 9KB
fad-getad.c 8KB
Win32-Extensions.c 8KB
pcap-septel.c 8KB
fad-win32.c 8KB
fileconf.c 6KB
win32-svc.c 6KB
bpf_image.c 5KB
utils.c 5KB
pcap-enet.c 5KB
getopt.c 4KB
etherent.c 3KB
getservent.c 3KB
inet_net.c 3KB
fad-null.c 3KB
getnetent.c 2KB
inet_pton.c 2KB
inet_aton.c 2KB
ffs.c 2KB
bpf_dump.c 2KB
pcap-null.c 2KB
getnetbynm.c 1KB
bin2c.c 927B
CHANGES 14KB
ChmodBPF 900B
configure 226KB
Cpp1.cpp 2KB
CREDITS 4KB
.cvsignore 132B
README.dag 4KB
WPCAP.DEF 2KB
Wpcap_no_extensions.def 1KB
makefile.dj 5KB
common.dj 2KB
pthreadVC.dll 52KB
readme.dos 6KB
wpcap.dsp 18KB
rpcapd.dsp 11KB
libpcap.dsp 8KB
Cpp1.dsp 3KB
WPCAP.dsw 1KB
libpcap.dsw 539B
rpcapd.dsw 535B
Cpp1.dsw 516B
FILES 2KB
GNUmakefile 2KB
config.guess 43KB
pthread.h 35KB
pcap-bpf.h 22KB
ndis2.h 18KB
pcap-remote.h 16KB
remote-ext.h 13KB
pcap-int.h 13KB
nameser.h 12KB
pcap.h 11KB
pcap1.h 10KB
gencode.h 10KB
if.h 9KB
pcap-dos.h 7KB
sockutils.h 7KB
netdb.h 6KB
os-sunos4.h 6KB
sll.h 5KB
ip6_misc.h 5KB
pktdrvr.h 5KB
共 193 条
- 1
- 2
资源评论
- ccxcccx2012-08-29还不错哦,但不是很详细
- Angie_perfect2013-03-07课设专享,很好很强大
Stony1980
- 粉丝: 5
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功