Add new .h file to VS build, and Windows side of local interface address enumeration.

This commit is contained in:
Adam Ierymenko 2015-07-06 17:22:37 -07:00
parent 84ba365c77
commit f881cdd767
4 changed files with 51 additions and 4 deletions

View file

@ -899,13 +899,17 @@ bool IncomingPacket::_doPUSH_DIRECT_PATHS(const RuntimeEnvironment *RR,const Sha
switch(addrType) {
case 4: {
InetAddress a(field(ptr,4),4,at<uint16_t>(ptr + 4));
if ((flags & (0x01 | 0x02)) == 0)
if ((flags & (0x01 | 0x02)) == 0) {
printf("contacting %s at %s\r\n",peer->address().toString().c_str(),a.toString().c_str());
peer->attemptToContactAt(RR,a,RR->node->now());
}
} break;
case 6: {
InetAddress a(field(ptr,16),16,at<uint16_t>(ptr + 16));
if ((flags & (0x01 | 0x02)) == 0)
if ((flags & (0x01 | 0x02)) == 0) {
printf("contacting %s at %s\r\n",peer->address().toString().c_str(),a.toString().c_str());
peer->attemptToContactAt(RR,a,RR->node->now());
}
} break;
}
ptr += addrLen;