| @@ -1,142 +1,142 @@ | | | @@ -1,142 +1,142 @@ |
1 | $NetBSD: patch-bb,v 1.2 2011/07/20 18:42:45 tron Exp $ | | 1 | $NetBSD: patch-bb,v 1.3 2012/08/20 08:34:44 christos Exp $ |
2 | | | 2 | |
3 | Avoid conflict with NetBSD's popcount(3). | | 3 | Avoid conflict with NetBSD's popcount(3). |
4 | | | 4 | |
5 | --- epan/dissectors/x11-extension-implementation.h.orig 2011-07-18 21:17:51.000000000 +0100 | | 5 | --- epan/dissectors/x11-extension-implementation.h.orig 2012-06-05 19:33:36.000000000 +0300 |
6 | +++ epan/dissectors/x11-extension-implementation.h 2011-07-20 19:08:11.000000000 +0100 | | 6 | +++ epan/dissectors/x11-extension-implementation.h 2012-08-19 17:16:48.000000000 +0300 |
7 | @@ -20760,8 +20760,8 @@ | | 7 | @@ -21153,8 +21153,8 @@ |
8 | int f_namesPresent; | | 8 | int f_namesPresent; |
9 | f_namesPresent = VALUE32(tvb, *offsetp + size + 4); | | 9 | f_namesPresent = VALUE32(tvb, *offsetp + size + 4); |
10 | f_mapsPresent = VALUE32(tvb, *offsetp + size + 8); | | 10 | f_mapsPresent = VALUE32(tvb, *offsetp + size + 8); |
11 | - size += popcount(f_namesPresent) * 4; | | 11 | - size += popcount(f_namesPresent) * 4; |
12 | - size += popcount(f_mapsPresent) * 12; | | 12 | - size += popcount(f_mapsPresent) * 12; |
13 | + size += my_popcount(f_namesPresent) * 4; | | 13 | + size += my_popcount(f_namesPresent) * 4; |
14 | + size += my_popcount(f_mapsPresent) * 12; | | 14 | + size += my_popcount(f_mapsPresent) * 12; |
15 | return size + 20; | | 15 | return size + 20; |
16 | } | | 16 | } |
17 | | | 17 | |
18 | @@ -20794,8 +20794,8 @@ | | 18 | @@ -21187,8 +21187,8 @@ |
19 | f_state = VALUE32(tvb, *offsetp); | | 19 | f_state = VALUE32(tvb, *offsetp); |
20 | proto_tree_add_item(t, hf_x11_struct_DeviceLedInfo_state, tvb, *offsetp, 4, little_endian); | | 20 | proto_tree_add_item(t, hf_x11_struct_DeviceLedInfo_state, tvb, *offsetp, 4, byte_order); |
21 | *offsetp += 4; | | 21 | *offsetp += 4; |
22 | - listOfCard32(tvb, offsetp, t, hf_x11_struct_DeviceLedInfo_names, hf_x11_struct_DeviceLedInfo_names_item, popcount(f_namesPresent), little_endian); | | 22 | - listOfCard32(tvb, offsetp, t, hf_x11_struct_DeviceLedInfo_names, hf_x11_struct_DeviceLedInfo_names_item, popcount(f_namesPresent), byte_order); |
23 | - struct_IndicatorMap(tvb, offsetp, t, little_endian, popcount(f_mapsPresent)); | | 23 | - struct_IndicatorMap(tvb, offsetp, t, byte_order, popcount(f_mapsPresent)); |
24 | + listOfCard32(tvb, offsetp, t, hf_x11_struct_DeviceLedInfo_names, hf_x11_struct_DeviceLedInfo_names_item, my_popcount(f_namesPresent), little_endian); | | 24 | + listOfCard32(tvb, offsetp, t, hf_x11_struct_DeviceLedInfo_names, hf_x11_struct_DeviceLedInfo_names_item, my_popcount(f_namesPresent), byte_order); |
25 | + struct_IndicatorMap(tvb, offsetp, t, little_endian, my_popcount(f_mapsPresent)); | | 25 | + struct_IndicatorMap(tvb, offsetp, t, byte_order, my_popcount(f_mapsPresent)); |
26 | } | | 26 | } |
27 | } | | 27 | } |
28 | | | 28 | |
29 | @@ -23093,7 +23093,7 @@ | | 29 | @@ -23502,7 +23502,7 @@ |
30 | *offsetp += 2; | | 30 | *offsetp += 2; |
31 | UNUSED(16); | | 31 | UNUSED(16); |
32 | listOfByte(tvb, offsetp, t, hf_x11_xkb_GetCompatMap_reply_si_rtrn, (16 * f_nSIRtrn), little_endian); | | 32 | listOfByte(tvb, offsetp, t, hf_x11_xkb_GetCompatMap_reply_si_rtrn, (16 * f_nSIRtrn), byte_order); |
33 | - struct_ModDef(tvb, offsetp, t, little_endian, popcount(f_groupsRtrn)); | | 33 | - struct_ModDef(tvb, offsetp, t, byte_order, popcount(f_groupsRtrn)); |
34 | + struct_ModDef(tvb, offsetp, t, little_endian, my_popcount(f_groupsRtrn)); | | 34 | + struct_ModDef(tvb, offsetp, t, byte_order, my_popcount(f_groupsRtrn)); |
35 | } | | 35 | } |
36 | | | 36 | |
37 | static void xkbSetCompatMap(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, int little_endian, int length _U_) | | 37 | static void xkbSetCompatMap(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, guint byte_order, int length _U_) |
38 | @@ -23133,8 +23133,8 @@ | | 38 | @@ -23542,8 +23542,8 @@ |
39 | UNUSED(2); | | 39 | UNUSED(2); |
40 | listOfByte(tvb, offsetp, t, hf_x11_xkb_SetCompatMap_si, (16 * f_nSI), little_endian); | | 40 | listOfByte(tvb, offsetp, t, hf_x11_xkb_SetCompatMap_si, (16 * f_nSI), byte_order); |
41 | length -= (16 * f_nSI) * 1; | | 41 | length -= (16 * f_nSI) * 1; |
42 | - struct_ModDef(tvb, offsetp, t, little_endian, popcount(f_groups)); | | 42 | - struct_ModDef(tvb, offsetp, t, byte_order, popcount(f_groups)); |
43 | - length -= popcount(f_groups) * 4; | | 43 | - length -= popcount(f_groups) * 4; |
44 | + struct_ModDef(tvb, offsetp, t, little_endian, my_popcount(f_groups)); | | 44 | + struct_ModDef(tvb, offsetp, t, byte_order, my_popcount(f_groups)); |
45 | + length -= my_popcount(f_groups) * 4; | | 45 | + length -= my_popcount(f_groups) * 4; |
46 | } | | 46 | } |
47 | | | 47 | |
48 | static void xkbGetIndicatorState(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, int little_endian, int length _U_) | | 48 | static void xkbGetIndicatorState(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, guint byte_order, int length _U_) |
49 | @@ -23229,8 +23229,8 @@ | | 49 | @@ -23638,8 +23638,8 @@ |
50 | f_which = VALUE32(tvb, *offsetp); | | 50 | f_which = VALUE32(tvb, *offsetp); |
51 | proto_tree_add_item(t, hf_x11_xkb_SetIndicatorMap_which, tvb, *offsetp, 4, little_endian); | | 51 | proto_tree_add_item(t, hf_x11_xkb_SetIndicatorMap_which, tvb, *offsetp, 4, byte_order); |
52 | *offsetp += 4; | | 52 | *offsetp += 4; |
53 | - struct_IndicatorMap(tvb, offsetp, t, little_endian, popcount(f_which)); | | 53 | - struct_IndicatorMap(tvb, offsetp, t, byte_order, popcount(f_which)); |
54 | - length -= popcount(f_which) * 12; | | 54 | - length -= popcount(f_which) * 12; |
55 | + struct_IndicatorMap(tvb, offsetp, t, little_endian, my_popcount(f_which)); | | 55 | + struct_IndicatorMap(tvb, offsetp, t, byte_order, my_popcount(f_which)); |
56 | + length -= my_popcount(f_which) * 12; | | 56 | + length -= my_popcount(f_which) * 12; |
57 | } | | 57 | } |
58 | | | 58 | |
59 | static void xkbGetNamedIndicator(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, int little_endian, int length _U_) | | 59 | static void xkbGetNamedIndicator(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, guint byte_order, int length _U_) |
60 | @@ -23727,13 +23727,13 @@ | | 60 | @@ -24136,13 +24136,13 @@ |
61 | listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_KTLevelNames_ktLevelNames, hf_x11_xkb_GetNames_reply_KTLevelNames_ktLevelNames_item, (length - 56) / 4, little_endian); | | 61 | listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_KTLevelNames_ktLevelNames, hf_x11_xkb_GetNames_reply_KTLevelNames_ktLevelNames_item, (length - 56) / 4, byte_order); |
62 | } | | 62 | } |
63 | if ((f_which & (1 << 8)) != 0) { | | 63 | if ((f_which & (1 << 8)) != 0) { |
64 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames_item, popcount(f_indicators), little_endian); | | 64 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames_item, popcount(f_indicators), byte_order); |
65 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), little_endian); | | 65 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), byte_order); |
66 | } | | 66 | } |
67 | if ((f_which & (1 << 11)) != 0) { | | 67 | if ((f_which & (1 << 11)) != 0) { |
68 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), little_endian); | | 68 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), byte_order); |
69 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), little_endian); | | 69 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), byte_order); |
70 | } | | 70 | } |
71 | if ((f_which & (1 << 12)) != 0) { | | 71 | if ((f_which & (1 << 12)) != 0) { |
72 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_GroupNames_groups, hf_x11_xkb_GetNames_reply_GroupNames_groups_item, popcount(f_groupNames), little_endian); | | 72 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_GroupNames_groups, hf_x11_xkb_GetNames_reply_GroupNames_groups_item, popcount(f_groupNames), byte_order); |
73 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_GroupNames_groups, hf_x11_xkb_GetNames_reply_GroupNames_groups_item, my_popcount(f_groupNames), little_endian); | | 73 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_GroupNames_groups, hf_x11_xkb_GetNames_reply_GroupNames_groups_item, my_popcount(f_groupNames), byte_order); |
74 | } | | 74 | } |
75 | if ((f_which & (1 << 9)) != 0) { | | 75 | if ((f_which & (1 << 9)) != 0) { |
76 | struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys); | | 76 | struct_KeyName(tvb, offsetp, t, byte_order, f_nKeys); |
77 | @@ -23895,16 +23895,16 @@ | | 77 | @@ -24304,16 +24304,16 @@ |
78 | length -= (length - 52) / 4 * 4; | | 78 | length -= (length - 52) / 4 * 4; |
79 | } | | 79 | } |
80 | if ((f_which & (1 << 8)) != 0) { | | 80 | if ((f_which & (1 << 8)) != 0) { |
81 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames_item, popcount(f_indicators), little_endian); | | 81 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames_item, popcount(f_indicators), byte_order); |
82 | - length -= popcount(f_indicators) * 4; | | 82 | - length -= popcount(f_indicators) * 4; |
83 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), little_endian); | | 83 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), byte_order); |
84 | + length -= my_popcount(f_indicators) * 4; | | 84 | + length -= my_popcount(f_indicators) * 4; |
85 | } | | 85 | } |
86 | if ((f_which & (1 << 11)) != 0) { | | 86 | if ((f_which & (1 << 11)) != 0) { |
87 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), little_endian); | | 87 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), byte_order); |
88 | - length -= popcount(f_virtualMods) * 4; | | 88 | - length -= popcount(f_virtualMods) * 4; |
89 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), little_endian); | | 89 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), byte_order); |
90 | + length -= my_popcount(f_virtualMods) * 4; | | 90 | + length -= my_popcount(f_virtualMods) * 4; |
91 | } | | 91 | } |
92 | if ((f_which & (1 << 12)) != 0) { | | 92 | if ((f_which & (1 << 12)) != 0) { |
93 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_GroupNames_groups, hf_x11_xkb_SetNames_GroupNames_groups_item, popcount(f_groupNames), little_endian); | | 93 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_GroupNames_groups, hf_x11_xkb_SetNames_GroupNames_groups_item, popcount(f_groupNames), byte_order); |
94 | - length -= popcount(f_groupNames) * 4; | | 94 | - length -= popcount(f_groupNames) * 4; |
95 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_GroupNames_groups, hf_x11_xkb_SetNames_GroupNames_groups_item, my_popcount(f_groupNames), little_endian); | | 95 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_GroupNames_groups, hf_x11_xkb_SetNames_GroupNames_groups_item, my_popcount(f_groupNames), byte_order); |
96 | + length -= my_popcount(f_groupNames) * 4; | | 96 | + length -= my_popcount(f_groupNames) * 4; |
97 | } | | 97 | } |
98 | if ((f_which & (1 << 9)) != 0) { | | 98 | if ((f_which & (1 << 9)) != 0) { |
99 | struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys); | | 99 | struct_KeyName(tvb, offsetp, t, byte_order, f_nKeys); |
100 | @@ -24693,7 +24693,7 @@ | | 100 | @@ -25102,7 +25102,7 @@ |
101 | *offsetp += 2; | | 101 | *offsetp += 2; |
102 | UNUSED(16); | | 102 | UNUSED(16); |
103 | listOfByte(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_CompatMap_si_rtrn, (16 * f_nSIRtrn), little_endian); | | 103 | listOfByte(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_CompatMap_si_rtrn, (16 * f_nSIRtrn), byte_order); |
104 | - struct_ModDef(tvb, offsetp, t, little_endian, popcount(f_groupsRtrn)); | | 104 | - struct_ModDef(tvb, offsetp, t, byte_order, popcount(f_groupsRtrn)); |
105 | + struct_ModDef(tvb, offsetp, t, little_endian, my_popcount(f_groupsRtrn)); | | 105 | + struct_ModDef(tvb, offsetp, t, byte_order, my_popcount(f_groupsRtrn)); |
106 | } | | 106 | } |
107 | if ((f_reported & (1 << 2)) != 0) { | | 107 | if ((f_reported & (1 << 2)) != 0) { |
108 | int f_clientDeviceID; | | 108 | int f_clientDeviceID; |
109 | @@ -25156,13 +25156,13 @@ | | 109 | @@ -25565,13 +25565,13 @@ |
110 | listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_KTLevelNames_ktLevelNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_KTLevelNames_ktLevelNames_item, (length - 237) / 4, little_endian); | | 110 | listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_KTLevelNames_ktLevelNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_KTLevelNames_ktLevelNames_item, (length - 237) / 4, byte_order); |
111 | } | | 111 | } |
112 | if ((f_which & (1 << 8)) != 0) { | | 112 | if ((f_which & (1 << 8)) != 0) { |
113 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames_item, popcount(f_indicators), little_endian); | | 113 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames_item, popcount(f_indicators), byte_order); |
114 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), little_endian); | | 114 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), byte_order); |
115 | } | | 115 | } |
116 | if ((f_which & (1 << 11)) != 0) { | | 116 | if ((f_which & (1 << 11)) != 0) { |
117 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), little_endian); | | 117 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), byte_order); |
118 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), little_endian); | | 118 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_KeyNames_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), byte_order); |
119 | } | | 119 | } |
120 | if ((f_which & (1 << 12)) != 0) { | | 120 | if ((f_which & (1 << 12)) != 0) { |
121 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups_item, popcount(f_groupNames), little_endian); | | 121 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups_item, popcount(f_groupNames), byte_order); |
122 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups_item, my_popcount(f_groupNames), little_endian); | | 122 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_KeyNames_GroupNames_groups_item, my_popcount(f_groupNames), byte_order); |
123 | } | | 123 | } |
124 | if ((f_which & (1 << 9)) != 0) { | | 124 | if ((f_which & (1 << 9)) != 0) { |
125 | struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys); | | 125 | struct_KeyName(tvb, offsetp, t, byte_order, f_nKeys); |
126 | @@ -25315,13 +25315,13 @@ | | 126 | @@ -25724,13 +25724,13 @@ |
127 | listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_KTLevelNames_ktLevelNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_KTLevelNames_ktLevelNames_item, (length - 286) / 4, little_endian); | | 127 | listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_KTLevelNames_ktLevelNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_KTLevelNames_ktLevelNames_item, (length - 286) / 4, byte_order); |
128 | } | | 128 | } |
129 | if ((f_which & (1 << 8)) != 0) { | | 129 | if ((f_which & (1 << 8)) != 0) { |
130 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames_item, popcount(f_indicators), little_endian); | | 130 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames_item, popcount(f_indicators), byte_order); |
131 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), little_endian); | | 131 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), byte_order); |
132 | } | | 132 | } |
133 | if ((f_which & (1 << 11)) != 0) { | | 133 | if ((f_which & (1 << 11)) != 0) { |
134 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), little_endian); | | 134 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), byte_order); |
135 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), little_endian); | | 135 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames, hf_x11_xkb_GetKbdByName_reply_OtherNames_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), byte_order); |
136 | } | | 136 | } |
137 | if ((f_which & (1 << 12)) != 0) { | | 137 | if ((f_which & (1 << 12)) != 0) { |
138 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups_item, popcount(f_groupNames), little_endian); | | 138 | - listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups_item, popcount(f_groupNames), byte_order); |
139 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups_item, my_popcount(f_groupNames), little_endian); | | 139 | + listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups, hf_x11_xkb_GetKbdByName_reply_OtherNames_GroupNames_groups_item, my_popcount(f_groupNames), byte_order); |
140 | } | | 140 | } |
141 | if ((f_which & (1 << 9)) != 0) { | | 141 | if ((f_which & (1 << 9)) != 0) { |
142 | struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys); | | 142 | struct_KeyName(tvb, offsetp, t, byte_order, f_nKeys); |