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:
parent
fc7a695639
commit
cbedd5479a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=164547
@ -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/ \
|
||||
|
17
security/nmap/files/patch-libdnet-stripped__src__eth-bsd.c
Normal file
17
security/nmap/files/patch-libdnet-stripped__src__eth-bsd.c
Normal 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)
|
Loading…
Reference in New Issue
Block a user