TSIX_RECVFROM_MAC(3N) TSIX_RECVFROM_MAC(3N)
tsix_recvfrom_mac - receive a message and a MAC label from a socket
#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);
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.
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.
[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.
recvfrom(2), sysconf(3c), tsix_sendto_mac(3c), t6recvfrom(3n)
PPPPaaaaggggeeee 1111 [ Back ]
|