


t6sendto(3N)                   1.1                   t6sendto(3N)


NNAAMMEE
       t6sendto  -  specify security attributes to send with data
       on a trusted endpoint

SSYYNNOOPPSSIISS
       cccc [ _f_l_a_g ... ] _f_i_l_e ...  --lltt66 [ _l_i_b_r_a_r_y ... ]

       ##iinncclluuddee <<ttssiixx//tt66aattttrrss..hh>>
       iinntt tt66sseennddttoo((iinntt ffdd,, ccoonnsstt cchhaarr **mmssgg,, iinntt lleenn,, iinntt ffllaaggss,,
            ccoonnsstt ssttrruucctt ssoocckkaaddddrr **ttoo,, iinntt ttoolleenn,,
            ccoonnsstt tt66aattttrr__tt aattttrr__ppttrr))

DDEESSCCRRIIPPTTIIOONN
       tt66sseennddttoo allows a privileged process to specify the  secu-
       rity  attributes  to  send with an IPC message.  A process
       may only specify those attributes for which  it  possesses
       the  appropriate override privilege and need not specify a
       full set.  Any unspecified attributes are supplied by  the
       kernel.

       ffdd  is  a  socket created with ssoocckkeett(3N).  The address of
       the target is given by ttoo with ttoolleenn specifying its  size.
       The length of the message is given by lleenn.

       The  ttoo pointer and ttoo__lleenn parameters are only used if you
       are specifying the  destination  address,  otherwise  they
       should  be  set  to 00.  You may not specify the address if
       the trusted endpoint was created for a connection oriented
       protocol, such as TCP.  If the message is too long to pass
       atomically through the underlying protocol, then the error
       EEMMSSGGSSIIZZEE  is returned, and the message is not transmitted.

       A return value of --11  indicates  locally  detected  errors
       only.   It  does  not  implicitly mean the message was not
       delivered.

       The ffllaaggss parameter is formed from the bitwise OR of  zero
       or more of the following:

       MMSSGG__OOOOBB             Send  "out-of-band" data and any secu-
                           rity attributes specified by a  privi-
                           leged  process on sockets that support
                           this notion.  The underlying  protocol
                           must  also support "out-of-band" data.
                           Data and  attributes  sent  with  this
                           flag  are typically not subject to the
                           internal buffering normally applied by
                           the  network  to improve network effi-
                           ciency.

       MMSSGG__DDOONNTTRROOUUTTEE       The SSOO__DDOONNTTRROOUUTTEE option is  turned  on
                           for the duration of the operation.  It
                           is used only by diagnostic or  routing
                           programs.



TSIX(RE)                   12 Nov 1995                          1





t6sendto(3N)                   1.1                   t6sendto(3N)


       The  security  attributes  are  specified  by the aattttrr__ppttrr
       parameter.  To set up aattttrr__ppttrr, see tt66sseett__aattttrr(3N).

RREETTUURRNN VVAALLUUEE
       The return value is the number of bytes actually sent,  or
       --11  indicating  an  error,  with  the error code stored in
       eerrrrnnoo.  It is critical that the  return  value  always  be
       checked, for the addition of security means that access to
       an endpoint may be revoked in response to a security  vio-
       lation.

PPRRIIVVIILLEEGGEESS
       Only  a  process  with the appropriate override privileges
       can specify the security attributes  associated  with  the
       data  it  sends.   To specify an attribute, a process must
       have  the  override   privilege   corresponding   to   the
       attribute.   The override privilege required to specify an
       attribute is implementation specific.

SSEEEE AALLSSOO
       lliibbtt66(3N), tt66sseett__aattttrr(3N), tt66sseett__eennddpptt__ddeeffaauulltt(3N)

NNOOTTEESS


































TSIX(RE)                   12 Nov 1995                          2


