diff options
author | Aurelien Aptel <aaptel@suse.com> | 2020-02-20 19:27:05 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2020-02-23 06:10:40 +0000 |
commit | de665417ab871f34bcf1fb536af308df691440d6 (patch) | |
tree | cb7b45ede1dd18b90f118addef63347916ceec75 /epan | |
parent | 1403c09105e5c9b9a5adc17581c39b6355ef8935 (diff) |
SMB2: ipv4 address is stored in big endian
when expanding QUERY_NETWORK_INTERFACE_INFO responses completely IPv4
addresses show up backwards. Fix this by setting the right
endianess (BE).
Change-Id: I94897290f4052bc1e2471bc26d72dce8012b3e3a
Reviewed-on: https://code.wireshark.org/review/36144
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-smb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c index 9aeacea563..e7e1032394 100644 --- a/epan/dissectors/packet-smb2.c +++ b/epan/dissectors/packet-smb2.c @@ -6602,7 +6602,7 @@ dissect_windows_sockaddr_in(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *p offset += 2; /* IPv4 address */ - proto_tree_add_item(sub_tree, hf_windows_sockaddr_in_addr, tvb, offset, 4, ENC_LITTLE_ENDIAN); + proto_tree_add_item(sub_tree, hf_windows_sockaddr_in_addr, tvb, offset, 4, ENC_BIG_ENDIAN); proto_item_append_text(sub_item, ", IPv4: %s", tvb_ip_to_str(tvb, offset)); proto_item_append_text(parent_item, ", IPv4: %s", tvb_ip_to_str(tvb, offset)); offset += 4; |