10#ifndef __PACKET_NETLINK_H__
11#define __PACKET_NETLINK_H__
18 WS_NETLINK_UNUSED = 1,
19 WS_NETLINK_USERSOCK = 2,
20 WS_NETLINK_FIREWALL = 3,
21 WS_NETLINK_SOCK_DIAG = 4,
24 WS_NETLINK_SELINUX = 7,
27 WS_NETLINK_FIB_LOOKUP = 10,
28 WS_NETLINK_CONNECTOR = 11,
29 WS_NETLINK_NETFILTER = 12,
30 WS_NETLINK_IP6_FW = 13,
31 WS_NETLINK_DNRTMSG = 14,
32 WS_NETLINK_KOBJECT_UEVENT = 15,
33 WS_NETLINK_GENERIC = 16,
35 WS_NETLINK_SCSITRANSPORT = 18,
36 WS_NETLINK_ECRYPTFS = 19,
38 WS_NETLINK_CRYPTO = 21,
48 WS_NLM_F_DUMP_INTR = 16,
49 WS_NLM_F_DUMP_FILTERED = 32,
52 WS_NLM_F_ROOT = 0x100,
53 WS_NLM_F_MATCH = 0x200,
54 WS_NLM_F_ATOMIC = 0x400,
57 WS_NLM_F_REPLACE = 0x100,
58 WS_NLM_F_EXCL = 0x200,
59 WS_NLM_F_CREATE = 0x400,
60 WS_NLM_F_APPEND = 0x800,
63 WS_NLM_F_NONREC = 0x100,
66 WS_NLM_F_CAPPED = 0x100,
67 WS_NLM_F_ACK_TLVS = 0x200
75 WS_NLMSG_ERROR = 0x02,
77 WS_NLMSG_OVERRUN = 0x04,
78 WS_NLMSG_MIN_TYPE = 0x10
83 WS_NFPROTO_UNSPEC = 0,
87 WS_NFPROTO_NETDEV = 5,
88 WS_NFPROTO_BRIDGE = 7,
90 WS_NFPROTO_DECNET = 12,
95#define PACKET_NETLINK_MAGIC 0x4A5ACCCE
112int dissect_netlink_attributes(
tvbuff_t *tvb,
int hf_type,
int ett,
void *data,
struct packet_netlink_data *nl_data,
proto_tree *tree,
int offset,
int length, netlink_attributes_cb_t cb);
114int dissect_netlink_attributes_to_end(
tvbuff_t *tvb,
int hf_type,
int ett,
void *data,
struct packet_netlink_data *nl_data,
proto_tree *tree,
int offset, netlink_attributes_cb_t cb);
122int dissect_netlink_attributes_array(
tvbuff_t *tvb,
int hf_type,
int ett_array,
int ett_attrib,
void *data,
struct packet_netlink_data *nl_data,
proto_tree *tree,
int offset,
int length, netlink_attributes_cb_t cb);
124#define NLA_F_NESTED 0x8000
125#define NLA_F_NET_BYTEORDER 0x4000
126#define NLA_TYPE_MASK 0x3fff
Definition value_string.h:169
Definition value_string.h:25
Definition packet-netlink.h:132
Definition packet-netlink.h:97
Definition tvbuff-int.h:35