Onload TCP supports the following socket options which can be used in the
getsockopt() function calls.
|Retrieve the socket protocol as an integer.
|Determines whether the socket can accept incoming connections - true for
listening sockets. (Only valid as a
|Bind this socket to a particular network interface. See SO_BINDTODEVICE.
|Number of seconds a connection has been established. (Only valid as a
|Enable protocol debugging.
|The errno value of the last error occurring on the socket. (Only valid as a
|Prevents other sockets using the SO_REUSEADDR option to bind to the same address and port.
|Enable sending of keep-alive messages on connection oriented sockets.
|When enabled, a
shutdown() will not return until all queued
messages for the socket have been successfully sent or the linger
timeout has been reached. Otherwise the
returns immediately and sockets are closed in the background.
|Indicates that out-of-band data should be returned in-line with regular data. This option is only valid for connection-oriented protocols that support out-of-band data.
|Set the priority for all packets sent on this socket. Packets with a higher priority might be processed first depending on the selected device queuing discipline.
Sets or gets the maximum socket receive buffer in bytes.
EF_TCP_RCVBUF overrides this value, and EF_TCP_RCVBUF_ESTABLISHED_DEFAULT can also override this value.
Setting SO_RCVBUF to a value < MTU can result in poorer performance and is not recommended.
|Sets the minimum number of bytes to process for socket input operations.
|Sets the timeout for input function to complete.
|Sets the timeout in milliseconds for blocking receive calls.
|Can reuse local port numbers (another socket can bind to the same port) except when there is an active listening socket bound to the port.
|Allows multiple sockets to bind to the same port.
Sets or gets the maximum socket send buffer in bytes. The value set is doubled by
the kernel and by Onload to
allow for bookkeeping overhead when it is set by the
This value can be overridden by EF_TCP_SNDBUF, EF_TCP_SNDBUF_MODE and EF_TCP_SNDBUF_ESTABLISHED_DEFAULT.
When the EF_TCP_SNDBUF_MODE is set to 2, the SNDBUF size is automatically adjusted for each TCP socket to match the window advertised by the peer.
|Sets the minimum number of bytes to process for socket output operations. Always set to 1 byte.
|Set the timeout for sending function to send before reporting an error.
|Report timestamps from system clock in struct timeval.
|Report timestamps from system clock in struct timespec.
|Enable/disable hardware timestamps for received packets.
|Obtain a hardware generated transmit timestamp.
|Obtain a hardware transmit timestamp adjusted to the system time base.
|Deliver timestamps using the
Onload extension to the standard
SO_TIMESTAMPING API to support hardware timestamps on TCP sockets.
|Returns the socket type (
SOCK_DGRAM). (Only valid as a
|This socket option allows the calling application to bind the socket to a nonlocal IP address.