tsix_get_solabel(3N)

tsix_get_solabel - get the MAC label of a socket

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

NAME
     tsix_get_solabel - get the MAC label of a socket

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

     int tsix_get_solabel(int fd, mac_t *lbl);

DESCRIPTION
     tsix_get_solabel retrieves the MAC label of an Internet-domain socket
     represented by fd.  If tsix_get_solabel 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_solabel.

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

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

ERRORS
     [EINVAL]       Invalid argument.

     [ENOSYS]       Function not implemented.

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