Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GPRS attach according to 3GPP TS 24.008 version 12.8.0 Release 12... #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions SGSNGGSN/GPRSL3Messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,22 @@ void GMMAttach::gmParseIEs(L3GmmFrame &src, size_t &rp, const char *culprit)
mTmsiStatus = iei & 1;
continue;
}
if ((iei & 0xf0) == 0xd0) {
// 10.5.7.8 Device properties. Ignore for now
continue;
}
if ((iei & 0xf0) == 0xe0) {
// 10.5.5.29 P-TMSI type. Ignore for now
continue;
}
if ((iei & 0xf0) == 0xc0) {
// 10.5.1.15 MS network feature support. Ignore for now
continue;
}
if ((iei & 0xf0) == 0xf0) {
// 10.5.5.0 Additional update type. Ignore for now
continue;
}
switch (iei) {
case 0x19: // TV Old P-TMSI signature.
// Dont have a 3 byte 'read' function so use getField then advance rp by 3.
Expand All @@ -385,6 +401,10 @@ void GMMAttach::gmParseIEs(L3GmmFrame &src, size_t &rp, const char *culprit)
// The specified length is of the ie itself, excluding the iei type and length byte.
// Get the length, but dont move rp - let the IEs do that, because
// some of them need the length byte.
if (rp >= src.size()) {
SGSNERROR("invalid message size in "<<culprit <<" bytes="<<src.hexstr());
return;
}
int len = src.getByte(rp);
size_t nextrp = rp + len + 1;
if (nextrp > src.size()) { // last one will have nextrp == src.size()
Expand Down