Added
Link Here
|
1 |
|
2 |
$FreeBSD$ |
3 |
|
4 |
--- libdnet-stripped/src/eth-bsd.c.orig |
5 |
+++ libdnet-stripped/src/eth-bsd.c |
6 |
@@ -45,7 +45,7 @@ |
7 |
int i; |
8 |
|
9 |
if ((e = calloc(1, sizeof(*e))) != NULL) { |
10 |
- for (i = 0; i < 128; i++) { |
11 |
+ for (i = 0; i < 1024; i++) { |
12 |
snprintf(file, sizeof(file), "/dev/bpf%d", i); |
13 |
e->fd = open(file, O_WRONLY); |
14 |
if (e->fd != -1 || errno != EBUSY) |