aboutsummaryrefslogtreecommitdiff
path: root/pcap-dbus.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-dbus.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-dbus.c')
-rw-r--r--pcap-dbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap-dbus.c b/pcap-dbus.c
index 506f150f..7af89b91 100644
--- a/pcap-dbus.c
+++ b/pcap-dbus.c
@@ -227,7 +227,7 @@ dbus_activate(pcap_t *handle)
handle->linktype = DLT_DBUS;
handle->read_op = dbus_read;
handle->inject_op = dbus_write;
- handle->setfilter_op = install_bpf_program; /* XXX, later add support for dbus_bus_add_match() */
+ handle->setfilter_op = pcap_install_bpf_program; /* XXX, later add support for dbus_bus_add_match() */
handle->setdirection_op = NULL;
handle->set_datalink_op = NULL; /* can't change data link type */
handle->getnonblock_op = dbus_getnonblock;
@@ -338,11 +338,11 @@ dbus_findalldevs(pcap_if_list_t *devlistp, char *err_str)
* The notion of "connected" vs. "disconnected" doesn't apply.
* XXX - what about the notions of "up" and "running"?
*/
- if (add_dev(devlistp, "dbus-system",
+ if (pcap_add_dev(devlistp, "dbus-system",
PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE, "D-Bus system bus",
err_str) == NULL)
return -1;
- if (add_dev(devlistp, "dbus-session",
+ if (pcap_add_dev(devlistp, "dbus-session",
PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE, "D-Bus session bus",
err_str) == NULL)
return -1;