Annotation of 43BSDReno/contrib/isode-beta/compat/na2str.c, revision 1.1.1.1

1.1       root        1: /* na2str.c - pretty-print NSAPaddr */
                      2: 
                      3: #ifndef        lint
                      4: static char *rcsid = "$Header: /f/osi/compat/RCS/na2str.c,v 7.1 90/07/09 14:32:05 mrose Exp $";
                      5: #endif
                      6: 
                      7: /* 
                      8:  * $Header: /f/osi/compat/RCS/na2str.c,v 7.1 90/07/09 14:32:05 mrose Exp $
                      9:  *
                     10:  *
                     11:  * $Log:       na2str.c,v $
                     12:  * Revision 7.1  90/07/09  14:32:05  mrose
                     13:  * sync
                     14:  * 
                     15:  * Revision 7.0  89/11/23  21:23:19  mrose
                     16:  * Release 6.0
                     17:  * 
                     18:  */
                     19: 
                     20: /*
                     21:  *                               NOTICE
                     22:  *
                     23:  *    Acquisition, use, and distribution of this module and related
                     24:  *    materials are subject to the restrictions of a license agreement.
                     25:  *    Consult the Preface in the User's Manual for the full terms of
                     26:  *    this agreement.
                     27:  *
                     28:  */
                     29: 
                     30: 
                     31: /* LINTLIBRARY */
                     32: 
                     33: #include <stdio.h>
                     34: #include "general.h"
                     35: #include "manifest.h"
                     36: #include "isoaddrs.h"
                     37: 
                     38: /*    Network Address to String */
                     39: 
                     40: char   *na2str (na)
                     41: register struct NSAPaddr *na;
                     42: {
                     43:     switch (na -> na_stack) {
                     44:        case NA_TCP: 
                     45:            return na -> na_domain;
                     46: 
                     47:        case NA_X25:
                     48:        case NA_BRG: 
                     49:            return na -> na_dte;
                     50: 
                     51:        case NA_NSAP:
                     52:        default:
                     53:            return sel2str (na -> na_address, na -> na_addrlen, 0);
                     54:     }
                     55: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.