2 * Net Integration Lame Duck Software:
3 * Copyright (C) 1997-2003 Net Integration Technologies, Inc.
5 * Classes for establishing an IPSec tunnel in userspace, reading to and
11 #include "wvespstream.h"
12 #include "wvipsecguide.h"
14 WvEsp::WvEsp(WvIpSecGuide
*_parent
, WvConf
&_cfg
)
15 : cfg(_cfg
), log("WvEsp", WvLog::Debug3
)
17 log("Constructor()\n");
22 _parent
->selectlist
.append(&selectlist
, false);
32 void WvEsp::tundev_callback(WvStream
&s
, void *unused
)
34 log("tundev_callback\n");
39 void WvEsp::set_tundev(WvStream
*_tundev
)
44 selectlist
.unlink(tundev
);
45 tundev
->setcallback(WvStreamCallback(), NULL
);
53 tundev
->force_select(true, false, false);
55 tundev
->setcallback(WvStreamCallback(this,
56 &WvEsp::tundev_callback
), 0);
57 selectlist
.append(tundev
, false, "tun device");
62 void WvEsp::recv_handler()
64 log("recv_handler\n");
69 void WvEsp::send_handler()
71 log("send_handler\n");