aboutsummaryrefslogtreecommitdiff
path: root/pcap-bt-monitor-linux.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2023-05-16 20:12:25 -0700
committerGuy Harris <gharris@sonic.net>2023-05-26 12:11:41 -0700
commitd14fb11d0dfc06ee5dac58146497aa5b0aa7c6fa (patch)
treed5788de7a812404fbdf6dce2c51d7d593e5ac5f1 /pcap-bt-monitor-linux.c
parenteb324d58b651674764c17ed63dddc568952ffed9 (diff)
Prefix routines declared in pcap-int.h with pcap_.
This avoids potential and, in one case (SIMH), actual collisions with names in other libraries or in applications using libpcap.
Diffstat (limited to 'pcap-bt-monitor-linux.c')
-rw-r--r--pcap-bt-monitor-linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcap-bt-monitor-linux.c b/pcap-bt-monitor-linux.c
index 3d4f0b08..0a0dab18 100644
--- a/pcap-bt-monitor-linux.c
+++ b/pcap-bt-monitor-linux.c
@@ -80,7 +80,7 @@ bt_monitor_findalldevs(pcap_if_list_t *devlistp, char *err_str)
* more than there's a notion of "connected" or "disconnected"
* for the "any" device.
*/
- if (add_dev(devlistp, INTERFACE_NAME,
+ if (pcap_add_dev(devlistp, INTERFACE_NAME,
PCAP_IF_WIRELESS|PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE,
"Bluetooth Linux Monitor", err_str) == NULL)
{
@@ -204,7 +204,7 @@ bt_monitor_activate(pcap_t* handle)
handle->read_op = bt_monitor_read;
handle->inject_op = bt_monitor_inject;
- handle->setfilter_op = install_bpf_program; /* no kernel filtering */
+ handle->setfilter_op = pcap_install_bpf_program; /* no kernel filtering */
handle->setdirection_op = NULL; /* Not implemented */
handle->set_datalink_op = NULL; /* can't change data link type */
handle->getnonblock_op = pcap_getnonblock_fd;