-
Notifications
You must be signed in to change notification settings - Fork 6
/
nfnetlink_log_consts.go
62 lines (56 loc) · 1.68 KB
/
nfnetlink_log_consts.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package nflog
// See linux/netfilter/nfnetlink_log.h
// enum nfulnl_msg_types
const (
NFULNL_MSG_PACKET = iota
NFULNL_MSG_CONFIG
NFULNL_MSG_MAX
)
// enum nfulnl_msg_config_cmds
const (
NFULNL_CFG_CMD_NONE = iota
NFULNL_CFG_CMD_BIND
NFULNL_CFG_CMD_UNBIND
NFULNL_CFG_CMD_PF_BIND
NFULNL_CFG_CMD_PF_UNBIND
)
const (
NFULNL_COPY_NONE = iota
NFULNL_COPY_META
NFULNL_COPY_PACKET
)
// enum nfulnl_attr_config
const (
NFULA_CFG_UNSPEC = iota
NFULA_CFG_CMD /* nfulnl_msg_config_cmd */
NFULA_CFG_MODE /* nfulnl_msg_config_mode */
NFULA_CFG_NLBUFSIZ /* __u32 buffer size */
NFULA_CFG_TIMEOUT /* __u32 in 1/100 s */
NFULA_CFG_QTHRESH /* __u32 */
NFULA_CFG_FLAGS /* __u16 */
__NFULA_CFG_MAX
)
// enum nfulnl_attr_type
const (
NFULA_UNSPEC = iota
NFULA_PACKET_HDR
NFULA_MARK /* __u32 nfmark */
NFULA_TIMESTAMP /* nfulnl_msg_packet_timestamp */
NFULA_IFINDEX_INDEV /* __u32 ifindex */
NFULA_IFINDEX_OUTDEV /* __u32 ifindex */
NFULA_IFINDEX_PHYSINDEV /* __u32 ifindex */
NFULA_IFINDEX_PHYSOUTDEV /* __u32 ifindex */
NFULA_HWADDR /* nfulnl_msg_packet_hw */
NFULA_PAYLOAD /* opaque data payload */
NFULA_PREFIX /* string prefix */
NFULA_UID /* user id of socket */
NFULA_SEQ /* instance-local sequence number */
NFULA_SEQ_GLOBAL /* global sequence number */
NFULA_GID /* group id of socket */
NFULA_HWTYPE /* hardware type */
NFULA_HWHEADER /* hardware header */
NFULA_HWLEN /* hardware header length */
NFULA_CT /* nf_conntrack_netlink.h */
NFULA_CT_INFO /* enum ip_conntrack_info */
__NFULA_MAX
)