MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / fmidMatch

Method fmidMatch

Control/ControlTransfer.cpp:169–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169bool FullMobileId::fmidMatch(const GSM::L3MobileIdentity&mobileId) const
170{
171 switch (mobileId.type()) {
172 case GSM::IMSIType: return 0 == strcmp(mImsi.c_str(),mobileId.digits());
173 case GSM::IMEIType: return 0 == strcmp(mImei.c_str(),mobileId.digits());
174 case GSM::TMSIType: return mTmsi.valid() && mTmsi.value() == mobileId.TMSI();
175 default: return false; // something wrong, but certainly no match
176 }
177}
178
179std::ostream& operator<<(std::ostream& os, const FullMobileId&msid)
180{

Callers 1

ttFindHandoverOtherMethod · 0.80

Calls 5

TMSIMethod · 0.80
typeMethod · 0.45
digitsMethod · 0.45
validMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected