The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=6e297e1cdff3568da19760e7e7c615ee4e8383ef

commit 6e297e1cdff3568da19760e7e7c615ee4e8383ef
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2025-12-16 18:15:24 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2025-12-16 18:15:24 +0000

    libpcap: don't try to create usbusX interfaces
---
 contrib/libpcap/pcap-bpf.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/libpcap/pcap-bpf.c b/contrib/libpcap/pcap-bpf.c
index 3767dd099d2c..aff33c218c0d 100644
--- a/contrib/libpcap/pcap-bpf.c
+++ b/contrib/libpcap/pcap-bpf.c
@@ -2037,11 +2037,11 @@ pcap_activate_bpf(pcap_t *p)
        }
 #endif /* __APPLE__ */
 
+#if defined(__FreeBSD__) && __FreeBSD_version < 1600006
        /*
-        * If this is FreeBSD, and the device name begins with "usbus",
+        * If this is legacy FreeBSD, and the device name begins with "usbus",
         * try to create the interface if it's not available.
         */
-#if defined(__FreeBSD__) && defined(SIOCIFCREATE2)
        if (strncmp(p->opt.device, usbus_prefix, USBUS_PREFIX_LEN) == 0) {
                /*
                 * Do we already have an interface with that name?
@@ -2115,7 +2115,7 @@ pcap_activate_bpf(pcap_t *p)
                        pcapint_add_to_pcaps_to_close(p);
                }
        }
-#endif /* defined(__FreeBSD__) && defined(SIOCIFCREATE2) */
+#endif /* defined(__FreeBSD__) && __FreeBSD_version < 1600006 */
 
 #ifdef HAVE_ZEROCOPY_BPF
        /*

Reply via email to