Update On Fri Oct 25 20:37:23 CEST 2024

This commit is contained in:
github-action[bot]
2024-10-25 20:37:24 +02:00
parent 509ec96228
commit b8d3af4b42
103 changed files with 3032 additions and 2372 deletions
+3 -11
View File
@@ -34,12 +34,10 @@ var (
// UnderlayProperties defines network properties of a underlay.
type UnderlayProperties interface {
// Layer 2 MTU of this network connection.
// Maximum transission unit of this network connection
// in the current network layer.
MTU() int
// The IP version used to establish the underlay.
IPVersion() common.IPVersion
// The transport protocol used to implement the underlay.
TransportProtocol() common.TransportProtocol
@@ -87,7 +85,6 @@ type Underlay interface {
// underlayDescriptor implements UnderlayProperties.
type underlayDescriptor struct {
mtu int
ipVersion common.IPVersion
transportProtocol common.TransportProtocol
localAddr net.Addr
remoteAddr net.Addr
@@ -99,10 +96,6 @@ func (d *underlayDescriptor) MTU() int {
return d.mtu
}
func (d *underlayDescriptor) IPVersion() common.IPVersion {
return d.ipVersion
}
func (d *underlayDescriptor) TransportProtocol() common.TransportProtocol {
return d.transportProtocol
}
@@ -116,10 +109,9 @@ func (d *underlayDescriptor) RemoteAddr() net.Addr {
}
// NewUnderlayProperties creates a new instance of UnderlayProperties.
func NewUnderlayProperties(mtu int, ipVersion common.IPVersion, transportProtocol common.TransportProtocol, localAddr net.Addr, remoteAddr net.Addr) UnderlayProperties {
func NewUnderlayProperties(mtu int, transportProtocol common.TransportProtocol, localAddr net.Addr, remoteAddr net.Addr) UnderlayProperties {
d := &underlayDescriptor{
mtu: mtu,
ipVersion: ipVersion,
transportProtocol: transportProtocol,
localAddr: localAddr,
remoteAddr: remoteAddr,