Commit 1de0f59c authored by 吴洲洋's avatar 吴洲洋

update server.go

parent f4351ac1
...@@ -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()
......
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