Skip to content

Commit

Permalink
Merge pull request #49 from andy89923/fix/flow-parsing
Browse files Browse the repository at this point in the history
fix: swap src dst port from flow description
  • Loading branch information
ianchen0119 committed May 7, 2024
2 parents d966772 + a97059a commit 573e97a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/forwarder/gtp5g.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ func (g *Gtp5g) newFlowDesc(s string, swapSrcDst bool) (nl.AttrList, error) {
}
if swapSrcDst {
fd.Src, fd.Dst = fd.Dst, fd.Src
fd.SrcPorts, fd.DstPorts = fd.DstPorts, fd.SrcPorts
}
switch fd.Action {
case "permit":
Expand Down

0 comments on commit 573e97a

Please sign in to comment.