File: tun.h

package info (click to toggle)
fragroute 1.2-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 692 kB
  • ctags: 520
  • sloc: ansic: 4,331; sh: 2,842; makefile: 74
file content (20 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * tun.h
 *
 * Copyright (c) 2001 Dug Song <dugsong@monkey.org>
 *
 * $Id: tun.h,v 1.3 2002/01/22 20:59:02 dugsong Exp $
 */

#ifndef TUN_H
#define TUN_H

typedef struct tun tun_t;

typedef void (*tun_handler)(void *buf, size_t len, void *arg);

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);

#endif /* TUN_H */