forked from usnistgov/ndn-dpdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenum.go
34 lines (24 loc) · 794 Bytes
/
enum.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package pdump
//go:generate go run ../../mk/enumgen/ -guard=NDNDPDK_PDUMP_ENUM_H -out=../../csrc/pdump/enum.h .
const (
// MaxNames is the maximum number of name filters.
MaxNames = 4
// WriterBurstSize is the burst size in the writer.
WriterBurstSize = 64
// NgTypeSHB is PCAPNG section header block type.
NgTypeSHB = 0x0A0D0D0A
// NgTypeIDB is PCAPNG interface description block type.
NgTypeIDB = 0x00000001
// NgTypeIDB is PCAPNG enhanced packet block type.
NgTypeEPB = 0x00000006
// MbufTypeRaw indicates mbuf should be written unchanged.
MbufTypeRaw = 0xF0010000
// MbufTypeSLL indicates mbuf should be written with SLL header.
MbufTypeSLL = 0xF0020000
_ = "enumgen::Pdump"
)
// Limits and defaults.
const (
MinFileSize = 1 << 16
DefaultFileSize = 1 << 24
)