summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/socket.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/abi/linux/socket.go b/pkg/abi/linux/socket.go
index 9a78cc131..19b5fa212 100644
--- a/pkg/abi/linux/socket.go
+++ b/pkg/abi/linux/socket.go
@@ -140,6 +140,10 @@ const (
SO_TYPE = 3
)
+// SockAddrMax is the maximum size of a struct sockaddr, from
+// uapi/linux/socket.h.
+const SockAddrMax = 128
+
// SockAddrInt is struct sockaddr_in, from uapi/linux/in.h.
type SockAddrInet struct {
Family uint16