a2cd3dbc0c
The major changes since version 1.4.* are: - Wireshark is now distributed as an installation package rather than a drag-installer on OS X. The installer adds a startup item that should make it easier to capture packets. - Large file (greater than 2 GB) support has been improved. - Wireshark and TShark can import text dumps, similar to text2pcap. - You can now view Wireshark's dissector tables (for example the TCP port to dissector mappings) from the main window. - Wireshark can export SSL session keys via File→Export→SSL Session Keys... - TShark can show a specific occurrence of a field when using '-T fields'. - Custom columns can show a specific occurrence of a field. - You can hide columns in the packet list. - Wireshark can now export SMB objects. - dftest and randpkt now have manual pages. - TShark can now display iSCSI, ICMP and ICMPv6 service response times. - Dumpcap can now save files with a user-specified group id. - Syntax checking is done for capture filters. - You can display the compiled BPF code for capture filters in the Capture Options dialog. - You can now navigate backwards and forwards through TCP and UDP sessions using Ctrl+, and Ctrl+. . - Packet length is (finally) a default column. - TCP window size is now avaiable both scaled and unscaled. A TCP window scaling graph is available in the GUI. - 802.1q VLAN tags are now shown in the Ethernet II protocol tree instead of a separate tree. - Various dissectors now display some UTF-16 strings as proper Unicode including the DCE/RPC and SMB dissectors. - The RTP player now has an option to show the time of day in the graph in addition to the seconds since beginning of capture. - The RTP player now shows why media interruptions occur. - Graphs now save as PNG images by default. - TShark can read and write host name information from and to pcapng-formatted files. Wireshark can read it. TShark can dump host name information via [-z hosts] . - TShark's -z option now uses the [-z <proto>,srt] syntax instead of [-z <proto>,rtt] for all protocols that support service response time statistics. This matches Wireshark's syntax for this option. - Wireshark and TShark can now read compressed Windows Sniffer files. - New Protocol Support ADwin, ADwin-Config, Apache Etch, Aruba PAPI, Babel Routing Protocol, Broadcast/Multicast Control, Constrained Application Protocol (COAP), Digium TDMoE, Erlang Distribution Protocol, Ether-S-I/O, FastCGI, Fibre Channel over InfiniBand (FCoIB), Gopher, Gigamon GMHDR, IDMP, Infiniband Socket Direct Protocol (SDP), JSON, LISP Control, LISP Data, LISP, MikroTik MAC-Telnet, MRP Multiple Mac Registration Protocol (MMRP) Mongo Wire Protocol, MUX27010, Network Monitor 802.11 radio header, OPC UA ExtensionObjects, openSAFETY, PPI-GEOLOCATION-GPS, ReLOAD, ReLOAD Framing, RObust Header Compression (ROHC), RSIP, SAMETIME, SCoP, SGSAP, Tektronix Teklink, USB/AT Commands, uTorrent Transport Protocol, WAI authentication, Wi-Fi P2P (Wi-Fi Direct) - New and Updated Capture File Support Apple PacketLogger, Catapult DCT2000, Daintree SNA, Endace ERF, HP OpenVMS TCPTrace, IPFIX (the file format, not the protocol), Lucent/Ascend debug, Microsoft Network Monitor, Network Instruments, TamoSoft CommView
142 lines
10 KiB
Text
142 lines
10 KiB
Text
$NetBSD: patch-bb,v 1.2 2011/07/20 18:42:45 tron Exp $
|
|
|
|
Avoid conflict with NetBSD's popcount(3).
|
|
|
|
--- epan/dissectors/x11-extension-implementation.h.orig 2011-07-18 21:17:51.000000000 +0100
|
|
+++ epan/dissectors/x11-extension-implementation.h 2011-07-20 19:08:11.000000000 +0100
|
|
@@ -20760,8 +20760,8 @@
|
|
int f_namesPresent;
|
|
f_namesPresent = VALUE32(tvb, *offsetp + size + 4);
|
|
f_mapsPresent = VALUE32(tvb, *offsetp + size + 8);
|
|
- size += popcount(f_namesPresent) * 4;
|
|
- size += popcount(f_mapsPresent) * 12;
|
|
+ size += my_popcount(f_namesPresent) * 4;
|
|
+ size += my_popcount(f_mapsPresent) * 12;
|
|
return size + 20;
|
|
}
|
|
|
|
@@ -20794,8 +20794,8 @@
|
|
f_state = VALUE32(tvb, *offsetp);
|
|
proto_tree_add_item(t, hf_x11_struct_DeviceLedInfo_state, tvb, *offsetp, 4, little_endian);
|
|
*offsetp += 4;
|
|
- listOfCard32(tvb, offsetp, t, hf_x11_struct_DeviceLedInfo_names, hf_x11_struct_DeviceLedInfo_names_item, popcount(f_namesPresent), little_endian);
|
|
- struct_IndicatorMap(tvb, offsetp, t, little_endian, popcount(f_mapsPresent));
|
|
+ listOfCard32(tvb, offsetp, t, hf_x11_struct_DeviceLedInfo_names, hf_x11_struct_DeviceLedInfo_names_item, my_popcount(f_namesPresent), little_endian);
|
|
+ struct_IndicatorMap(tvb, offsetp, t, little_endian, my_popcount(f_mapsPresent));
|
|
}
|
|
}
|
|
|
|
@@ -23093,7 +23093,7 @@
|
|
*offsetp += 2;
|
|
UNUSED(16);
|
|
listOfByte(tvb, offsetp, t, hf_x11_xkb_GetCompatMap_reply_si_rtrn, (16 * f_nSIRtrn), little_endian);
|
|
- struct_ModDef(tvb, offsetp, t, little_endian, popcount(f_groupsRtrn));
|
|
+ struct_ModDef(tvb, offsetp, t, little_endian, my_popcount(f_groupsRtrn));
|
|
}
|
|
|
|
static void xkbSetCompatMap(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, int little_endian, int length _U_)
|
|
@@ -23133,8 +23133,8 @@
|
|
UNUSED(2);
|
|
listOfByte(tvb, offsetp, t, hf_x11_xkb_SetCompatMap_si, (16 * f_nSI), little_endian);
|
|
length -= (16 * f_nSI) * 1;
|
|
- struct_ModDef(tvb, offsetp, t, little_endian, popcount(f_groups));
|
|
- length -= popcount(f_groups) * 4;
|
|
+ struct_ModDef(tvb, offsetp, t, little_endian, my_popcount(f_groups));
|
|
+ length -= my_popcount(f_groups) * 4;
|
|
}
|
|
|
|
static void xkbGetIndicatorState(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, int little_endian, int length _U_)
|
|
@@ -23229,8 +23229,8 @@
|
|
f_which = VALUE32(tvb, *offsetp);
|
|
proto_tree_add_item(t, hf_x11_xkb_SetIndicatorMap_which, tvb, *offsetp, 4, little_endian);
|
|
*offsetp += 4;
|
|
- struct_IndicatorMap(tvb, offsetp, t, little_endian, popcount(f_which));
|
|
- length -= popcount(f_which) * 12;
|
|
+ struct_IndicatorMap(tvb, offsetp, t, little_endian, my_popcount(f_which));
|
|
+ length -= my_popcount(f_which) * 12;
|
|
}
|
|
|
|
static void xkbGetNamedIndicator(tvbuff_t *tvb, packet_info *pinfo _U_, int *offsetp, proto_tree *t, int little_endian, int length _U_)
|
|
@@ -23727,13 +23727,13 @@
|
|
listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_KTLevelNames_ktLevelNames, hf_x11_xkb_GetNames_reply_KTLevelNames_ktLevelNames_item, (length - 56) / 4, little_endian);
|
|
}
|
|
if ((f_which & (1 << 8)) != 0) {
|
|
- listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames, hf_x11_xkb_GetNames_reply_IndicatorNames_indicatorNames_item, popcount(f_indicators), little_endian);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 11)) != 0) {
|
|
- listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames, hf_x11_xkb_GetNames_reply_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), little_endian);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 12)) != 0) {
|
|
- listOfCard32(tvb, offsetp, t, hf_x11_xkb_GetNames_reply_GroupNames_groups, hf_x11_xkb_GetNames_reply_GroupNames_groups_item, popcount(f_groupNames), little_endian);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 9)) != 0) {
|
|
struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys);
|
|
@@ -23895,16 +23895,16 @@
|
|
length -= (length - 52) / 4 * 4;
|
|
}
|
|
if ((f_which & (1 << 8)) != 0) {
|
|
- listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames_item, popcount(f_indicators), little_endian);
|
|
- length -= popcount(f_indicators) * 4;
|
|
+ listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames, hf_x11_xkb_SetNames_IndicatorNames_indicatorNames_item, my_popcount(f_indicators), little_endian);
|
|
+ length -= my_popcount(f_indicators) * 4;
|
|
}
|
|
if ((f_which & (1 << 11)) != 0) {
|
|
- listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames_item, popcount(f_virtualMods), little_endian);
|
|
- length -= popcount(f_virtualMods) * 4;
|
|
+ listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames, hf_x11_xkb_SetNames_VirtualModNames_virtualModNames_item, my_popcount(f_virtualMods), little_endian);
|
|
+ length -= my_popcount(f_virtualMods) * 4;
|
|
}
|
|
if ((f_which & (1 << 12)) != 0) {
|
|
- listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_GroupNames_groups, hf_x11_xkb_SetNames_GroupNames_groups_item, popcount(f_groupNames), little_endian);
|
|
- length -= popcount(f_groupNames) * 4;
|
|
+ listOfCard32(tvb, offsetp, t, hf_x11_xkb_SetNames_GroupNames_groups, hf_x11_xkb_SetNames_GroupNames_groups_item, my_popcount(f_groupNames), little_endian);
|
|
+ length -= my_popcount(f_groupNames) * 4;
|
|
}
|
|
if ((f_which & (1 << 9)) != 0) {
|
|
struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys);
|
|
@@ -24693,7 +24693,7 @@
|
|
*offsetp += 2;
|
|
UNUSED(16);
|
|
listOfByte(tvb, offsetp, t, hf_x11_xkb_GetKbdByName_reply_CompatMap_si_rtrn, (16 * f_nSIRtrn), little_endian);
|
|
- struct_ModDef(tvb, offsetp, t, little_endian, popcount(f_groupsRtrn));
|
|
+ struct_ModDef(tvb, offsetp, t, little_endian, my_popcount(f_groupsRtrn));
|
|
}
|
|
if ((f_reported & (1 << 2)) != 0) {
|
|
int f_clientDeviceID;
|
|
@@ -25156,13 +25156,13 @@
|
|
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);
|
|
}
|
|
if ((f_which & (1 << 8)) != 0) {
|
|
- 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);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 11)) != 0) {
|
|
- 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);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 12)) != 0) {
|
|
- 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);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 9)) != 0) {
|
|
struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys);
|
|
@@ -25315,13 +25315,13 @@
|
|
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);
|
|
}
|
|
if ((f_which & (1 << 8)) != 0) {
|
|
- 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);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 11)) != 0) {
|
|
- 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);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 12)) != 0) {
|
|
- 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);
|
|
+ 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);
|
|
}
|
|
if ((f_which & (1 << 9)) != 0) {
|
|
struct_KeyName(tvb, offsetp, t, little_endian, f_nKeys);
|