diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-17 09:05:03 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-09-17 09:05:03 +0000 |
commit | 60d7b4e29a30f5a299e81d0e007d28dea30199a6 (patch) | |
tree | 0efcfa307263f5a4112b7013b91f3cdd47799587 /epan/dissectors/packet-x11.c | |
parent | 4cc7762f33ae73ee94e6addd46572e59907bcba1 (diff) |
IP addresses are always big-endian.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12027 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-x11.c')
-rw-r--r-- | epan/dissectors/packet-x11.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-x11.c b/epan/dissectors/packet-x11.c index d21c1cd653..9a723d4c41 100644 --- a/epan/dissectors/packet-x11.c +++ b/epan/dissectors/packet-x11.c @@ -1129,6 +1129,7 @@ static const value_string zero_is_none_vals[] = { #define LISTofATOM(name, length) { listOfAtom(tvb, offsetp, t, hf_x11_##name, (length) / 4, little_endian); } #define LISTofBYTE(name, length) { listOfByte(tvb, offsetp, t, hf_x11_##name, (length), little_endian); } #define LISTofCARD8(name, length) { listOfByte(tvb, offsetp, t, hf_x11_##name, (length), little_endian); } +#define LISTofIPADDRESS(name, length) { listOfByte(tvb, offsetp, t, hf_x11_##name, (length), FALSE); } #define LISTofCARD32(name, length) { listOfCard32(tvb, offsetp, t, hf_x11_##name, hf_x11_##name##_item, (length) / 4, little_endian); } #define LISTofCOLORITEM(name, length) { listOfColorItem(tvb, offsetp, t, hf_x11_##name, (length) / 12, little_endian); } #define LISTofKEYCODE(map, name, length) { listOfKeycode(tvb, offsetp, t, hf_x11_##name, map, (length), little_endian); } @@ -3995,7 +3996,7 @@ static void dissect_x11_request(tvbuff_t *tvb, packet_info *pinfo, * XXX - what about IPv6? Is that a family of * FAMILY_INTERNET (0) with a length of 16? */ - LISTofCARD8(ip_address, v16); + LISTofIPADDRESS(ip_address, v16); } else LISTofCARD8(address, v16); break; |