TSIX_GET_SOLABEL(3N) TSIX_GET_SOLABEL(3N)
tsix_get_solabel - get the MAC label of a socket
#include <sys/mac.h>
#include <t6net.h>
int tsix_get_solabel(int fd, mac_t *lbl);
tsix_get_solabel retrieves the MAC label of an Internet-domain socket
represented by fd. If tsix_get_solabel 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_solabel.
If _SC_IP_SECOPTS is not in effect, tsix_get_solabel always returns
success.
tsix_get_solabel returns 0 if successful, otherwise errno will be set and
-1 returned.
[EINVAL] Invalid argument.
[ENOSYS] Function not implemented.
sysconf(3c), tsix_set_solabel(3c)
PPPPaaaaggggeeee 1111 [ Back ]
|