diff options
author | Guy Harris <gharris@sonic.net> | 2023-05-16 20:12:25 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2023-05-26 12:11:41 -0700 |
commit | d14fb11d0dfc06ee5dac58146497aa5b0aa7c6fa (patch) | |
tree | d5788de7a812404fbdf6dce2c51d7d593e5ac5f1 /pcap-snf.c | |
parent | eb324d58b651674764c17ed63dddc568952ffed9 (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-snf.c')
-rw-r--r-- | pcap-snf.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -320,7 +320,7 @@ snf_activate(pcap_t* p) p->linktype = DLT_EN10MB; p->read_op = snf_read; p->inject_op = snf_inject; - p->setfilter_op = install_bpf_program; + p->setfilter_op = pcap_install_bpf_program; p->setdirection_op = NULL; /* Not implemented.*/ p->set_datalink_op = snf_set_datalink; p->getnonblock_op = snf_getnonblock; @@ -413,7 +413,7 @@ snf_findalldevs(pcap_if_list_t *devlistp, char *errbuf) * See if there's already an entry for the device * with the name ifa->snf_ifa_name. */ - dev = find_dev(devlistp, ifa->snf_ifa_name); + dev = pcap_find_dev(devlistp, ifa->snf_ifa_name); if (dev != NULL) { /* * Yes. Update its description. @@ -439,7 +439,7 @@ snf_findalldevs(pcap_if_list_t *devlistp, char *errbuf) * PCAP_IF_CONNECTION_STATUS_CONNECTED or * PCAP_IF_CONNECTION_STATUS_DISCONNECTED? */ - dev = add_dev(devlistp, ifa->snf_ifa_name, 0, desc, + dev = pcap_add_dev(devlistp, ifa->snf_ifa_name, 0, desc, errbuf); if (dev == NULL) return -1; @@ -454,7 +454,7 @@ snf_findalldevs(pcap_if_list_t *devlistp, char *errbuf) * to IPv4 address. */ addr.sin_family = AF_INET; - if (add_addr_to_dev(dev, &addr, sizeof(addr), + if (pcap_add_addr_to_dev(dev, &addr, sizeof(addr), NULL, 0, NULL, 0, NULL, 0, errbuf) == -1) return -1; } else if (ret == -1) { @@ -489,7 +489,7 @@ snf_findalldevs(pcap_if_list_t *devlistp, char *errbuf) * "disconnected", as "is this plugged into a network?" * would be a per-port property. */ - if (add_dev(devlistp, name, + if (pcap_add_dev(devlistp, name, PCAP_IF_CONNECTION_STATUS_NOT_APPLICABLE, desc, errbuf) == NULL) return (-1); |