Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the NetService Bounjour browsing API to "enable" AWDL traffic #3

Open
derhuerst opened this issue Feb 25, 2020 · 1 comment
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@derhuerst
Copy link
Owner

It seems like, on some Macs, AWDL traffic is not permanently "enabled"/allowed, but applications must explicitly request it to be "passed through" to the awdl0 interface. proxawdl does this via the NetService API:

https://github.com/seemoo-lab/proxawdl/blob/24c19da1b0fb71a180104e2014a93e11d7bd5227/proxawdl/main.swift#L108-L128

@derhuerst derhuerst added bug Something isn't working help wanted Extra attention is needed labels Feb 25, 2020
@derhuerst
Copy link
Owner Author

Some debugging tricks from the AWDL paper:

Apple Console. The Console program is the central place to access logs since macOS 10.12 and includes debug mes- sages from the kernel. To receive verbose output from the Wi-Fi driver, we increased the log level using custom boot arguments which we found by searching for references to the PE_parse_boot_arg function in the Wi-Fi driver. The following boot arguments maximize the driver’s debug out- put:

nvram boot-args="debug=0x10000 \ awdl_log_flags=0xffffffffffffffff \ awdl_log_flags_verbose=0xffffffffffffffff \ awdl_log_flags_config=1 wlan.debug.enable=0xff"

With the increased log level, Console shows additional in- formation such as state transitions and the current channel sequence:

IO80211Family <...> com.apple.p2p: AWDL ON: [infra 􏰀→ (100) 72%], (6/44/44) [44 0 0 0 0 0 0 0 6 44 􏰀→ 44 0 0 0 0 0] Low Power

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant