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

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

Contents


TSIX_GET_MAC(3N)					      TSIX_GET_MAC(3N)


NAME    [Toc]    [Back]

     tsix_get_mac - get	the MAC	label of incoming data

SYNOPSIS    [Toc]    [Back]

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

     int tsix_get_mac(int fd, mac_t *lbl);

DESCRIPTION    [Toc]    [Back]

     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.

RETURN VALUES    [Toc]    [Back]

     tsix_get_mac returns 0 if successful, otherwise errno will	be set and -1
     returned.

ERRORS    [Toc]    [Back]

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

     [EFAULT]	    Invalid pointer address.

     [EINVAL]	    Invalid argument.

SEE ALSO    [Toc]    [Back]

      
      
     sysconf(3c), tsix_set_mac(3c)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
tsix_get_uid IRIX get the User ID of incoming data
accf_data FreeBSD buffer incoming connections until data arrives
tsix_set_mac IRIX set the MAC label of outgoing data
tsix_set_mac_byrhost IRIX set the MAC label of outgoing data
addpppin IRIX add a PPP incoming entry.
getallpppinmodem IRIX get all PPP incoming modem entries
getallpppinisdn IRIX get all PPP incoming ISDN entries
accept_filter FreeBSD filter incoming connections
removepppin IRIX remove a PPP incoming entry.
pppoed FreeBSD handle incoming PPP over Ethernet connections
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service