diff --git a/lib/net/net.ww b/lib/net/net.ww index 3336d8e4..449684ac 100644 --- a/lib/net/net.ww +++ b/lib/net/net.ww @@ -20,7 +20,9 @@ def SYS_LISTEN: i64 = 50; // sockaddrin is laid out by the kernel: family u16, port u16 (BE), // addr u32 (BE), padding 8B = 16B total. Caller fills it. -type sockaddrin = struct { +// Exported: connect/bind take *sockaddrin, so a caller must be able to +// name it (Hare exports sockaddr_in; ref/hare/sys/+linux/socket.ha:11). #102 +export type sockaddrin = struct { family: u16, port: u16, addr: u32,