From 6e297e1cdff3568da19760e7e7c615ee4e8383ef Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 16 Dec 2025 10:15:24 -0800 Subject: [PATCH] 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 3767dd099d2..aff33c218c0 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 /*