1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

net: byte fixes

This commit is contained in:
Alexander Medvednikov
2022-04-15 15:55:39 +03:00
parent fb192d949b
commit af73e195da
18 changed files with 54 additions and 65 deletions

View File

@@ -26,7 +26,7 @@ mut:
sin6_family byte // 1
sin6_port u16 // 2
sin6_flowinfo u32 // 4
sin6_addr [16]byte // 16
sin6_addr [16]u8 // 16
sin6_scope_id u32 // 4
}
@@ -50,20 +50,20 @@ mut:
struct Ip6 {
port u16
flow_info u32
addr [16]byte
addr [16]u8
scope_id u32
}
[_pack: '1']
struct Ip {
port u16
addr [4]byte
addr [4]u8
// Pad to size so that socket functions
// dont complain to us (see in.h and bind())
// TODO(emily): I would really like to use
// some constant calculations here
// so that this doesnt have to be hardcoded
sin_pad [8]byte
sin_pad [8]u8
}
struct Unix {