Start development on 386BSD 0.0
[unix-history] / .ref-BSD-4_3_Net_2 / usr / src / contrib / isode / quipu / conn_abort.c
CommitLineData
9e8e5516
C
1/* conn_abort.c - abort association */
2
3#ifndef lint
4static char *rcsid = "$Header: /f/osi/quipu/RCS/conn_abort.c,v 7.2 91/02/22 09:38:27 mrose Interim $";
5#endif
6
7/*
8 * $Header: /f/osi/quipu/RCS/conn_abort.c,v 7.2 91/02/22 09:38:27 mrose Interim $
9 *
10 *
11 * $Log: conn_abort.c,v $
12 * Revision 7.2 91/02/22 09:38:27 mrose
13 * Interim 6.8
14 *
15 * Revision 7.1 90/10/17 11:53:19 mrose
16 * sync
17 *
18 * Revision 7.0 89/11/23 22:16:43 mrose
19 * Release 6.0
20 *
21 */
22
23/*
24 * NOTICE
25 *
26 * Acquisition, use, and distribution of this module and related
27 * materials are subject to the restrictions of a license agreement.
28 * Consult the Preface in the User's Manual for the full terms of
29 * this agreement.
30 *
31 */
32
33
34/* LINTLIBRARY */
35
36#include "quipu/dsap.h"
37#include "quipu/util.h"
38#include "quipu/connection.h"
39
40extern LLog * log_dsap;
41
42struct connection * conn_alloc();
43void conn_free();
44void ds_log ();
45
46net_send_abort(conn)
47register struct connection * conn;
48{
49 int result;
50 struct DSAPindication di_s;
51 struct DSAPindication *di = &di_s;
52 struct DSAPabort *da = &(di->di_abort);
53
54 DLOG(log_dsap, LLOG_TRACE, ("net_send_abort"));
55
56 DLOG(log_dsap, LLOG_NOTICE, ("D-ABORT.REQUEST: <%d>", conn->cn_ad));
57
58 result = DUAbortRequest(conn->cn_ad, di);
59
60 if (result != OK)
61 {
62 ds_log(da, "D-ABORT.REQUEST");
63 }
64 conn->cn_state = CN_FAILED;
65 conn->cn_ad = 0;
66}
67
68/* ADT: Needs improving */
69/* ARGSUSED */
70
71void ds_log (da, str)
72struct DSAPabort * da;
73char * str;
74{
75 LLOG (log_dsap, LLOG_EXCEPTIONS, ("DSAP abort : %s", str));
76}
77