[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tinc/src/netbsd device.c,1.1.2.10,1.1.2.11
Update of /home/CVS/tinc/src/netbsd
In directory humbolt:/tmp/cvs-serv19621/netbsd
Modified Files:
Tag: CABAL
device.c
Log Message:
Update all device.c files.
Index: device.c
===================================================================
RCS file: /home/CVS/tinc/src/netbsd/device.c,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -r1.1.2.10 -r1.1.2.11
--- device.c 2003/07/12 17:41:48 1.1.2.10
+++ device.c 2003/07/18 13:41:36 1.1.2.11
@@ -20,26 +20,12 @@
$Id$
*/
-#include "config.h"
-
-#include <stdio.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/uio.h>
-#include <sys/stat.h>
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <fcntl.h>
-#include <net/if.h>
-#include <unistd.h>
-#include <string.h>
+#include "system.h"
-#include <utils.h>
#include "conf.h"
-#include "net.h"
#include "logger.h"
-
-#include "system.h"
+#include "net.h"
+#include "utils.h"
#define DEFAULT_DEVICE "/dev/tun0"
@@ -49,7 +35,7 @@
int device_fd = -1;
int device_type;
char *device;
-char *interface;
+char *iface;
char *device_info;
int device_total_in = 0;
@@ -62,8 +48,8 @@
if(!get_config_string(lookup_config(config_tree, "Device"), &device))
device = DEFAULT_DEVICE;
- if(!get_config_string(lookup_config(config_tree, "Interface"), &interface))
- interface = rindex(device, '/') ? rindex(device, '/') + 1 : device;
+ if(!get_config_string(lookup_config(config_tree, "Interface"), &iface))
+ 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 -1;
--
Tinc-cvs: CVS changelog list for the tinc VPN daemon
Archive: http://mail.nl.linux.org/tinc-cvs/
Tinc site: http://tinc.nl.linux.org/
- Prev by Date:
tinc/lib dropin.h,1.1.2.12,1.1.2.13 ethernet.h,1.1.2.2,1.1.2.3 ipv4.h,1.1.2.1,1.1.2.2 ipv6.h,1.1.2.4,1.1.2.5
- Next by Date:
tinc/src/openbsd device.c,1.1.2.15,1.1.2.16
- Prev by thread:
tinc/lib dropin.h,1.1.2.12,1.1.2.13 ethernet.h,1.1.2.2,1.1.2.3 ipv4.h,1.1.2.1,1.1.2.2 ipv6.h,1.1.2.4,1.1.2.5
- Next by thread:
tinc/src/openbsd device.c,1.1.2.15,1.1.2.16
- Index(es):