Documentation
¶
Index ¶
- func NewEndpoint(ec *config.Endpoint, ttl uint8, hopLimit uint8) (netfunc_api.NetFunc, error)
- func NewHeadend(he *config.Headend, ttl uint8, hopLimit uint8) (netfunc_api.NetFunc, error)
- func NewHeadendWithCtrl(he *config.Headend, ttl uint8, hopLimit uint8, setup_registry app_api.Registry) (netfunc_api.NetFunc, error)
- type BaseHandler
- type EndpointMGTP4E
- type HeadendEncapsWithCtrl
- type HeadendGTP4
- type HeadendGTP4WithCtrl
- type NetFunc
- type Packet
- func (p *Packet) CheckDAInPrefixRange(prefix netip.Prefix) (netip.Addr, error)
- func (p *Packet) DownlinkAction(ctx context.Context, db db_api.Downlink) (n4tosrv6.Action, error)
- func (p *Packet) GetSrcAddr() (netip.Addr, error)
- func (p *Packet) PopGTP4Headers() (gopacket.Layer, error)
- func (p *Packet) PopIPv6Headers() (gopacket.Layer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEndpoint ¶
func NewHeadend ¶
Types ¶
type BaseHandler ¶
type BaseHandler struct {
// contains filtered or unexported fields
}
Use this as a base for new handlers
func NewBaseHandler ¶
func NewBaseHandler(prefix netip.Prefix, ttl uint8, hopLimit uint8) BaseHandler
func (BaseHandler) CheckDAInPrefixRange ¶
func (h BaseHandler) CheckDAInPrefixRange(pqt *Packet) (netip.Addr, error)
Return the packet IP destination address (first network layer) if it is in the prefix range
func (BaseHandler) GetSrcAddr ¶ added in v0.0.12
func (h BaseHandler) GetSrcAddr(pqt *Packet) (netip.Addr, error)
func (BaseHandler) HopLimit ¶
func (h BaseHandler) HopLimit() uint8
func (BaseHandler) Prefix ¶
func (h BaseHandler) Prefix() netip.Prefix
Return prefix of the Handler as a *netip.Prefix
func (BaseHandler) TTL ¶
func (h BaseHandler) TTL() uint8
type EndpointMGTP4E ¶
type EndpointMGTP4E struct {
BaseHandler
}
func NewEndpointMGTP4E ¶
func NewEndpointMGTP4E(prefix netip.Prefix, ttl uint8, hopLimit uint8) *EndpointMGTP4E
type HeadendEncapsWithCtrl ¶ added in v0.0.12
type HeadendEncapsWithCtrl struct {
BaseHandler
// contains filtered or unexported fields
}
func NewHeadendEncapsWithCtrl ¶ added in v0.0.12
type HeadendGTP4 ¶
type HeadendGTP4 struct {
BaseHandler
// contains filtered or unexported fields
}
func NewHeadendGTP4 ¶
type HeadendGTP4WithCtrl ¶ added in v0.0.12
type HeadendGTP4WithCtrl struct {
BaseHandler
// contains filtered or unexported fields
}
func NewHeadendGTP4WithCtrl ¶ added in v0.0.12
type NetFunc ¶
type NetFunc struct {
// contains filtered or unexported fields
}
func NewNetFunc ¶
func NewNetFunc(handler netfunc_api.Handler) *NetFunc
type Packet ¶
func NewIPv4Packet ¶
func NewIPv6Packet ¶
func (*Packet) CheckDAInPrefixRange ¶
Return the packet IP destination address (first network layer) if it is in the prefix range
func (*Packet) DownlinkAction ¶ added in v0.0.12
Returns the DownlinkAction related to this packet
func (*Packet) PopGTP4Headers ¶
Returns the first gopacket.Layer after IPv4/UDP/GTPU headers
Source Files
¶
Click to show internal directories.
Click to hide internal directories.