Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-UPF
Commits
1de0f59c
Commit
1de0f59c
authored
Apr 13, 2021
by
吴洲洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update server.go
parent
f4351ac1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
src/upf-n4/pkg/upf/controller/server.go
src/upf-n4/pkg/upf/controller/server.go
+1
-7
No files found.
src/upf-n4/pkg/upf/controller/server.go
View file @
1de0f59c
...
@@ -269,22 +269,16 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag
...
@@ -269,22 +269,16 @@ func handleSessionModificationMsg(config *conf.Config, msgContent message.Messag
createPDR
,
_
:=
msg
.
CreatePDR
[
0
]
.
CreatePDR
()
createPDR
,
_
:=
msg
.
CreatePDR
[
0
]
.
CreatePDR
()
pdrid
,
_
:=
createPDR
[
0
]
.
PacketDetectionRuleID
()
pdrid
,
_
:=
createPDR
[
0
]
.
PacketDetectionRuleID
()
//precedence, _ := createPDR[1].Precedence()
pdiIEs
,
_
:=
createPDR
[
2
]
.
PDI
()
pdiIEs
,
_
:=
createPDR
[
2
]
.
PDI
()
//sourceInterface, _ := pdiIEs[0].SourceInterface()
//fteid, _ := pdiIEs[1].FTEID()
ueipaddress
,
_
:=
pdiIEs
[
1
]
.
UEIPAddress
()
ueipaddress
,
_
:=
pdiIEs
[
1
]
.
UEIPAddress
()
farid
,
_
:=
createPDR
[
3
]
.
FARID
()
modReqIP
=
ueipaddress
.
IPv4Address
.
String
()
modReqIP
=
ueipaddress
.
IPv4Address
.
String
()
// set ueip into seid
// set ueip into seid
ueSeid
[
msg
.
SEID
()]
=
ueipaddress
.
IPv4Address
.
String
()
ueSeid
[
msg
.
SEID
()]
=
ueipaddress
.
IPv4Address
.
String
()
createFAR
,
_
:=
msg
.
CreateFAR
[
0
]
.
CreateFAR
()
createFAR
,
_
:=
msg
.
CreateFAR
[
0
]
.
CreateFAR
()
//applyAction, _ := createFAR[1].ApplyAction
()
farid
,
_
:=
createFAR
[
0
]
.
FARID
()
forwardingParameters
,
_
:=
createFAR
[
2
]
.
ForwardingParameters
()
forwardingParameters
,
_
:=
createFAR
[
2
]
.
ForwardingParameters
()
//destinationInterface, _ := forwardingParameters[0].DestinationInterface()
outerHeaderCreation
,
_
:=
forwardingParameters
[
1
]
.
OuterHeaderCreation
()
outerHeaderCreation
,
_
:=
forwardingParameters
[
1
]
.
OuterHeaderCreation
()
ueIP
:=
ueipaddress
.
IPv4Address
.
String
()
ueIP
:=
ueipaddress
.
IPv4Address
.
String
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment