tsix_get_mac(3N)

tsix_get_mac - get the MAC label of incoming data

Showing IRIX 6.5.30 (default release). Last changed in IRIX 6.5.15.

NAME
     tsix_get_mac - get the MAC label of incoming data

SYNOPSIS
     #include <sys/mac.h>
     #include <t6net.h>

     int tsix_get_mac(int fd, mac_t *lbl);

DESCRIPTION
     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.

RETURN VALUES
     tsix_get_mac returns 0 if successful, otherwise errno will be set and -1
     returned.

ERRORS
     [ENOTSOCK]     Attempted a socket operation on a non-socket.

     [EFAULT]       Invalid pointer address.

     [EINVAL]       Invalid argument.

SEE ALSO
     sysconf(3c), tsix_set_mac(3c)