tsix_get_mac - get the MAC label of incoming data
int tsix_get_mac(int fd, mac_t *lbl);
tsix_get_mac retrieves the MAC label associated with data incoming on fd,
which must be associated with a socket. If tsix_get_mac is successful,
that MAC label will be pointed to by lbl.
The caller should call mac_free on the mac_t argument lbl, which was
passed to tsix_get_mac.
If _SC_IP_SECOPTS is not in effect, tsix_get_mac always returns success.
tsix_get_mac returns 0 if successful, otherwise errno will be set and -1
[ENOTSOCK] Attempted a socket operation on a non-socket.
[EFAULT] Invalid pointer address.
[EINVAL] Invalid argument.
PPPPaaaaggggeeee 1111 [ Back ]