interface_darwin.odin 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package net
  2. //+build darwin
  3. /*
  4. Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
  5. For other protocols and their features, see subdirectories of this package.
  6. */
  7. /*
  8. Copyright 2022 Tetralux <[email protected]>
  9. Copyright 2022 Colin Davidson <[email protected]>
  10. Copyright 2022 Jeroen van Rijn <[email protected]>.
  11. Made available under Odin's BSD-3 license.
  12. List of contributors:
  13. Tetralux: Initial implementation
  14. Colin Davidson: Linux platform code, OSX platform code, Odin-native DNS resolver
  15. Jeroen van Rijn: Cross platform unification, code style, documentation
  16. */
  17. @(private)
  18. _enumerate_interfaces :: proc(allocator := context.allocator) -> (interfaces: []Network_Interface, err: Network_Error) {
  19. context.allocator = allocator
  20. // TODO: Implement. Can probably use the (current) Linux implementation,
  21. // which will itself be switched over to talking to the kernel via NETLINK protocol
  22. // once we have raw sockets.
  23. unimplemented()
  24. }