TSIX_GET_MAC(3N) TSIX_GET_MAC(3N)
tsix_get_mac - get the MAC label of incoming data
#include <sys/mac.h>
#include <t6net.h>
int tsix_get_mac(int fd, mac_t *lbl);
tsix_get_mac retrieves the MAC label associated with data incoming on fd,
which must be associated with a socket. If tsix_get_mac 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_mac.
If _SC_IP_SECOPTS is not in effect, tsix_get_mac always returns success.
tsix_get_mac returns 0 if successful, otherwise errno will be set and -1
returned.
[ENOTSOCK] Attempted a socket operation on a non-socket.
[EFAULT] Invalid pointer address.
[EINVAL] Invalid argument.
sysconf(3c), tsix_set_mac(3c)
PPPPaaaaggggeeee 1111 [ Back ]
|