From 5c2a162c3ecfcec0bcd23dfceafe58005df93237 Mon Sep 17 00:00:00 2001 From: yzlin Date: Wed, 18 Sep 2024 03:36:49 +0000 Subject: [PATCH] fix: swap source and destination when createing flowDescription of ULCL paths --- internal/sbi/processor/ulcl_procedure.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/sbi/processor/ulcl_procedure.go b/internal/sbi/processor/ulcl_procedure.go index b721a779..839c0b53 100644 --- a/internal/sbi/processor/ulcl_procedure.go +++ b/internal/sbi/processor/ulcl_procedure.go @@ -149,11 +149,11 @@ func EstablishULCL(smContext *context.SMContext) { // new IPFilterRule with action:"permit" and diection:"out" FlowDespcription := flowdesc.NewIPFilterRule() - FlowDespcription.Dst = dest.DestinationIP + FlowDespcription.Src = dest.DestinationIP if dstPort, err := flowdesc.ParsePorts(dest.DestinationPort); err != nil { - FlowDespcription.DstPorts = dstPort + FlowDespcription.SrcPorts = dstPort } - FlowDespcription.Src = smContext.PDUAddress.To4().String() + FlowDespcription.Dst = smContext.PDUAddress.To4().String() FlowDespcriptionStr, err := flowdesc.Encode(FlowDespcription) if err != nil {