diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-16 18:15:24 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2025-12-16 18:15:24 +0000 |
| commit | 6e297e1cdff3568da19760e7e7c615ee4e8383ef (patch) | |
| tree | 91511008817a7861b141aaa40bb0101a426ced45 | |
| parent | 2c75ac14d7e9d1d57d70bbf26716868607f0d1fe (diff) | |
libpcap: don't try to create usbusX interfaces
| -rw-r--r-- | contrib/libpcap/pcap-bpf.c | 6 |
1 files 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 /* |
