"""
def __init__(self):
+ # Some operational attributes
+ self.listen = False
+ self.ethernet_mode = True
+ self.with_pi = False
+
# These get initialized when the channel is configured
# They're part of the TUN standard attribute set
self.tun_port = None
# some state
self.prepared = False
- self.listen = False
self._terminate = [] # terminate signaller
self._connected = threading.Event()
self._forwarder_thread = None
local_proto = self.tun_proto
stderr = self.stderr
+ ether_mode = self.ethernet_mode
+ with_pi = self.with_pi
if local_proto != peer_proto:
raise RuntimeError, "Peering protocol mismatch: %s != %s" % (local_proto, peer_proto)
del self
tun_fwd(tun, remote,
- with_pi = False,
- ether_mode = True,
+ with_pi = with_pi,
+ ether_mode = ether_mode,
cipher_key = cipher_key,
udp = udp,
TERMINATE = TERMINATE,