freebsd-ports/security/nmap/files/patch-libdnet-stripped__src__eth-bsd.c
Olli Hauer e48f1b3666 - update to 6.49BETA5
- use DOCS instead PORTDOCS
- remove gcc workaround [1]
- (hopefully) use the correct __FreeBSD_version for SOCK_RAW

Changelog:
https://nmap.org/changelog.html

PR:		196065 [1]
PR:		200558 [2]
PR:		202139 [3]

Submitted by:	sbruno@ , mikael.urankar@gmail.com [1]
Submitted by:	truckman@ [2]
Submitted by:	trasz@ [3]
2015-09-27 10:32:29 +00: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