mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-26 01:19:02 +00:00
add more methods to Link interface
This commit is contained in:
@@ -58,7 +58,10 @@ type Link interface {
|
|||||||
//
|
//
|
||||||
// [MAC address]: https://en.wikipedia.org/wiki/MAC_address
|
// [MAC address]: https://en.wikipedia.org/wiki/MAC_address
|
||||||
HardwareAddr6() ([6]byte, error)
|
HardwareAddr6() ([6]byte, error)
|
||||||
|
// LinkStatus returns the state of the connection.
|
||||||
LinkStatus() LinkStatus
|
LinkStatus() LinkStatus
|
||||||
|
// MTU returns the maximum transmission unit size.
|
||||||
|
MTU() int
|
||||||
}
|
}
|
||||||
|
|
||||||
type EthLinkPoller interface {
|
type EthLinkPoller interface {
|
||||||
|
|||||||
Reference in New Issue
Block a user