diff options
author | Hauke Mehrtens <hauke.mehrtens@intel.com> | 2016-08-31 20:06:49 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-09-20 09:13:20 +0000 |
commit | 811bb3302bf503523f51c219226426feb63b7a18 (patch) | |
tree | 0eacd1f47eb8f4f2c2551d517dad6737da9377b2 /epan/dissectors/packet-netlink.h | |
parent | b1bbfaa9f72f77c9cee48b6f078bf42f9895e47b (diff) |
netlink: make dissect_netlink_attributes() endianness aware
Always give the netlink data struct to dissect_netlink_attributes() so
we can extract which endianness we should use. This fixes the netlink
dissector on big endian.
Change-Id: Ia485a29035c947908c29a9e30d0aba8d4fc94093
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
Reviewed-on: https://code.wireshark.org/review/17636
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-netlink.h')
-rw-r--r-- | epan/dissectors/packet-netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-netlink.h b/epan/dissectors/packet-netlink.h index a0fae25b17..1e9601f527 100644 --- a/epan/dissectors/packet-netlink.h +++ b/epan/dissectors/packet-netlink.h @@ -107,7 +107,7 @@ struct packet_netlink_data { typedef int netlink_attributes_cb_t(tvbuff_t *, void *data, proto_tree *, int nla_type, int offset, int len); -int dissect_netlink_attributes(tvbuff_t *tvb, header_field_info *hfi_type, int ett, void *data, proto_tree *tree, int offset, int length, netlink_attributes_cb_t cb); +int dissect_netlink_attributes(tvbuff_t *tvb, header_field_info *hfi_type, int ett, void *data, struct packet_netlink_data *nl_data, proto_tree *tree, int offset, int length, netlink_attributes_cb_t cb); #define NLA_F_NESTED 0x8000 #define NLA_F_NET_BYTEORDER 0x4000 |