User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
debugging [2019/02/18 17:33]
Denis Kenzior created
debugging [2020/10/21 16:20]
Andrew Zaborowski [Enabling iwd debug output] Add regexes to remove BSSIDs and SSIDs from @mps
Line 17: Line 17:
 The above would only print debug messages from the station module. The above would only print debug messages from the station module.
 +Sometimes users or developers will want to share debug logs with other developers to help in debugging. ​ Some, who considered the SSIDs or MAC addresses (BSSIDs) in their debug logs sensitive, have used the following commands to filter the logs.  IWD will eventually support doing this internally.
 +$ sed -E "​s/​([0-9a-fA-F]{2}:?​){6}/​11:​22:​33:​44:​55:​66/"​ iwd.log | sed -e "​s/​SSID:​\ .*, f/SSID: xxx f/" | sed '​s/​Added new Network .* security/​Added new Network "​xxx"​ security/'​
 ==== Enabling TLS Debugging ==== ==== Enabling TLS Debugging ====
Line 46: Line 51:
 </​code>​ </​code>​
-NOTE: If you're interested in obtaining EAPoL traffic, then you must ensure that iwd's main.conf ControlPortOverNL80211 option is set to False.+==== Debug environment variables summary ==== 
 +Here are the environment variables ​you can set to enable specific debug output in addition to the ''​-d''​ switch.
 +^                    ^                                                                ^
 +| ''​IWD_TLS_DEBUG'' ​     | Debug output for TLS tunnels used by EAP methods ​              |
 +| ''​IWD_GENL_DEBUG'' ​    | Debug output for Generic Netlink communication with the kernel |
 +| ''​IWD_RTNL_DEBUG'' ​    | Debug output for Route Netlink communication with the kernel ​  |
 +| ''​IWD_DHCP_DEBUG'' ​    | Debug output for the internal DHCP client ​                     |
 +| ''​IWD_WSC_DEBUG_KEYS''​ | (requires ''​-d''​) Print out credentials obtained through WSC   |
debugging.txt · Last modified: 2021/11/07 02:53 by Andrew Zaborowski