Skip to content

Commit

Permalink
send srcIf info to gtp5g and upgrade expectedMinGtp5gVersion to v0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-ywliu committed Oct 30, 2024
1 parent 09d1c70 commit b466a1b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
require (
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
github.com/davecgh/go-spew v1.1.1
github.com/free5gc/go-gtp5gnl v1.4.6
github.com/free5gc/go-gtp5gnl v1.4.7-0.20241008130314-a3088e4cb7fa
github.com/free5gc/util v1.0.6
github.com/hashicorp/go-version v1.6.0
github.com/khirono/go-genl v1.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:ma
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/free5gc/go-gtp5gnl v1.4.6 h1:xqwyGjrRNRGwo3/HyfXMh/fQ56QnCUzQKP2XR5/i1cE=
github.com/free5gc/go-gtp5gnl v1.4.6/go.mod h1:TT5aXB90NuSPMehuIK9lV2yJFnq6Qjw37ZqNB1QAKh0=
github.com/free5gc/go-gtp5gnl v1.4.7-0.20241008130314-a3088e4cb7fa h1:D5OzFSttS6WY2XRspxtPKoHyCVkRLH9kqteQ1bGfOg0=
github.com/free5gc/go-gtp5gnl v1.4.7-0.20241008130314-a3088e4cb7fa/go.mod h1:TT5aXB90NuSPMehuIK9lV2yJFnq6Qjw37ZqNB1QAKh0=
github.com/free5gc/util v1.0.6 h1:dBt9drcXtYKE/cY5XuQcuffgsYclPIpIArhSeS6M+DQ=
github.com/free5gc/util v1.0.6/go.mod h1:eSGN7POUM8LNTvg/E591XR6447a6/w1jFWGKNZPHcXw=
github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU=
Expand Down
8 changes: 6 additions & 2 deletions internal/forwarder/gtp5g.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
)

const (
expectedMinGtp5gVersion string = "0.8.6"
expectedMaxGtp5gVersion string = "0.9.0"
expectedMinGtp5gVersion string = "0.9.2"
expectedMaxGtp5gVersion string = "0.10.0"
)

type Gtp5g struct {
Expand Down Expand Up @@ -326,6 +326,10 @@ func (g *Gtp5g) newPdi(i *ie.IE) (nl.AttrList, error) {
if err != nil {
break
}
attrs = append(attrs, nl.Attr{
Type: gtp5gnl.PDI_SRC_INTF,
Value: nl.AttrU8(v),
})
srcIf = v
case ie.FTEID:
v, err := x.FTEID()
Expand Down

0 comments on commit b466a1b

Please sign in to comment.