add more methods to Link interface

This commit is contained in:
soypat
2023-12-18 16:01:17 -08:00
parent 60cdb7fd50
commit 7e45551ff5
+3
View File
@@ -58,7 +58,10 @@ type Link interface {
//
// [MAC address]: https://en.wikipedia.org/wiki/MAC_address
HardwareAddr6() ([6]byte, error)
// LinkStatus returns the state of the connection.
LinkStatus() LinkStatus
// MTU returns the maximum transmission unit size.
MTU() int
}
type EthLinkPoller interface {