From 589445bffb5287e6e9acd8c9d27e168928e5f417 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Thu, 13 Apr 2023 09:51:15 +0200 Subject: [PATCH] ISAKMP: fix dissection of DEVIVE_IDENTITY identity type The encoding is in big endian and not little endian (the type is in the 2 LSB). --- epan/dissectors/packet-isakmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c index 1d0e23dff4..07686c00bc 100644 --- a/epan/dissectors/packet-isakmp.c +++ b/epan/dissectors/packet-isakmp.c @@ -4983,7 +4983,7 @@ dissect_notif(tvbuff_t *tvb, packet_info *pinfo, int offset, int length, proto_t bit_offset += 6; /* Payload Octet 7 - Identity type */ - proto_tree_add_bits_ret_val(tree, hf_isakmp_notify_data_3gpp_device_identity_type, tvb, bit_offset, 2, &octet, ENC_LITTLE_ENDIAN); + proto_tree_add_bits_ret_val(tree, hf_isakmp_notify_data_3gpp_device_identity_type, tvb, bit_offset, 2, &octet, ENC_BIG_ENDIAN); offset += 1; length -= 3;