2dee0083a6
provided by libdnet. This was broken during the last update of libdnet to 0.10, as the previous versions did not include the tun stuff.
21 lines
643 B
Text
21 lines
643 B
Text
$NetBSD: patch-ab,v 1.3 2005/03/20 16:38:10 jmmv Exp $
|
|
|
|
--- tun.h.orig 2002-01-22 21:59:02.000000000 +0100
|
|
+++ tun.h
|
|
@@ -9,10 +9,16 @@
|
|
#ifndef TUN_H
|
|
#define TUN_H
|
|
|
|
+#define tun fragroute_tun
|
|
+#define tun_t fragroute_tun_t
|
|
typedef struct tun tun_t;
|
|
|
|
+#define tun_handler fragroute_tun_handler
|
|
typedef void (*tun_handler)(void *buf, size_t len, void *arg);
|
|
|
|
+#define tun_open fragroute_tun_open
|
|
+#define tun_register fragroute_tun_register
|
|
+#define tun_close fragroute_tun_close
|
|
tun_t *tun_open(struct addr *src, struct addr *dst, int mtu);
|
|
int tun_register(tun_t *tun, tun_handler callback, void *arg);
|
|
tun_t *tun_close(tun_t *tun);
|