tsix_set_mac(3N)

tsix_set_mac - set the MAC label of outgoing data

As shipped in IRIX 6.5.5. Last changed in IRIX 6.5.5.

NAME
     tsix_set_mac - set the MAC label of outgoing data

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

     int tsix_set_mac(int fd, mac_t lbl);

DESCRIPTION
     tsix_set_mac sets the MAC label of all outgoing communication on fd ,
     which must be associated with a socket, to the MAC label pointed to by
     lbl .

     If _SC_CAP is in effect, a process calling this function must have
     CAP_NETWORK_MGT , CAP_MAC_UPGRADE , CAP_MAC_DOWNGRADE ,
     CAP_MAC_RELABEL_OPEN , and CAP_MAC_MLD capabilities in the permitted
     vector of its capability set.

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

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

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