Closed x0ul closed 3 months ago
Thanks for reporting the issue. https://github.com/pycrate-org/pycrate/commit/0c9e6c78d74ef7354ee8ebdbd2d727064e76d8e0 should solve it. GTP-C IE header fields were not properly set, besides of their Type and TypeExt before. The commit fixes this.
Much appreciated! Yes, that appears to have fixed the issue. Setting the "Inst" field works as expected without any workarounds. Thank you!
First, thanks for writing pycrate, it's an amazing feat of work and has been really helpful!
I am using the pycrate_mobile.TS29247 library for GTPC. While working on the "bearer context to be created" IE, I noticed that when I supply an instance value of 3 to an F-TEID (representing the F-TEID for the PGW on S5/S8-U) and inspect the resulting message, I see that the instance value is actually set to 0, not 3 as expected. Here's an example:
Specifically, note the last IE above is
S1UeNodeBFTEID : <Hdr : <Type : 87 (Fully Qualified Tunnel Endpoint Identifier (F-TEID))><Len : 9><spare : 0><Inst : 0>...
rather than having instance value 3.I can work around the issue by setting the
ie["Hdr"]["Inst"] = 3
after initializing the pycrate object, but it's not ideal.Thanks again!