Skip to content

Commit

Permalink
Merge pull request #124 from lyz508/fix/ulcl-procedure
Browse files Browse the repository at this point in the history
fix: swap source and destination when createing flowDescription of ULCL paths
  • Loading branch information
ianchen0119 authored Sep 18, 2024
2 parents ed09202 + 5c2a162 commit ffad328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/sbi/processor/ulcl_procedure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ffad328

Please sign in to comment.