1 /* 2 * tun.h 3 * 4 * Copyright (c) 2001 Dug Song <dugsong@monkey.org> 5 * 6 * $Id: tun.h,v 1.3 2002/01/22 20:59:02 dugsong Exp $ 7 */ 8 9 #ifndef TUN_H 10 #define TUN_H 11 12 typedef void (*tun_handler)(void *buf, size_t len, void *arg); 13 14 tun_t *tun_open(struct addr *src, struct addr *dst, int mtu); 15 int tun_register(tun_t *tun, tun_handler callback, void *arg); 16 tun_t *tun_close(tun_t *tun); 17 18 #endif /* TUN_H */ 19