3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00
Commit Graph

69 Commits

Author SHA1 Message Date
Jukka Rissanen
89bacdbc08 monitor: Use standard printf modifiers for attribute values
Use PRIu64 etc. macros from inttypes.h so that the code works
in every situation, otherwise using %lu for U64 value gives
segfault.
2014-10-07 21:24:26 -05:00
Denis Kenzior
d9768348d5 monitor: Always try to find an existing interface
Duplicate detection will happen when we try to create a new link.  The
newlink flags were updated to fail if the device already exists.
2014-10-04 21:31:58 -05:00
Denis Kenzior
046e49588e monitor: Fix minor coding style issues 2014-10-04 21:08:51 -05:00
Denis Kenzior
5fae2cc524 monitor: Fix whitespace
No spaces for indentation
2014-10-04 21:07:18 -05:00
Patrik Flykt
1d4ab8de47 monitor: Remove netlink monitor interface if created by iwmon
Send a RTM_DELLINK for the interface in use if it was created by iwmon.
As the main loop needs to be running when sending RTM_DELLINK, add a
timeout function for quitting the main loop.
2014-10-04 21:07:15 -05:00
Patrik Flykt
0b75b71555 monitor: Create netlink monitor interface if not found
If the netlink monitor interface is not found or did not have all needed
flags set, create one with the proper flags.
2014-10-04 20:58:46 -05:00
Denis Kenzior
73f5f0766d monitor: Fix memory leak
In the case that we use iwmon --interface nlmon
2014-10-04 20:50:16 -05:00
Denis Kenzior
38ab7511af monitor: minor coding style fix ups 2014-10-04 20:41:32 -05:00
Patrik Flykt
19e2132fce monitor: Lookup existing monitor interface via netlink
On startup, request a list of interfaces via netlink. Find out whether
an interface of type nlmon exists and use it if it has all the needed
flags set. The default name of the interface is 'nlmon', which can be
changed from the command line. If the interface name is in use and is
not an nlmon type, print out an error message and exit.
2014-10-04 19:56:01 -05:00
Marcel Holtmann
9fa506c237 monitor: Add option to provide nl80211 family identifier 2014-08-16 00:00:10 +02:00
Marcel Holtmann
18652f1f49 monitor: Add support for extracting family identifiers from traces 2014-08-15 23:38:37 +02:00
Marcel Holtmann
d57006ae23 monitor: Match on skb->dev->type and skb->protocol for both filters 2014-08-13 22:22:28 -07:00
Marcel Holtmann
0d81689e08 monitor: Use socket filter also for netlink monitor interface 2014-08-13 21:55:06 -07:00
Marcel Holtmann
40160a7fd4 monitor: Use socket filter for PAE / EAPoL to catch all packets 2014-08-12 21:44:30 -07:00
Marcel Holtmann
07aabaf455 monitor: Fix spelling mistake with timestamp error message 2014-08-12 21:43:39 -07:00
Marcel Holtmann
50f8c8614b monitor: Print RTNL traffic also when live sniffing 2014-08-12 20:27:48 -07:00
Marcel Holtmann
d3f37628b0 monitor: Add support for writing combined PCAP trace files 2014-08-12 19:35:59 -07:00
Marcel Holtmann
b97c661a97 monitor: Print out relative timestamp offset for each packet 2014-08-12 17:40:51 -07:00
Marcel Holtmann
2749e4e4a2 monitor: Print details for RTNL Set Link commands 2014-08-12 17:24:03 -07:00
Marcel Holtmann
772574716e monitor: Add proper labels to RTNL messages 2014-08-12 16:57:48 -07:00
Marcel Holtmann
581f00171d monitor: Skip packet from PCAP file if it is truncated 2014-08-12 00:40:07 -07:00
Marcel Holtmann
b00bea15ab monitor: Fix minor typo in management frame type 2014-08-11 20:33:08 -07:00
Marcel Holtmann
da058ae75b monitor: Add entry for WPI-SMS4 keys and cipher 2014-08-11 00:16:51 -07:00
Marcel Holtmann
7dfe703286 monitor: Add support for decoding pairwise and group cipher information 2014-08-10 21:54:26 -07:00
Marcel Holtmann
e969407e2c monitor: Add support for decoding cipher suites attribute 2014-08-10 21:48:22 -07:00
Marcel Holtmann
5cf13fa692 monitor: Fix max remain on channel attribute decoding 2014-08-10 21:48:02 -07:00
Marcel Holtmann
a95c720d64 monitor: Decode the EAPoL packet headers of PAE frames 2014-08-10 20:20:13 -07:00
Marcel Holtmann
351208b642 monitor: Decode key default types and key cipher information 2014-08-10 19:22:11 -07:00
Marcel Holtmann
a2a59e78fa monitor: Extract PAE port traffic out of PCAP files and decode it 2014-08-10 18:32:11 -07:00
Marcel Holtmann
9fbd454c88 monitor: Fix check for netlink hardware and protocol type 2014-08-10 17:33:48 -07:00
Marcel Holtmann
4a5f30bbc2 monitor: Listing to Ethernet packets on PAE port and display them 2014-08-10 14:57:28 -07:00
Marcel Holtmann
a65362f510 monitor: Fix missing timestamp handling for netlink messages 2014-08-10 14:35:33 -07:00
Marcel Holtmann
d8ed30e13b monitor: Decode OUI portion of vendor specific information elements 2014-08-10 13:21:49 -07:00
Marcel Holtmann
b4eb544355 monitor: Handle timestamp and real packet length information 2014-08-10 12:45:56 -07:00
Marcel Holtmann
b91bb55206 monitor: Use packet buffer of 16 kilobytes to allow large frames 2014-08-10 12:25:20 -07:00
Marcel Holtmann
9cdb52a167 monitor: Fix issue with large packets in PCAP files 2014-08-10 12:19:58 -07:00
Marcel Holtmann
91c305d9af monitor: Adjust indentation for IE binary data information 2014-08-10 11:41:51 -07:00
Marcel Holtmann
da3c7310a0 monitor: Add support for decoding connection quality monitor attributes 2014-08-10 11:35:16 -07:00
Marcel Holtmann
4ec7eb1c74 monitor: Add support for decoding station info and flags 2014-08-10 11:32:30 -07:00
Marcel Holtmann
c80877808f monitor: Print error message string for dump requests 2014-08-10 10:38:14 -07:00
Marcel Holtmann
bbca35c57b monitor: Add support for decoding frame types 2014-08-10 01:01:47 -07:00
Marcel Holtmann
c50d624e55 monitor: Decode information elements binary into individual tags 2014-08-10 00:14:29 -07:00
Marcel Holtmann
0394da4ce2 monitor: Add support for custom decoding functions 2014-08-10 00:07:53 -07:00
Marcel Holtmann
55bbf22edb monitor: Enable kernel side timestamps and make them available 2014-08-09 23:48:25 -07:00
Marcel Holtmann
7a1bb1e953 monitor: Improve message and attribute display handling 2014-08-09 22:59:42 -07:00
Marcel Holtmann
9635f317c0 monitor: Add support for builtin pager functionality 2014-08-09 19:29:48 -07:00
Marcel Holtmann
8c5de4fd1f monitor: Fix printing of netlink error codes 2014-08-09 19:22:19 -07:00
Marcel Holtmann
7689d2202f monitor: Print netlink command complete error messages 2014-08-09 16:34:39 -07:00
Marcel Holtmann
df718dda94 monitor: Fix issue with enabling PACKET_MR_ALLMULTI option 2014-08-09 13:03:30 -07:00
Marcel Holtmann
933ac55cce monitor: Try to enable PACKET_MR_ALLMULTI on netlink monitor device 2014-08-09 12:32:55 -07:00