GTP_Codec_Port: Check length field of GTPV1C received packets
Change-Id: Ie9447b7ec7f7f5ee35cd0393265f5edb5578bdaf
This commit is contained in:
parent
10ec96e24b
commit
67f23547d2
|
@ -14,6 +14,7 @@ module GTP_CodecPort {
|
|||
import from IPL4asp_Types all;
|
||||
import from GTPC_Types all;
|
||||
import from GTPU_Types all;
|
||||
import from Misc_Helpers all;
|
||||
|
||||
modulepar {
|
||||
SystemUnderTest mp_pl_SystemUnderTest := SGSN;
|
||||
|
@ -63,6 +64,10 @@ module GTP_CodecPort {
|
|||
out_ud.peer.remName := in_ud.remName;
|
||||
out_ud.peer.remPort := in_ud.remPort;
|
||||
out_ud.gtpc := dec_PDU_GTPC(in_ud.msg, pl_SystemUnderTest := mp_pl_SystemUnderTest);
|
||||
if (lengthof(in_ud.msg) != out_ud.gtpc.lengthf + 8) {
|
||||
Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
|
||||
log2str("Rx GTPv1-C with field length ", out_ud.gtpc.lengthf, " + 8 != exp ", lengthof(in_ud.msg)));
|
||||
}
|
||||
} with { extension "prototype(fast)" };
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue