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
Index ¶
- func IPSrSetSourceAddress(address string) error
- type DummyIface
- type Table
- func (t Table) AddDefaultRoutesBlackhole() error
- func (t Table) AddRoute(args ...string) error
- func (t Table) AddRoute4(args ...string) error
- func (t Table) AddRoute4Tun(prefix string, dev string) error
- func (t Table) AddRoute6(args ...string) error
- func (t Table) AddRoute6Tun(prefix string, dev string) error
- func (t Table) AddRule4(to string) error
- func (t Table) AddRule6(to string) error
- func (t Table) AddSeg6Encap(prefix string, segmentsList string, dev string) error
- func (t Table) AddSeg6EncapWithMTU(prefix string, segmentsList string, dev string, mtu string) error
- func (t Table) AddSeg6Inline(prefix string, segmentsList string, dev string) error
- func (t Table) AddSeg6Local(sid string, behavior iana.EndpointBehavior, dev string) error
- func (t Table) DelDefaultRoutesBlackhole() error
- func (t Table) DelRoute(args ...string) error
- func (t Table) DelRoute4(args ...string) error
- func (t Table) DelRoute4Tun(prefix string, dev string) error
- func (t Table) DelRoute6(args ...string) error
- func (t Table) DelRoute6Tun(prefix string, dev string) error
- func (t Table) DelRule4(to string) error
- func (t Table) DelRule6(to string) error
- func (t Table) DelSeg6Encap(prefix string, segmentsList string, dev string) error
- func (t Table) DelSeg6Inline(prefix string, segmentsList string, dev string) error
- func (t Table) DelSeg6Local(sid string, behavior iana.EndpointBehavior, dev string) error
- type TunIface
- func (t *TunIface) CancelDropIcmpRedirect() error
- func (t *TunIface) CreateAndUp() error
- func (t *TunIface) Delete() error
- func (t *TunIface) DropIcmpRedirect() error
- func (t *TunIface) IPv4TTL() (uint8, error)
- func (t *TunIface) IPv6HopLimit() (uint8, error)
- func (t *TunIface) MTU() (int64, error)
- func (t *TunIface) Name() string
- func (t *TunIface) Read(b []byte) (int, error)
- func (t *TunIface) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPSrSetSourceAddress ¶
Types ¶
type DummyIface ¶
type DummyIface struct {
// contains filtered or unexported fields
}
IPRoute2 Dummy interface
func (DummyIface) CreateAndUp ¶
func (iface DummyIface) CreateAndUp() error
Create iproute2 dummy interface and set link up
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
IPRoute2 Table
func (Table) AddDefaultRoutesBlackhole ¶
Add default blackhole routes
func (Table) AddRoute4Tun ¶
Add IPv4 Route to Tun iface
func (Table) AddRoute6Tun ¶
Add IPv6 Route to Tun iface
func (Table) AddSeg6Encap ¶
Add Linux Headend with encap
func (Table) AddSeg6EncapWithMTU ¶
func (t Table) AddSeg6EncapWithMTU(prefix string, segmentsList string, dev string, mtu string) error
Add Linux Headend with encap and MTU
func (Table) AddSeg6Inline ¶
Add Linux Headend with inline Inline mode is only for incomming packets already having an IPv6 header
func (Table) AddSeg6Local ¶
Add Linux SRv6 Endpoint
func (Table) DelDefaultRoutesBlackhole ¶
Delete default blackhole routes
func (Table) DelRoute4Tun ¶
Delete IPv4 Route to Tun iface
func (Table) DelRoute6Tun ¶
Delete IPv6 Route to Tun iface
func (Table) DelSeg6Encap ¶
Delete Linux Headend with encap
func (Table) DelSeg6Inline ¶
Delete Linux Headend with inline Inline mode is only for incomming packets already having an IPv6 header
func (Table) DelSeg6Local ¶
Delete Linux SRv6 Endpoint
type TunIface ¶
type TunIface struct {
// contains filtered or unexported fields
}
TunIface
func (*TunIface) CancelDropIcmpRedirect ¶ added in v0.0.13
Cancel Drop ICMP/ICMPv6 redirects on the interface
func (*TunIface) CreateAndUp ¶
Create the TunIface and set it up
func (*TunIface) DropIcmpRedirect ¶ added in v0.0.13
Drop ICMP/ICMPv6 redirects on the interface
func (*TunIface) IPv6HopLimit ¶
IPv6 Hop Limit of the TunIface