|
|
BSD 4.3reno
/* conn_abort.c - abort association */
#ifndef lint
static char *rcsid = "$Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/quipu/conn_abort.c,v 1.1.1.1 2018/04/24 16:12:56 root Exp $";
#endif
/*
* $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/quipu/conn_abort.c,v 1.1.1.1 2018/04/24 16:12:56 root Exp $
*
*
* $Log: conn_abort.c,v $
* Revision 1.1.1.1 2018/04/24 16:12:56 root
* BSD 4.3reno
*
* Revision 7.0 89/11/23 22:16:43 mrose
* Release 6.0
*
*/
/*
* NOTICE
*
* 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
* this agreement.
*
*/
/* LINTLIBRARY */
#include "quipu/dsap.h"
#include "quipu/util.h"
#include "quipu/connection.h"
extern LLog * log_dsap;
struct connection * conn_alloc();
void conn_free();
void ds_log ();
net_send_abort(conn)
register struct connection * conn;
{
int result;
struct DSAPindication di_s;
struct DSAPindication *di = &di_s;
struct DSAPabort *da = &(di->di_abort);
DLOG(log_dsap, LLOG_TRACE, ("net_send_abort"));
DLOG(log_dsap, LLOG_NOTICE, ("D-ABORT.REQUEST: <%d>", conn->cn_ad));
watch_dog ("DUAbortRequest");
result = DUAbortRequest(conn->cn_ad, di);
watch_dog_reset();
if (result != OK)
{
ds_log(da, "D-ABORT.REQUEST");
}
conn->cn_state = CN_FAILED;
conn->cn_ad = 0;
}
/* ADT: Needs improving */
void ds_log (da, str)
struct DSAPabort * da;
char * str;
{
LLOG (log_dsap, LLOG_EXCEPTIONS, ("DSAP abort : %s", str));
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.