tsix_recvfrom_mac(3N)

tsix_recvfrom_mac - receive a message and a MAC label from a socket

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

NAME
     tsix_recvfrom_mac - receive a message and a MAC label from a socket

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

     int tsix_recvfrom_mac(int fd, void *buf, int len, int flags,
                           void *from, int *fromlen, mac_t *lbl);

DESCRIPTION
     tsix_recvfrom_mac receives a message from a socket, additionally
     returning the MAC label associated with the data just received.
     tsix_recvfrom_mac is otherwise identical to recvfrom(2).  If
     tsix_recvfrom_mac is successful, that MAC label will be pointed to by
     lbl.

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

     tsix_recvfrom_mac returns the number of bytes received, otherwise -1 and
     the global error value errno is assigned the appropriate error code.

ERRORS
     [EINVAL]       Invalid argument.

     [ENOSYS]       Function not implemented.

     [EBADF]        Bad file number.

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

     [EWOULDBLOCK]  Operation would block.

     [EINTR]        Interrupted function call.

     [EFAULT]       Invalid pointer address.

     [EIO]          I/O Error.

     [ENOMEM]       Not enough space.

     [ENOSR]        Out of streams resources.

     [ESTALE]       Stale NFS file handle.

SEE ALSO
     recvfrom(2), sysconf(3c), tsix_sendto_mac(3c), t6recvfrom(3n)