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