From 7e45551ff52847adbfa0852f87bb7f53ff127e3f Mon Sep 17 00:00:00 2001 From: soypat Date: Mon, 18 Dec 2023 16:01:17 -0800 Subject: [PATCH] add more methods to Link interface --- nets/nets.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nets/nets.go b/nets/nets.go index 32cfaaf..140c2f1 100644 --- a/nets/nets.go +++ b/nets/nets.go @@ -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 {