1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Able security/nmap open more than 128 bpfs.

- Bump PORTREVISION

PR:		98080
Submitted by:	marck
Approved by:	maintainer
This commit is contained in:
Marcus Alves Grando 2006-06-06 01:30:16 +00:00
parent fc7a695639
commit cbedd5479a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164547
2 changed files with 18 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME?= nmap
PORTVERSION= ${DISTVERSION:L:C/([a-z])[a-z]+/\1/g:C/[^a-z0-9+]+/./g}
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= security ipv6
MASTER_SITES= http://download.insecure.org/nmap/dist/ \
http://www.mirrors.wiretapped.net/security/network-mapping/nmap/ \

View File

@ -0,0 +1,17 @@
#
# $FreeBSD$
#
# - nmap fails to attach to bpf when more than 128 bpfs are busy.
# PR: 98080
#
--- libdnet-stripped/src/eth-bsd.c.orig
+++ libdnet-stripped/src/eth-bsd.c
@@ -45,7 +45,7 @@
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);
e->fd = open(file, O_WRONLY);
if (e->fd != -1 || errno != EBUSY)