*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> tsix_set_mac_byrhost (3n)              
Title
Content
Arch
Section
 

Contents


TSIX_SET_MAC_BYRHOST(3N)			      TSIX_SET_MAC_BYRHOST(3N)


NAME    [Toc]    [Back]

     tsix_set_mac_byrhost - set	the MAC	label of outgoing data

SYNOPSIS    [Toc]    [Back]

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

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

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     _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    [Toc]    [Back]

     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    [Toc]    [Back]

     [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    [Toc]    [Back]

      
      
     sysconf(3c), tsix_set_mac(3c)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
tsix_set_uid IRIX set the User ID of outgoing data
tsix_get_mac IRIX get the MAC label of incoming data
addpppout IRIX add a PPP outgoing entry.
removepppout IRIX remove a PPP outgoing entry.
getallpppoutmodem IRIX get all PPP outgoing modem entries
getallpppoutisdn IRIX get all PPP outgoing ISDN entries
owners HP-UX list owners of outgoing network connections
ng_split FreeBSD netgraph node to separate incoming and outgoing flows
tsix_get_solabel IRIX get the MAC label of a socket
tsix_set_solabel IRIX set the MAC label of a socket
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service