Go to the documentation of this file.
17#ifndef NMSG_CONSTANTS_H
18#define NMSG_CONSTANTS_H
27#define NMSG_MAGIC {'N', 'M', 'S', 'G'}
35#define NMSG_VERSION 2U
36#define NMSG_PROTOCOL_VERSION NMSG_VERSION
46#define NMSG_HDRLSZ_V2 10
51#define NMSG_LENHDRSZ_V1 2
56#define NMSG_LENHDRSZ_V2 4
61#define NMSG_PAYHDRSZ 64
66#define NMSG_WBUFSZ_MIN 512
71#define NMSG_WBUFSZ_MAX 1048576
77#define NMSG_WBUFSZ_JUMBO 8192
83#define NMSG_WBUFSZ_ETHER 1280
90#define NMSG_RBUFSZ (2 * NMSG_WBUFSZ_MAX)
96#define NMSG_RBUF_TIMEOUT 500
101#define NMSG_DEFAULT_SNAPLEN 1522
106#define NMSG_IPSZ_MAX 65536
113#define NMSG_FLAG_ZLIB 0x01
118#define NMSG_FLAG_FRAGMENT 0x02