Small fixes for potential bugs in peering that were extremely unlikely ever to occur.

This commit is contained in:
pat
2014-10-19 07:48:46 -07:00
committed by Michael Iedema
parent a716ed66c0
commit 0490bbaef4
2 changed files with 3 additions and 1 deletions

View File

@@ -198,7 +198,7 @@ bool ChannelHistory::neighborAddMeasurements(SACCHLogicalChannel* SACCH,const L3
int thisBSCI = measurements->BSIC_NCELL(i);
int arfcn = gNeighborTable.getARFCN(thisFreq);
if (arfcn < 0) {
LOG(INFO) << "Measurement report with invalid freq index:" << thisFreq << " arfcn:" << arfcn; // SVGDBG seeing this error
LOG(INFO) << "Measurement report with invalid freq index:" << thisFreq << " arfcn:" << arfcn; // SVGDBG seeing this error (pat) Maybe fixed 10-17-2014 by ticket #1915
continue;
}
this->neighborAddMeasurement(sampleTime.FN(),(unsigned)arfcn,thisBSCI,thisRxLevel);

View File

@@ -329,6 +329,7 @@ bool NeighborTable::ntAddInfo(NeighborEntry &newentry)
NeighborTableMap::iterator mit = mNeighborMap.find(newentry.mIPAddress);
if (mit == mNeighborMap.end()) {
LOG(NOTICE) << "Ignoring unsolicited 'RSP NEIGHBOR_PARAMS' from " << newentry.mIPAddress;
return false; // (pat) Added 10-17-2014. Oops.
}
NeighborEntry &oldentry = mit->second;
// (pat) Added test to see if C0 or BCC changed. That would not change the beacon but we need to recheck for conflicts
@@ -498,6 +499,7 @@ void NeighborTable::setHoldOff(string ipaddress, unsigned seconds)
NeighborTableMap::iterator mit = mNeighborMap.find(ipaddress);
if (mit == mNeighborMap.end()) {
LOG(NOTICE) << "Can not set holdoff for unknown IP address:"<<ipaddress;
return; // (pat) Added 10-17-2014. Oops.
}
NeighborEntry &entry = mit->second;
entry.mHoldoff = time(NULL) + seconds;