tsix_get_mac(3N)

tsix_get_mac - get the MAC label of incoming data

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     tsix_get_mac - get the MAC label of incoming data

SYNOPSIS
     #include <sys/mac.h>
     #include <sys/tsix_api.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 .

     If _SC_IP_SECOPTS is not in effect, tsix_get_mac always returns success.

RETURN VALUES
     tsix_get_mac returns 0 if successful, -1 otherwise.

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