mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fd0eefce17
- SIOCGIFCONFIG: reads and enumerate all the network interfaces - SIOCGIFADDR: reads network address for a given interface - SIOCGIFFLAGS: reads network flags for a given interface - SIOCGIFNETMASK: reads network netmask for a given interface - SIOCGIFBRDADDR: reads network broadcast address for a given interface - SIOCGIFDSTADDR: reads peer destination address for a given interface (not supported for Windows) This change defines Linux ABI structs for the above interfaces and adds polyfills to ensure they behave consistently on XNU and Windows.
14 lines
276 B
ArmAsm
14 lines
276 B
ArmAsm
.include "o/libc/nt/codegen.inc"
|
|
.imp iphlpapi,__imp_GetAdapterOrderMap,GetAdapterOrderMap,0
|
|
|
|
.text.windows
|
|
GetAdapterOrderMap:
|
|
push %rbp
|
|
mov %rsp,%rbp
|
|
.profilable
|
|
sub $32,%rsp
|
|
call *__imp_GetAdapterOrderMap(%rip)
|
|
leave
|
|
ret
|
|
.endfn GetAdapterOrderMap,globl
|
|
.previous
|