Displaying 1 result from an estimated 1 matches for "device_total_in".
2006 Jun 01
2
Finding the right interface on FreeBSD
...rc/bsd/device.c
--- tinc-1.0.4/src/bsd/device.c Wed May 4 18:57:55 2005
+++ tinc-1.0.4.gr/src/bsd/device.c Wed May 17 22:47:27 2006
@@ -38,6 +38,10 @@
int device_fd = -1;
char *device;
+
+static char device_buf[256];
+#define DEVICE_TRIES_MAX 255
+
char *iface;
char *device_info;
static int device_total_in = 0;
@@ -60,8 +64,31 @@
iface = rindex(device, '/') ? rindex(device, '/') + 1 : device;
if((device_fd = open(device, O_RDWR | O_NONBLOCK)) < 0) {
- logger(LOG_ERR, _("Could not open %s: %s"), device, strerror(errno));
- return false;
+ int device_nr;
+
+ /* i...