interface.go 741 B

123456789101112131415161718192021222324252627282930
  1. //go:build !android
  2. // +build !android
  3. package anet
  4. import (
  5. "net"
  6. )
  7. // Interfaces returns a list of the system's network interfaces.
  8. func Interfaces() ([]net.Interface, error) {
  9. return net.Interfaces()
  10. }
  11. // InterfaceAddrs returns a list of the system's unicast interface
  12. // addresses.
  13. //
  14. // The returned list does not identify the associated interface; use
  15. // Interfaces and Interface.Addrs for more detail.
  16. func InterfaceAddrs() ([]net.Addr, error) {
  17. return net.InterfaceAddrs()
  18. }
  19. // InterfaceAddrsByInterface returns a list of the system's unicast
  20. // interface addresses by specific interface.
  21. func InterfaceAddrsByInterface(ifi *net.Interface) ([]net.Addr, error) {
  22. return ifi.Addrs()
  23. }
  24. func SetAndroidVersion(version uint) {}