Skip to content

Commit 1c66eba

Browse files
authored
Use free5gc's upstream libraries instead of maintaining a fork of them inside PacketRusher (#54)
Signed-off-by: Valentin <[email protected]>
1 parent f104a31 commit 1c66eba

File tree

647 files changed

+315
-16406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

647 files changed

+315
-16406
lines changed

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ go 1.21
55
require (
66
github.com/davecgh/go-spew v1.1.1
77
github.com/free5gc/go-gtp5gnl v1.4.5
8-
github.com/free5gc/nas v1.1.1
8+
github.com/free5gc/aper v1.0.5-0.20230614030933-c73735898582
9+
github.com/free5gc/nas v1.1.2-0.20230828074825-175b09665828
10+
github.com/free5gc/ngap v1.0.7-0.20230614061954-9c128114ab1f
911
github.com/free5gc/openapi v1.0.6
1012
github.com/free5gc/util v1.0.4
1113
github.com/google/gopacket v1.1.19

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3
88
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
99
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1010
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
11+
github.com/free5gc/aper v1.0.5-0.20230614030933-c73735898582 h1:IV9PXKo6MH62e7nngSqr+cwjuoffkouPMmyX3jHC9Ds=
12+
github.com/free5gc/aper v1.0.5-0.20230614030933-c73735898582/go.mod h1:ybHxhYnRqQ9wD4yB9r/3MZdbCYCjtqUyfLpSnJpwWd4=
1113
github.com/free5gc/go-gtp5gnl v1.4.5 h1:w4mHuEue4hwpnQdYc19C5sXmxvYLZ0s2vJyDNdmt2wk=
1214
github.com/free5gc/go-gtp5gnl v1.4.5/go.mod h1:TT5aXB90NuSPMehuIK9lV2yJFnq6Qjw37ZqNB1QAKh0=
1315
github.com/free5gc/nas v1.1.1 h1:xUsqOOrb3kH38TQCzwZY7WN6WJkIerjERNjORDtnCbo=
1416
github.com/free5gc/nas v1.1.1/go.mod h1:fjWwpyp7/wOyL72HTkjvIe9YTCfGyZosjITsI5sXyuU=
17+
github.com/free5gc/nas v1.1.2-0.20230828074825-175b09665828 h1:/gIlzF8hacxWa6hsx+HQlw9F8yEorTvZvS1VR5Iwpjc=
18+
github.com/free5gc/nas v1.1.2-0.20230828074825-175b09665828/go.mod h1:fjWwpyp7/wOyL72HTkjvIe9YTCfGyZosjITsI5sXyuU=
19+
github.com/free5gc/ngap v1.0.7-0.20230614061954-9c128114ab1f h1:wgXjoknZ7JJoZ72J15g/f2/0DgdCpfcTg189lnhUPuY=
20+
github.com/free5gc/ngap v1.0.7-0.20230614061954-9c128114ab1f/go.mod h1:lKA1sLTYM3CGEBhZVxkGGJIkai5+Bvy2yHIMhb7Vx/k=
1521
github.com/free5gc/openapi v1.0.6 h1:ytRjU/YZRI8UhKKyfajXSyGB6s1YDFkJ1weeAGJ8LXw=
1622
github.com/free5gc/openapi v1.0.6/go.mod h1:iw/N0E+FlX44EEx24IBi2EdZW8v+bkj3ETWPGnlK9DI=
1723
github.com/free5gc/util v1.0.4 h1:GxliLpjI3NHMrKck3PDfx4OLJUuBjU182sVj+zbZK50=

internal/control_test_engine/gnb/context/ue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ package context
66

77
import (
88
"errors"
9-
"my5G-RANTester/lib/ngap/ngapType"
109
"sync"
1110

11+
"github.com/free5gc/ngap/ngapType"
1212
"github.com/ishidawataru/sctp"
1313
)
1414

internal/control_test_engine/gnb/ngap/dispatcher.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
package ngap
66

77
import (
8-
log "github.com/sirupsen/logrus"
98
"my5G-RANTester/internal/control_test_engine/gnb/context"
109
"my5G-RANTester/internal/control_test_engine/gnb/ngap/handler"
11-
"my5G-RANTester/lib/ngap"
12-
"my5G-RANTester/lib/ngap/ngapType"
10+
11+
"github.com/free5gc/ngap"
12+
13+
"github.com/free5gc/ngap/ngapType"
14+
log "github.com/sirupsen/logrus"
1315
)
1416

1517
func Dispatch(amf *context.GNBAmf, gnb *context.GNBContext, message []byte) {

internal/control_test_engine/gnb/ngap/handler/handler.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ import (
1010
"my5G-RANTester/internal/control_test_engine/gnb/context"
1111
"my5G-RANTester/internal/control_test_engine/gnb/nas/message/sender"
1212
"my5G-RANTester/internal/control_test_engine/gnb/ngap/trigger"
13-
"my5G-RANTester/lib/aper"
14-
"my5G-RANTester/lib/ngap/ngapConvert"
15-
"my5G-RANTester/lib/ngap/ngapType"
1613
_ "net"
1714

15+
"github.com/free5gc/aper"
16+
17+
"github.com/free5gc/ngap/ngapConvert"
18+
"github.com/free5gc/ngap/ngapType"
1819
log "github.com/sirupsen/logrus"
1920
_ "github.com/vishvananda/netlink"
2021
)

internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/amf-configuration-update.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
package interface_management
66

77
import (
8-
"my5G-RANTester/lib/ngap"
9-
"my5G-RANTester/lib/ngap/ngapType"
8+
"github.com/free5gc/ngap"
9+
10+
"github.com/free5gc/ngap/ngapType"
1011
)
1112

1213
func AmfConfigurationUpdateAcknowledge() ([]byte, error) {

internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-request.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ package interface_management
66

77
import (
88
"my5G-RANTester/internal/control_test_engine/gnb/context"
9-
"my5G-RANTester/lib/aper"
10-
"my5G-RANTester/lib/ngap"
11-
"my5G-RANTester/lib/ngap/ngapType"
9+
10+
"github.com/free5gc/ngap"
11+
12+
"github.com/free5gc/aper"
13+
14+
"github.com/free5gc/ngap/ngapType"
1215
)
1316

1417
func BuildNGSetupRequest(gnb *context.GNBContext) (pdu ngapType.NGAPPDU) {

internal/control_test_engine/gnb/ngap/message/ngap_control/interface_management/ng-setup-response.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ package interface_management
66

77
import (
88
"fmt"
9+
10+
"github.com/free5gc/ngap"
11+
"github.com/free5gc/ngap/ngapType"
12+
913
"github.com/ishidawataru/sctp"
10-
"my5G-RANTester/lib/ngap"
11-
"my5G-RANTester/lib/ngap/ngapType"
1214
)
1315

1416
func NgSetupResponse(connN2 *sctp.SCTPConn) (*ngapType.NGAPPDU, error) {

internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/downlink-nas-transport.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ package nas_transport
66

77
import (
88
"fmt"
9+
"time"
10+
11+
"github.com/free5gc/ngap"
12+
"github.com/free5gc/ngap/ngapType"
13+
914
"github.com/ishidawataru/sctp"
1015
log "github.com/sirupsen/logrus"
11-
"my5G-RANTester/lib/ngap"
12-
"my5G-RANTester/lib/ngap/ngapType"
13-
"time"
1416
)
1517

1618
func DownlinkNasTransport(connN2 *sctp.SCTPConn, supi string) (*ngapType.NGAPPDU, error) {

internal/control_test_engine/gnb/ngap/message/ngap_control/nas_transport/initial-ue-message.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ import (
88
"encoding/hex"
99
"fmt"
1010
"my5G-RANTester/internal/control_test_engine/gnb/context"
11-
"my5G-RANTester/lib/aper"
12-
"my5G-RANTester/lib/ngap"
13-
"my5G-RANTester/lib/ngap/ngapType"
11+
12+
"github.com/free5gc/ngap"
13+
14+
"github.com/free5gc/aper"
15+
16+
"github.com/free5gc/ngap/ngapType"
1417
)
1518

1619
var TestPlmn ngapType.PLMNIdentity

0 commit comments

Comments
 (0)