/* dsaplose.c - DSAP: Support for directory protocol mappings */
static char *rcsid
= "$Header: /f/osi/dsap/net/RCS/dsaplose.c,v 7.1 91/02/22 09:21:21 mrose Interim $";
* $Header: /f/osi/dsap/net/RCS/dsaplose.c,v 7.1 91/02/22 09:21:21 mrose Interim $
* Revision 7.1 91/02/22 09:21:21 mrose
* Revision 7.0 90/07/26 14:45:55 mrose
* *** empty log message ***
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
struct DSAPindication
*di
;
di
= va_arg (ap
, struct DSAPindication
*);
reason
= va_arg (ap
, int);
result
= _dsaplose (di
, reason
, ap
);
int dsaplose (di
, reason
, what
, fmt
)
struct DSAPindication
*di
;
return dsaplose (di
, reason
, what
, fmt
);
static int _dsaplose (di
, reason
, ap
) /* what, fmt, args ... */
register struct DSAPindication
*di
;
bzero ((char *) di
, sizeof *di
);
asprintf (bp
= buffer
, ap
);
copyDSAPdata (buffer
, bp
- buffer
, da
);
int dsapreject (va_alist
)
struct DSAPindication
*di
;
di
= va_arg (ap
, struct DSAPindication
*);
reason
= va_arg (ap
, int);
result
= _dsapreject (di
, reason
, id
, ap
);
int dsapreject (di
, reason
, id
, what
, fmt
)
struct DSAPindication
*di
;
return dsapreject (di
, reason
, id
, what
, fmt
);
static int _dsapreject (di
, reason
, id
, ap
) /* what, fmt, args ... */
register struct DSAPindication
*di
;
bzero ((char *) di
, sizeof *di
);
di
->di_type
= DI_PREJECT
;
asprintf (bp
= buffer
, ap
);
copyDSAPdata (buffer
, bp
- buffer
, dp
);