diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-09-17 09:05:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-09-17 09:05:03 +0000 |
commit | 99c29819b76317cc257d170290d50300486e2413 (patch) | |
tree | 0efcfa307263f5a4112b7013b91f3cdd47799587 | |
parent | 0c460f1c76083ce3cb4cd3e85ae56a1632bda824 (diff) |
IP addresses are always big-endian.
svn path=/trunk/; revision=12027
-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; |