WvStreams
wvtundev.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4  *
5  * A tun device wrapper.
6  */
7 #ifndef __WV_TUNDEV_H
8 #define __WV_TUNDEV_H
9 
10 #include "wvfile.h"
11 #include "wvinterface.h"
12 #include "wvaddr.h"
13 
21 class WvTunDev : public WvFile
22 {
23 public:
30  WvTunDev(const WvIPNet &addr, int mtu = 1400);
31 
34 
35 private:
36  void init(const WvIPNet &addr, int mtu);
37 
38 public:
39  const char *wstype() const { return "WvTunDev"; }
40 };
41 
42 
43 #endif
WvIPNet
An IP network comprises two WvIPAddr structures: an address and a netmask.
Definition: wvaddr.h:312
WvFile
WvFile implements a stream connected to a file or Unix device.
Definition: wvfile.h:28
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition: wvstring.h:329
WvTunDev
WvTunDev provides a convenient way of using Linux tunnel devices.
Definition: wvtundev.h:21
WvTunDev::WvTunDev
WvTunDev(const WvIPNet &addr, int mtu=1400)
Creates a tunnel device and its associated interface.
Definition: wvtundev.cc:18
WvTunDev::ifcname
WvString ifcname
Contains the name of the interface associated with the device.
Definition: wvtundev.h:33