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

Method L3MMFactory

GSM/GSML3MMMessages.cpp:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86L3MMMessage* GSM::L3MMFactory(L3MMMessage::MessageType MTI)
87{
88 switch (MTI) {
89 case L3MMMessage::LocationUpdatingRequest: return new L3LocationUpdatingRequest;
90 case L3MMMessage::IMSIDetachIndication: return new L3IMSIDetachIndication;
91 case L3MMMessage::CMServiceAbort: return new L3CMServiceAbort;
92 case L3MMMessage::CMServiceRequest: return new L3CMServiceRequest;
93 // Since we don't support re-establishment, don't bother parsing this.
94 //case L3MMMessage::CMReestablishmentRequest: return new L3CMReestablishmentRequest;
95 case L3MMMessage::MMStatus: return new L3MMStatus;
96 case L3MMMessage::IdentityResponse: return new L3IdentityResponse;
97 case L3MMMessage::AuthenticationResponse: return new L3AuthenticationResponse;
98 case L3MMMessage::TMSIReallocationComplete: return new L3TMSIReallocationComplete;
99 default:
100 LOG(WARNING) << "no L3 MM factory support for message " << MTI;
101 return NULL;
102 }
103}
104
105L3MMMessage * GSM::parseL3MM(const L3Frame& source)
106{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected