Documentation
¶
Index ¶
- Variables
- type Radio
- func (r *Radio) AddRoute(ueIp netip.Addr, gnb jsonapi.ControlURI) error
- func (r *Radio) DelRoute(ueIp netip.Addr) error
- func (r *Radio) GetRoutes() map[netip.Addr]jsonapi.ControlURI
- func (r *Radio) HandlePeer(peer n1n2.RadioPeerMsg)
- func (r *Radio) InitPeer(gnb jsonapi.ControlURI) error
- func (r *Radio) Peer(c *gin.Context)
- func (r *Radio) Register(e *gin.Engine)
- func (r *Radio) Status(c *gin.Context)
- func (r *Radio) UpdateRoute(ueIp netip.Addr, oldGnb jsonapi.ControlURI, newGnb jsonapi.ControlURI) error
- func (r *Radio) Write(pkt []byte, srv *net.UDPConn, ue netip.Addr) error
- type RadioDaemon
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilTunIface = errors.New("nil TUN interface") ErrNilUdpConn = errors.New("nil UDP Connection") ErrUnknownGnb = errors.New("unknown gNB") ErrUnexpectedGnb = errors.New("PDU session do not use the expected gNB") ErrPduSessionNotFound = errors.New("no PDU Session found for this IP Address") ErrPduSessionAlreadyExists = errors.New("PDU session already exists") ErrUnsupportedPDUType = errors.New("unsupported PDU Type") ErrMalformedPDU = errors.New("malformed PDU") )
Functions ¶
This section is empty.
Types ¶
type Radio ¶
type Radio struct {
common.WithContext
Client http.Client
Tun *tun.TunManager
Control jsonapi.ControlURI
Data netip.AddrPort
UserAgent string
// contains filtered or unexported fields
}
func NewRadio ¶
func NewRadio(control jsonapi.ControlURI, tunMan *tun.TunManager, data netip.AddrPort, userAgent string) *Radio
func (*Radio) AddRoute ¶
AddRoute creates a route to the gNB for this PDU session, including configuration of iproute2 interface
func (*Radio) DelRoute ¶
DelRoute remove the route to the gNB for this PDU session, including (de-)configuration of iproute2 interface
func (*Radio) GetRoutes ¶ added in v0.0.3
func (r *Radio) GetRoutes() map[netip.Addr]jsonapi.ControlURI
func (*Radio) HandlePeer ¶
func (r *Radio) HandlePeer(peer n1n2.RadioPeerMsg)
func (*Radio) UpdateRoute ¶
func (r *Radio) UpdateRoute(ueIp netip.Addr, oldGnb jsonapi.ControlURI, newGnb jsonapi.ControlURI) error
UpdateRoute updates the route to the gNB for this PDU Session
type RadioDaemon ¶
type RadioDaemon struct {
Control jsonapi.ControlURI
Gnbs []jsonapi.ControlURI
Radio *Radio
UeRanAddr netip.AddrPort
// contains filtered or unexported fields
}
func NewRadioDaemon ¶
func NewRadioDaemon(control jsonapi.ControlURI, gnbs []jsonapi.ControlURI, radio *Radio, ueRanAddr netip.AddrPort) *RadioDaemon
func (*RadioDaemon) WaitShutdown ¶
func (r *RadioDaemon) WaitShutdown(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.