Method lrs::socket::Socket::ipv4_options

Retrieves the Ipv4 options sent with each packet sent over this socket.

Syntax

impl Socket {
    fn ipv4_options(&self, buf: &'a mut [u8]) -> Result<&'a mut [u8], Errno>
}

Arguments

NameDescription
buf

The buffer in which the options will be stored.

Return value

Returns the initial part of the buffer that has been filled with the options.

Remarks

The options will use at most 40 bytes.

See also