diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-04-30 23:24:34 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-04-30 23:24:34 -0700 |
commit | da2ce0863470745ac71b1b0b3e7b8f9adde5813e (patch) | |
tree | 273544b6d97fd89f9e248423527471168162cab9 /pcap-bt-monitor-linux.c | |
parent | 78ce089b1efa2e79afa1ffa14d6b6883ba006521 (diff) |
Bluetooth is wireless, and bluetooth-monitor has no "connected" notion.
Diffstat (limited to 'pcap-bt-monitor-linux.c')
-rw-r--r-- | pcap-bt-monitor-linux.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pcap-bt-monitor-linux.c b/pcap-bt-monitor-linux.c index cee34bcd..c222c100 100644 --- a/pcap-bt-monitor-linux.c +++ b/pcap-bt-monitor-linux.c @@ -64,7 +64,16 @@ bt_monitor_findalldevs(pcap_if_list_t *devlistp, char *err_str) { int ret = 0; - if (add_dev(devlistp, INTERFACE_NAME, 0, + /* + * Bluetooth is a wireless technology. + * + * This is a device to monitor all Bluetooth interfaces, so + * there's no notion of "connected" or "disconnected", any + * more than there's a notion of "connected" or "disconnected" + * for the "any" device. + */ + if (add_dev(devlistp, INTERFACE_NAME, + PCAP_IF_WIRELESS|PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE, "Bluetooth Linux Monitor", err_str) == NULL) { ret = -1; |