ports/security/nmap-devel/files/patch-libdnet-stripped_src_eth-bsd.c
Cy Schubert c89426b1f2 security/nmap-devel: New port
Introduce nmap development port. The development branch includes
prerequisite updates including the pcre2 replacement of pcre.
This port tracks the nmap/nmap github repo.
2024-03-28 13:53:59 -07:00

11 lines
431 B
C

--- libdnet-stripped/src/eth-bsd.c.orig 2009-11-09 04:49:32 UTC
+++ libdnet-stripped/src/eth-bsd.c
@@ -45,7 +45,7 @@ eth_open(const char *device)
int i;
if ((e = calloc(1, sizeof(*e))) != NULL) {
- for (i = 0; i < 128; i++) {
+ for (i = 0; i < 1024; i++) {
snprintf(file, sizeof(file), "/dev/bpf%d", i);
/* This would be O_WRONLY, but Mac OS X 10.6 has a bug
where that prevents other users of the interface