tsix_set_mac_byrhost(3N)

tsix_set_mac_byrhost - set the MAC label of outgoing data

As shipped in IRIX 6.5.15. Last changed in IRIX 6.5.15.

NAME
     tsix_set_mac_byrhost - set the MAC label of outgoing data

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

     int tsix_set_mac_byrhost(int fd, struct in_addr *addr,
                              mac_t *lbl)

DESCRIPTION
     tsix_set_mac_byrhost sets the MAC label of all outgoing communication on
     fd, which must be associated with a socket, to the default MAC label for
     that host.  If lbl is not NULL, lbl will point to that MAC label upon
     successful execution of tsix_set_mac_byrhost.

CAPABILITIES
     _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.

RETURN VALUES
     If _SC_IP_SECOPTS is not in effect, tsix_set_mac_byrhost always returns
     success.

     tsix_set_mac_byrhost returns 0 if successful, otherwise -1 is returned
     and the global error value errno is set to the appropriate error code.

ERRORS
     [EINVAL]       Invalid argument.

     [ENOSYS]       Function not implemented.

     [ENOMEM]       Not enough space.

     [EFAULT]       Invalid pointer address.

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


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