Skip to content

Commit

Permalink
Properly fill the GTP-U extension headers
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin <[email protected]>
  • Loading branch information
linouxis9 committed Nov 28, 2024
1 parent c24357e commit fd83fec
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 101 deletions.
13 changes: 5 additions & 8 deletions cmd/packetrusher.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ func main() {
},
Commands: []*cli.Command{
{
Name: "ue",
Aliases: []string{"ue"},
Usage: "Launch a gNB and a UE with a PDU Session\nFor more complex scenario and features, use instead packetrusher multi-ue\n",
Name: "ue",
Usage: "Launch a gNB and a UE with a PDU Session\nFor more complex scenario and features, use instead packetrusher multi-ue\n",
Flags: []cli.Flag{
&cli.BoolFlag{Name: "disableTunnel", Aliases: []string{"t"}, Usage: "Disable the creation of the GTP-U tunnel interface."},
&cli.PathFlag{Name: "pcap", Usage: "Capture traffic to given PCAP file when a path is given", Value: "./dump.pcap"},
Expand Down Expand Up @@ -62,9 +61,8 @@ func main() {
},
},
{
Name: "gnb",
Aliases: []string{"gnb"},
Usage: "Launch only a gNB",
Name: "gnb",
Usage: "Launch only a gNB",
Action: func(c *cli.Context) error {
name := "Testing an gnb attached with configuration"
cfg := setConfig(*c)
Expand Down Expand Up @@ -167,8 +165,7 @@ func main() {
},
},
{
Name: "amf-load-loop",
Aliases: []string{"amf-load-loop"},
Name: "amf-load-loop",
Usage: "\nTest AMF responses in interval\n" +
"Example for generating 20 requests to AMF per second in interval of 20 seconds: amf-load-loop -n 20 -t 20\n",
Flags: []cli.Flag{
Expand Down
46 changes: 24 additions & 22 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
module my5G-RANTester

go 1.21
go 1.22

toolchain go1.23.3

require (
github.com/davecgh/go-spew v1.1.1
github.com/free5gc/aper v1.0.5-0.20230614030933-c73735898582
github.com/free5gc/go-gtp5gnl v1.4.5
github.com/free5gc/nas v1.1.2-0.20230828074825-175b09665828
github.com/free5gc/ngap v1.0.7-0.20230614061954-9c128114ab1f
github.com/free5gc/openapi v1.0.6
github.com/free5gc/util v1.0.4
github.com/free5gc/aper v1.0.5
github.com/free5gc/go-gtp5gnl v1.4.7-0.20241008130314-a3088e4cb7fa
github.com/free5gc/nas v1.1.3
github.com/free5gc/ngap v1.0.8
github.com/free5gc/openapi v1.0.8
github.com/free5gc/util v1.0.6
github.com/google/gopacket v1.1.19
github.com/ishidawataru/sctp v0.0.0-20230406120618-7ff4192f6ff2
github.com/khirono/go-nl v1.0.4
github.com/khirono/go-nl v1.0.5
github.com/khirono/go-rtnllink v1.1.1
github.com/mitchellh/mapstructure v1.4.2
github.com/mitchellh/mapstructure v1.5.0
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
github.com/sirupsen/logrus v1.9.2
github.com/stretchr/testify v1.7.0
github.com/tetratelabs/wazero v1.3.0
github.com/urfave/cli/v2 v2.25.5
github.com/vishvananda/netlink v1.1.0
github.com/wmnsk/go-gtp v0.8.6
golang.org/x/net v0.16.0
github.com/sirupsen/logrus v1.9.3
github.com/stretchr/testify v1.8.3
github.com/tetratelabs/wazero v1.8.2
github.com/urfave/cli/v2 v2.27.5
github.com/vishvananda/netlink v1.3.0
github.com/wmnsk/go-gtp v0.8.11
golang.org/x/net v0.31.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/aead/cmac v0.0.0-20160719120800-7af84192f0b1 // indirect
github.com/antonfisher/nested-logrus-formatter v1.3.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/golang-jwt/jwt v3.2.1+incompatible // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/khirono/go-genl v1.0.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/sys v0.13.0 // indirect
github.com/tim-ywliu/nested-logrus-formatter v1.3.2 // indirect
github.com/vishvananda/netns v0.0.5 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
golang.org/x/sys v0.27.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit fd83fec

Please sign in to comment.