


t6domainbyaddr(3n)                             t6domainbyaddr(3n)


WWAARRNNIINNGG  -  This  is  a TSIG draft specification, currently under
review.



NNaammee
       t6set_attr_domain,  t6get_attr_domain,  t6domainbyaddr   -
       TSIX(re)  1.1  interfaces  for  setting and retrieving the
       Domain  of  Translation  used   in   converting   security
       attributes to and from external representation.


SSyynnooppssiiss
        ##iinncclluuddee



       cchhaarr **tt66ddoommaaiinnbbyyaaddddrr(
           tt66aattttrr__iidd__tt      id,   ssttrruucctt  ssoocckkaaddddrr  *remote_addr,
           ssttrruucctt ssoocckkaaddddrr *local_addr)


       iinntt tt66sseett__aattttrr__ddoommaaiinn(
           tt66aattttrr__iidd__tt id, tt66aattttrr__tt *attr, cchhaarr *domain_name)


       cchhaarr **tt66ggeett__aattttrr__ddoommaaiinn(
           tt66aattttrr__iidd__tt    id, tt66aattttrr__tt *attr)



DDeessccrriippttiioonn
       The tt66ddoommaaiinnbbyyaaddddrr function returns the name of  the  pre-
       ferred  DDoommaaiinn ooff TTrraannssllaattiioonn ((DDOOTT)) to be used when commu-
       nicating with the host and port identified by remote_addr.
       The local_addr may be used as an additional local host and
       port qualifier or it may be NULL. For hosts  which  imple-
       ment  the  ssaattmmpp((77)),  the  DOT may likely be, but does not
       necessarily have to be, the  DOT  negotiated  between  the
       local  host  and  the host identified by remote_addr.  The
       interpretation of the port in the remote  and  local  host
       addresses is vendor-specific.

       The  tt66sseett__aattttrr__ddoommaaiinn function establishes domain_name as
       the DOT for an attribute.  The  tt66ggeett__aattttrr__ddoommaaiinn  returns
       the  domain name assigned to an attribute.  The id selects
       the particular attribute within the attribute list, speci-
       fied by attr, to which the functions apply.

       The  DOT  for an attribute determines how the attribute in
       question  is  interpreted  by  the  tt66eexxppoorrtt__aattttrr((33nn))  and
       tt66iimmppoorrtt__aattttrr((33nn))  functions when converting the attribute
       to and from external representation.  Depending  upon  the
       DOT,  either  sender  or  receiver (or both) may perform a



                                                                1





t6domainbyaddr(3n)                             t6domainbyaddr(3n)


       mapping between the host internal  representation  of  the
       attribute  and the system-independent external representa-
       tion.  For more details on domains of  translation  please
       refer to the TTSSIIXX((rree)) 11..11 SSeeccuurriittyy AAttttrriibbuuttee TTookkeenn MMaappppiinngg
       PPrroottooccooll, ssaattmmpp((77)).


RReettuurrnn VVaalluuee
       The tt66ddoommaaiinnbbyyaaddddrr function returns the address of a null-
       terminated  string if a DOT is configured for the selected
       attribute and host combination. It returns s NULL  pointer
       if no DOT is configured.

       The  tt66sseett__aattttrr__ddoommaaiinnfunction  returns zzeerroo((00)) if the DOT
       is successfully assigned to the  attribute.  The  function
       returns   --11 if an invalid DOT name is given or if for any
       reason the DOT name cannot be assigned.

       The tt66ggeett__aattttrr__ddoommaaiinn function returns the  address  of  a
       null-terminated string if the selected attribute has a DOT
       assigned. It returns a NULL pointer if no DOT is assigned.


NNootteess
        1.  Programs  using  these routines must be compiled with
            --lltt66 .

        2.  It is recommended that DOT naming conventions  follow
            those described in ssaattmmpp((77))



SSeeee AAllssoo
       lliibbtt66((33nn)),  tt66eexxppoorrtt__aattttrr((33nn)), tt66iimmppoorrtt__aattttrr((33nn)), ttssiixx((77)),
       ssaattmmpp((77))






















                                                                2


