diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-18 14:33:57 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-18 14:33:57 -0700 |
| commit | 0b7599273705328f81c5afe2721e76c007779a9c (patch) | |
| tree | 1a7d7c65188527dd161e5da85c6f34a9dbb69223 /node/Peer.cpp | |
| parent | 91fef21973a3590ce37d1c2b126c4b8246d2fb1b (diff) | |
| download | infinitytier-0b7599273705328f81c5afe2721e76c007779a9c.tar.gz infinitytier-0b7599273705328f81c5afe2721e76c007779a9c.zip | |
Everything but the local config bus... blech.
Diffstat (limited to 'node/Peer.cpp')
| -rw-r--r-- | node/Peer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 67b9db23..bd2e7e43 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -98,23 +98,23 @@ void Peer::onReceive( } } -Demarc::Port Peer::send(const RuntimeEnvironment *_r,const void *data,unsigned int len,uint64_t now) +bool Peer::send(const RuntimeEnvironment *_r,const void *data,unsigned int len,uint64_t now) { if ((_ipv6p.isActive(now))||((!(_ipv4p.addr))&&(_ipv6p.addr))) { - if (_r->demarc->send(_ipv6p.localPort,_ipv6p.addr,data,len,-1)) { + if (_r->demarc->send(_ipv6p.addr,data,len,-1)) { _ipv6p.lastSend = now; - return _ipv6p.localPort; + return true; } } if (_ipv4p.addr) { - if (_r->demarc->send(_ipv4p.localPort,_ipv4p.addr,data,len,-1)) { + if (_r->sm->send(_ipv4p.addr,data,len,-1)) { _ipv4p.lastSend = now; - return _ipv4p.localPort; + return true; } } - return Demarc::NULL_PORT; + return false; } bool Peer::sendFirewallOpener(const RuntimeEnvironment *_r,uint64_t now) |
