summaryrefslogtreecommitdiffstats
path: root/netrom
diff options
context:
space:
mode:
authorThomas Osterried <ax25@x-berg.in-berlin.de>2014-10-23 14:47:11 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-05-01 23:55:29 +0200
commit5b7845fbd7e220e0fae0dede75df1bc934b2efe0 (patch)
treee4ff67dc10761a6eeb025a6446413231305bda0f /netrom
parentc57db66cb020c01e848f96614998983c8c81ce96 (diff)
The current linux kernel has no limit anymore for the number of netrom
and rose devices (previously 4 netrom, 6 rose). Thanks to Jaroslav, OK2JRQ for the patch
Diffstat (limited to 'netrom')
-rw-r--r--netrom/nrattach.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/netrom/nrattach.c b/netrom/nrattach.c
index 49c5553..f1ca298 100644
--- a/netrom/nrattach.c
+++ b/netrom/nrattach.c
@@ -7,6 +7,7 @@
#include <signal.h>
#include <ctype.h>
#include <netdb.h>
+#include <limits.h>
#include <config.h>
@@ -104,7 +105,7 @@ int getfreedev(char *dev)
return FALSE;
}
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < INT_MAX; i++) {
sprintf(dev, "nr%d", i);
strcpy(ifr.ifr_name, dev);