lynxis lazus has uploaded this change for review. (
https://gerrit.osmocom.org/c/erlang/osmo-epdg/+/35869?usp=email )
Change subject: GTPv2/S2b: use correct instance id in the F-TEID
......................................................................
GTPv2/S2b: use correct instance id in the F-TEID
I've no idea why, but it seems the GTPu is the EBI, but the GTP-C is always 0.
This way it works with open5gs.
Change-Id: I053fe5661a38ce6fa7995964a0346129b56c823e
---
M src/epdg_gtpc_s2b.erl
1 file changed, 15 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-epdg refs/changes/69/35869/1
diff --git a/src/epdg_gtpc_s2b.erl b/src/epdg_gtpc_s2b.erl
index ca05d9b..6c1a7fc 100644
--- a/src/epdg_gtpc_s2b.erl
+++ b/src/epdg_gtpc_s2b.erl
@@ -342,7 +342,7 @@
},
#v2_eps_bearer_id{eps_bearer_id = Bearer#gtp_bearer.ebi},
#v2_fully_qualified_tunnel_endpoint_identifier{
- instance = 0,
+ instance = Bearer#gtp_bearer.ebi,
interface_type = 31, %% "S2b-U ePDG GTP-U"
key = Bearer#gtp_bearer.local_data_tei,
ipv4 = gtp_utils:ip_to_bin(LocalAddr)
@@ -352,7 +352,7 @@
#v2_international_mobile_subscriber_identity{imsi = Imsi},
#v2_rat_type{rat_type = 3}, %% 3 = WLAN
#v2_fully_qualified_tunnel_endpoint_identifier{
- instance = Bearer#gtp_bearer.ebi,
+ instance = 0,
interface_type = 30, %% "S2b ePDG GTP-C"
key = LocalCtlTEI,
ipv4 = gtp_utils:ip_to_bin(LocalAddr)
@@ -374,7 +374,7 @@
seq_no = SeqNo}) ->
IEs = [#v2_eps_bearer_id{eps_bearer_id = Bearer#gtp_bearer.ebi},
#v2_fully_qualified_tunnel_endpoint_identifier{
- instance = Bearer#gtp_bearer.ebi,
+ instance = 0,
interface_type = 30, %% "S2b ePDG GTP-C"
key = Bearer#gtp_bearer.local_data_tei,
ipv4 = gtp_utils:ip_to_bin(LocalAddr)
--
To view, visit
https://gerrit.osmocom.org/c/erlang/osmo-epdg/+/35869?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-epdg
Gerrit-Branch: master
Gerrit-Change-Id: I053fe5661a38ce6fa7995964a0346129b56c823e
Gerrit-Change-Number: 35869
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-MessageType: newchange