aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/models/atap_data_model.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-02-25Qt: Revert to our function for displaying bit speed with unitsJohn Thacker1-2/+2
The Qt formattedDataSize() locale aware function only handles sizes in bytes, not other units. Revert to using our format_size() function from wsutil for the bits per second display string in the Conversation window. Fix #18211
2023-02-23Qt: Show date for abs time for long captures in ConversationsJohn Thacker1-5/+14
Display the date with the absolute time if a conversation in the conversation table is over 24 hours long. Parse user entered filter strings for date times as both date times and dates. Fix #16092
2023-01-17Qt: Conversation/Endpoint table Filter by different QVariant typesJohn Thacker1-4/+20
Return the percentage in the UNFORMATTED_DISPLAYDATA converted from our string so it it compares properly with an equality filter. Use QVariant comparisons where appropriate so that Filter by works as expected with types that are not integers, such as doubles the City/Country strings from GeoIP, or when absolute start time is used for conversation starts. Fix #18738.
2022-12-14Qt: crash on negative row in ConversationsChuck Craft1-1/+1
2022-11-10Qt: Add GeoIP latitude and longitude to Endpoints tableJohn Thacker1-0/+14
Fix #17049
2022-10-30Qt: Fix unexpected bytes suffixRoland Knall1-3/+3
Packets obviously have not a "bytes" suffix, therefore it should be removed. Fixes #18229
2022-10-19Qt: Add geolocation columns back to the Endpoints dialog.Gerald Combs1-2/+23
Add geolocation columns back to the Endpoints dialog. Fix our geolocation column alignments as well. Fixes #18320.
2022-10-08Conversations dialog : rename the B to A packets columnEugène Adell1-1/+1
2022-09-29Qt: plug resource leak in error path (CID-1504598)Jaap Keuter1-0/+1
2022-08-25Rename a bunch of things with "conversation".Guy Harris1-5/+5
A conversation in Wireshark might have two endpoints or might have no endpoints; few if any have one endpoint. Distinguish between conversations and endpoints.
2022-08-24Qt: Silence warningJohn Thacker1-0/+2
In the case that this is being called with an address type that is neither IPv4 or IPv6, make sure that the char array used to construct the QString is null terminated so that there's no warning about using addr uninitialized or a possible strlen running off the end.
2022-08-23Rename some functions and types for endpoint tables.Guy Harris1-4/+4
The "conversation table" mechanism supports two types of tables, one for the "Conversations" menu item under "Statistics" and one for the "Endpoints" menu item under "Statistics". The first of them shows statistics for conversations at various layers of the networking stack; the second of them shows statistics for endpoints at various layers of the networking stack. The latter is *not* a table of hosts; an endpoint might be a host, identified by an address at some network level (MAC, IP, etc.), or it might be a port on a host, identified by an address/port pair. Some data types, function names, etc. use "host" or "hostlist" or other terms that imply that an endpoint is a host; change them to speak of endpoints rather than hosts, using names similar to the corresponding functions for conversations. Provide wrapper functions and typedefs for backwards source and binary compatibility; mark them as deprecated in favor of the new names. Clean up some comment errors found in the process.
2022-08-08Qt: traffic tables - tcp/udp port name resolutionChuck Craft1-3/+9
Allow conversation/endpoint tabs that include IP address and port number to resolve either or both. Currently IP address (network) resolution is required to resolve tcp/udp ports.
2022-08-05dccp: allow port resolution in conversation tableChuck Craft1-3/+3
2022-07-13Qt: Recommend 5.12 and enforce 5.10Roland Knall1-4/+0
In order to phase out older versions, we recommed 5.12 as a minimum Qt version going forward. Although build support for 5.10 and 5.11 is not being removed at this point, it might be for 4.x at a later time.
2022-07-04Qt: Fix compile issue for 5.9Roland Knall1-0/+5
Use the legacy method for when a Qt version below 5.10 is being used, due to the fact, that QLocale::formattedDataSize had not been introduced before
2022-06-24Qt: Fix endianness for an IPv4 valueJoão Valverde1-2/+2
ws_in4_addr is in network byte order (big endian) so convert from BE to host byte order, not the other way around.
2022-06-22Qt: Fix compiler warning on macOSRoland Knall1-1/+1
2022-06-22Qt: Fix stream id display in context menuRoland Knall1-3/+3
It was displayed for every protocol, but should only be displayed for TCP and UDP alone
2022-06-21Qt: Add stream number to conversationsRoland Knall1-0/+15
Adding the stream id to UDP/TCP conversations and allowing filtering on those values as well. Fixes: #14184
2022-06-20Qt: Fix column hiding for traffic modelRoland Knall1-157/+88
Instead of letting the model do the filtering and having a bunch of exceptions in cases where columns are hidden in between other columns, the model will present all columns all the time, and it is the job of a top-level proxy to filter out columns not required for current display
2022-06-19Qt: Fix TrafficTree typoRoland Knall1-1/+1
And also fix some prototypes
2022-06-14Docs: Update documentation for redesigned Traffic TabsRoland Knall1-2/+2
Update the documentation to document the change of features that happen during the redesign of the UI as well as fix some wordings in the data model.
2022-06-14Qt: Redesign TrafficTree Dialogs UIRoland Knall1-26/+20
The new UI should better group functionality and as well as better showing which taps are available and can be used.
2022-06-13Qt: Fix sorting for portsRoland Knall1-9/+14
Ports where sorted as string and not numerical
2022-06-13Qt: Fix maxmind open mapRoland Knall1-29/+33
Fix an issue, where the map button is not correctly activated and therefore the map cannot be shown or opened
2022-06-13Qt: Better sorting for traffic dialogsRoland Knall1-3/+34
Allow the traffic columns to automatically sort on secondary columns if applicable. e.g. the address and port column for TCP and UDP, or the secondary address for conversations
2022-06-12Qt: Adapt sorting for traffic tablesRoland Knall1-23/+34
Improve sorting for the traffic tables
2022-06-10Qt: Implement total columns for traffic tablesRoland Knall1-18/+108
Implement a column type, which will show total values for traffic columns. Implements #15071
2022-06-04Qt: Move most Contextmenu stuff to TrafficTreeRoland Knall1-0/+4
Create a new class, which handles the context menu stuff for the traffic data, as well as remove unnecessary signals used by the sub-dialogs.
2022-06-03Qt: Better handle retapping for traffic tablesRoland Knall1-2/+5
Retapping can have some side-effects and was done in an overflowing way. Reducing the number of times retapping is required and done, and also giving control for taps reload to TrafficTab
2022-06-02Qt: Fix coverity warnings for TrafficViewRoland Knall1-6/+13
2022-06-02Qt: Minor changes to TrafficTreesRoland Knall1-35/+4
Move the corner button to a QToolButton and put it in a widget to better handle size constraints. Also fix some fallthroughs and remove unneeded code
2022-06-02Qt: Fix build withouth MaxMindDBStig Bjørlykke1-1/+3
2022-06-01Qt: Fix warning for TrafficDataRoland Knall1-1/+0
2022-06-01Qt: Save Trafficdata as rawRoland Knall1-10/+12
Allow the option to save the data from the traffic dialogs as raw data and enable it as the default option for 4.0. The option to display the data with pretty formatting is still available.
2022-06-01Qt: Move Traffic Tables to Model/ViewRoland Knall1-0/+702
The current model makes it very hard to extend the traffic tables with new functionality. For instance, having a total view column additionally to the normal columns when filtered. This change removes the QTreeWidget and moves to a more generic approach using QAbstractListModel elements. It is implemented in thtree parts: - ATapDataModel implements the basic collection and handling of the tap data information, as well as updating if new data is becoming available - EndpointDataModel / ConversationDataModel handles the display and representation of the data - Implementing TrafficTab as a TabWidget which will handle the adding/removing of new protocol tabs