diff options
author | Michael Pratt <mpratt@google.com> | 2018-09-14 15:58:56 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-09-14 16:00:02 -0700 |
commit | 3aa50f18a4102429aa40f5d0e518357ceaed2373 (patch) | |
tree | cdfb1357173ac3dd4f1cb9f91002896d50b3c47a /pkg/abi/linux | |
parent | d7a05b4e63252006818e1aadf7a0d383d130fe54 (diff) |
Reuse readlink parameter, add sockaddr max.
PiperOrigin-RevId: 213058623
Change-Id: I522598c655d633b9330990951ff1c54d1023ec29
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r-- | pkg/abi/linux/socket.go | 4 |
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 |