00001
00002
00003
00004
00005
00006
00007 #ifndef __WV_TUNDEV_H
00008 #define __WV_TUNDEV_H
00009
00010 #include "wvfile.h"
00011 #include "wvinterface.h"
00012 #include "wvaddr.h"
00013
00021 class WvTunDev : public WvFile
00022 {
00023 public:
00030 WvTunDev(const WvIPNet &addr, int mtu = 1400);
00031
00033 WvString ifcname;
00034
00035 private:
00036 void init(const WvIPNet &addr, int mtu);
00037
00038 public:
00039 const char *wstype() const { return "WvTunDev"; }
00040 };
00041
00042
00043 #endif