removed debug code and typo
This commit is contained in:
parent
50a4ec97ef
commit
14a7dd885b
@ -202,17 +202,14 @@ void UdpTmTcBridgeNew::handleTM() {
|
||||
size_t tcDataSize;
|
||||
result = IPCStore->getData(tc, &tcData, &tcDataSize);
|
||||
if (result != returnvalue::OK) {
|
||||
puts("default");
|
||||
receiver = defaultDestination;
|
||||
receiverLen = defaultDestinationLen;
|
||||
} else {
|
||||
if (*tcData != IP6) {
|
||||
// this should not have been routed here
|
||||
puts("huh?");
|
||||
return;
|
||||
}
|
||||
puts("from tc");
|
||||
receiver = (const sockaddr *)tcData + 1;
|
||||
receiver = (const sockaddr *)(tcData + 1);
|
||||
receiverLen = sizeof(sockaddr_in6);
|
||||
}
|
||||
|
||||
@ -227,6 +224,6 @@ void UdpTmTcBridgeNew::handleTM() {
|
||||
int res = sendto(serverSocket, tmData, tmDataSize, 0, receiver, receiverLen);
|
||||
|
||||
if (res == -1) {
|
||||
sif::error << "UdpTmTcBridge::handleTM: sendto failed with " << errno << (int) receiver->sa_family << std::endl;
|
||||
sif::error << "UdpTmTcBridge::handleTM: sendto failed with " << errno << std::endl;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user