aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimon <simon@xengames.com>2023-10-06 16:41:13 +0100
committersimon <simon@xengames.com>2023-10-06 16:41:13 +0100
commite7adfff9bf6197a1b8312afe245ae15e6dce7128 (patch)
tree029cea4c15f7f700cb38738abf367259ee5bbb67
parent98f9f7d42e9a487ea4198ae237465133c6bae120 (diff)
bugfix: darwin net flags
-rw-r--r--core/net/interface_darwin.odin4
-rw-r--r--core/os/os_darwin.odin9
2 files changed, 2 insertions, 11 deletions
diff --git a/core/net/interface_darwin.odin b/core/net/interface_darwin.odin
index 54b2a0b3b..59b0e01c5 100644
--- a/core/net/interface_darwin.odin
+++ b/core/net/interface_darwin.odin
@@ -97,9 +97,9 @@ _enumerate_interfaces :: proc(allocator := context.allocator) -> (interfaces: []
state |= {.Up}
}
- if .DORMANT in ifaddr.flags {
+ /*if .DORMANT in ifaddr.flags {
state |= {.Dormant}
- }
+ }*/
if .LOOPBACK in ifaddr.flags {
state |= {.Loopback}
diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin
index 9a9f3ed04..82cf5e1f3 100644
--- a/core/os/os_darwin.odin
+++ b/core/os/os_darwin.odin
@@ -365,15 +365,6 @@ SIOCGIFFLAG :: enum c.int {
NOARP = 7, /* No address resolution protocol. */
PROMISC = 8, /* Receive all packets. */
ALL_MULTI = 9, /* Receive all multicast packets. Unimplemented. */
- MASTER = 10, /* Master of a load balancer. */
- SLAVE = 11, /* Slave of a load balancer. */
- MULTICAST = 12, /* Supports multicast. */
- PORTSEL = 13, /* Can set media type. */
- AUTOMEDIA = 14, /* Auto media select active. */
- DYNAMIC = 15, /* Dialup device with changing addresses. */
- LOWER_UP = 16,
- DORMANT = 17,
- ECHO = 18,
}
SIOCGIFFLAGS :: bit_set[SIOCGIFFLAG; c.int]