Documentation ¶
Overview ¶
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Copyright 2023 Louis Royer and the NextMN-SRv6 contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT
Index ¶
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) error
Return nil if the packet IP destination address (first network layer) is in the prefix range
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 HeadendGTP4 ¶
type HeadendGTP4 struct { BaseHandler // contains filtered or unexported fields }
func NewHeadendGTP4 ¶
type NetFunc ¶
type NetFunc struct {
// contains filtered or unexported fields
}
func NewNetFunc ¶
func NewNetFunc(handler netfunc_api.Handler, debug bool) *NetFunc
type Packet ¶
func NewIPv4Packet ¶
func NewIPv6Packet ¶
func (*Packet) CheckDAInPrefixRange ¶
Return nil if the packet IP destination address (first network layer) is in the prefix range
func (*Packet) PopGTP4Headers ¶
Returns the first gopacket.Layer after IPv4/UDP/GTPU headers