summaryrefslogtreecommitdiffstats
path: root/libdnet-stripped/src/tun-none.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdnet-stripped/src/tun-none.c')
-rw-r--r--libdnet-stripped/src/tun-none.c58
1 files changed, 58 insertions, 0 deletions
diff --git a/libdnet-stripped/src/tun-none.c b/libdnet-stripped/src/tun-none.c
new file mode 100644
index 0000000..940d8ae
--- /dev/null
+++ b/libdnet-stripped/src/tun-none.c
@@ -0,0 +1,58 @@
+/*
+ * tun-none.c
+ *
+ * Copyright (c) 2001 Dug Song <dugsong@monkey.org>
+ *
+ * $Id: tun-none.c 548 2005-01-30 06:01:57Z dugsong $
+ */
+
+#include "config.h"
+
+#include <sys/types.h>
+
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "dnet.h"
+
+tun_t *
+tun_open(struct addr *src, struct addr *dst, int mtu)
+{
+ errno = ENOSYS;
+ return (NULL);
+}
+
+const char *
+tun_name(tun_t *tun)
+{
+ errno = ENOSYS;
+ return (NULL);
+}
+
+int
+tun_fileno(tun_t *tun)
+{
+ errno = ENOSYS;
+ return (-1);
+}
+
+ssize_t
+tun_send(tun_t *tun, const void *buf, size_t size)
+{
+ errno = ENOSYS;
+ return (-1);
+}
+
+ssize_t
+tun_recv(tun_t *tun, void *buf, size_t size)
+{
+ errno = ENOSYS;
+ return (-1);
+}
+
+tun_t *
+tun_close(tun_t *tun)
+{
+ return (NULL);
+}