mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
bugfix: darwin net flags
This commit is contained in:
@@ -97,9 +97,9 @@ _enumerate_interfaces :: proc(allocator := context.allocator) -> (interfaces: []
|
|||||||
state |= {.Up}
|
state |= {.Up}
|
||||||
}
|
}
|
||||||
|
|
||||||
if .DORMANT in ifaddr.flags {
|
/*if .DORMANT in ifaddr.flags {
|
||||||
state |= {.Dormant}
|
state |= {.Dormant}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if .LOOPBACK in ifaddr.flags {
|
if .LOOPBACK in ifaddr.flags {
|
||||||
state |= {.Loopback}
|
state |= {.Loopback}
|
||||||
|
|||||||
@@ -365,15 +365,6 @@ SIOCGIFFLAG :: enum c.int {
|
|||||||
NOARP = 7, /* No address resolution protocol. */
|
NOARP = 7, /* No address resolution protocol. */
|
||||||
PROMISC = 8, /* Receive all packets. */
|
PROMISC = 8, /* Receive all packets. */
|
||||||
ALL_MULTI = 9, /* Receive all multicast packets. Unimplemented. */
|
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]
|
SIOCGIFFLAGS :: bit_set[SIOCGIFFLAG; c.int]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user