Merge pull request #3810 from Feoramund/freebsd-core-net

Port `core:net` to FreeBSD
This commit is contained in:
Jeroen van Rijn
2024-08-09 09:50:05 +02:00
committed by GitHub
30 changed files with 3059 additions and 40 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
// +build windows, linux, darwin
// +build windows, linux, darwin, freebsd
package net
/*
@@ -10,12 +10,14 @@ package net
Copyright 2022 Tetralux <tetraluxonpc@gmail.com>
Copyright 2022 Colin Davidson <colrdavidson@gmail.com>
Copyright 2022 Jeroen van Rijn <nom@duclavier.com>.
Copyright 2024 Feoramund <rune@swevencraft.org>.
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
Feoramund: FreeBSD platform code
*/
import "core:strconv"
@@ -742,4 +744,4 @@ parse_ip_component :: proc(input: string, max_value := u64(max(u32)), bases := D
get_network_interfaces :: proc() -> []Address {
// TODO: Implement using `enumerate_interfaces` and returning only the addresses of active interfaces.
return nil
}
}