Commit 2f6109b0 authored by wangyongshou's avatar wangyongshou

Support UE handover on different GNB;

parents 1f9af1d7 1c16d601
...@@ -292,7 +292,7 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag ...@@ -292,7 +292,7 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag
log.Info("SEID:%d", msg.SEID()) log.Info("SEID:%d", msg.SEID())
log.Info("TEID 0x%x", outerHeaderCreation.TEID) log.Info("TEID 0x%x", outerHeaderCreation.TEID)
log.Info("UE IP: %s", ueSeid[msg.SEID()]) log.Info("UE IP: %s", ueSeid[msg.SEID()])
log.Info(" FAR ID:%d", farid) log.Info("FAR ID:%d", farid)
log.Info("UE IPv4:%s", ueIP) log.Info("UE IPv4:%s", ueIP)
log.Info("GNB GTPU IP:%s", gnbIP) log.Info("GNB GTPU IP:%s", gnbIP)
cause := ie.NewCause(ie.CauseRequestAccepted) cause := ie.NewCause(ie.CauseRequestAccepted)
...@@ -334,6 +334,7 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag ...@@ -334,6 +334,7 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag
log.Info("pdrid: %d", farid) log.Info("pdrid: %d", farid)
log.Info("ueip %s:index %d", ueip, updateUeIndex[ueip]) log.Info("ueip %s:index %d", ueip, updateUeIndex[ueip])
log.Info("TEID 0x%x", outerHeaderCreation.TEID) log.Info("TEID 0x%x", outerHeaderCreation.TEID)
log.Info("GNB GTPu: %s", outerHeaderCreation.IPv4Address.String())
req := &upf.UpfSsmReq{ req := &upf.UpfSsmReq{
CpSeid: msg.SEID(), CpSeid: msg.SEID(),
...@@ -349,7 +350,7 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag ...@@ -349,7 +350,7 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag
FTeid: upf.BuptPfcpFTeid{ FTeid: upf.BuptPfcpFTeid{
Flags: 1, Flags: 1,
Teid: outerHeaderCreation.TEID, Teid: outerHeaderCreation.TEID,
IP: upf.BuptNodeValueIP4(ip4ToUint(config.Gnb)), IP: upf.BuptNodeValueIP4(ip4ToUint(outerHeaderCreation.IPv4Address.String())),
}, },
UeAddr: upf.BuptPfcpUeIPAddress{ UeAddr: upf.BuptPfcpUeIPAddress{
Flags: 2, Flags: 2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment