/* daprovider.c - DAP: Support for DAP Actions */
static char *rcsid
= "$Header: /f/osi/dsap/net/RCS/daprovider.c,v 7.1 91/02/22 09:21:06 mrose Interim $";
* $Header: /f/osi/dsap/net/RCS/daprovider.c,v 7.1 91/02/22 09:21:06 mrose Interim $
* Revision 7.1 91/02/22 09:21:06 mrose
* Revision 7.0 90/07/26 14:45:26 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
int ronot2daplose (di
, event
, rni
)
struct DAPindication
* di
;
struct RoNOTindication
* rni
;
SLOG (addr_log, LLOG_EXCEPTIONS, NULLCP,
((rni->rni_cc > 0) ? "%s: %s [%*.*s]" : "%s: %s",
event, AcErrString (rni->rni_reason), rni->rni_cc,
rni->rni_cc, rni->rni_data));
(void) sprintf (cp
= buffer
, " (Error in RO-BIND)");
return (daplose (di
, DA_RONOT
, NULLCP
, "%*.*s%s",
rni
->rni_cc
, rni
->rni_cc
, rni
->rni_data
, cp
));
return (daplose (di
, DA_RONOT
, NULLCP
, "%s", cp
));
int ros2daplose (di
, event
, rop
)
struct DAPindication
* di
;
struct RoSAPpreject
* rop
;
SLOG (addr_log, LLOG_EXCEPTIONS, NULLCP,
((rop->rop_cc > 0) ? "%s: %s [%*.*s]" : "%s: %s",
event, AcErrString (rop->rop_reason), rop->rop_cc,
rop->rop_cc, rop->rop_data));
(void) sprintf (cp
= buffer
, " (Error in ROS)");
return (daplose (di
, DA_ROS
, NULLCP
, "%*.*s%s",
rop
->rop_cc
, rop
->rop_cc
, rop
->rop_data
, cp
));
return (daplose (di
, DA_ROS
, NULLCP
, "%s", cp
));
int ros2dapreject (di
, event
, rou
)
struct DAPindication
* di
;
struct RoSAPureject
* rou
;
(void) sprintf (cp
= buffer
, " (Reject at ROS)");
return (dapreject (di
, DA_ROS
, -1, NULLCP
, " no op id, reason: %d%s", rou
->rou_reason
, cp
));
return (dapreject (di
, DA_ROS
, rou
->rou_id
, NULLCP
, " op id %d, reason: %d%s", rou
->rou_id
, rou
->rou_reason
, cp
));