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

Method L3LocationAreaIdentity

GSM/GSML3CommonElements.cpp:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33L3LocationAreaIdentity::L3LocationAreaIdentity(const char*wMCC, const char* wMNC, unsigned wLAC)
34 :L3ProtocolElement(),
35 mLAC(wLAC)
36{
37 // country code
38 assert(strlen(wMCC)==3);
39 mMCC[0] = wMCC[0]-'0';
40 mMCC[1] = wMCC[1]-'0';
41 mMCC[2] = wMCC[2]-'0';
42 // network code
43 assert(strlen(wMNC)<=3);
44 assert(strlen(wMNC)>=2);
45 mMNC[0] = wMNC[0]-'0';
46 mMNC[1] = wMNC[1]-'0';
47 if (wMNC[2]!='\0') mMNC[2]=wMNC[2]-'0';
48 else mMNC[2]=0x0f;
49}
50
51
52void L3LocationAreaIdentity::writeV(L3Frame& dest, size_t &wp) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected