Commit | Line | Data |
---|---|---|
9e8e5516 C |
1 | /* ns_ro_ureject.c - */ |
2 | ||
3 | #ifndef lint | |
4 | static char *rcsid = "$Header: /f/osi/quipu/RCS/task_ureject.c,v 7.1 91/02/22 09:40:04 mrose Interim $"; | |
5 | #endif | |
6 | ||
7 | /* | |
8 | * $Header: /f/osi/quipu/RCS/task_ureject.c,v 7.1 91/02/22 09:40:04 mrose Interim $ | |
9 | * | |
10 | * | |
11 | * $Log: task_ureject.c,v $ | |
12 | * Revision 7.1 91/02/22 09:40:04 mrose | |
13 | * Interim 6.8 | |
14 | * | |
15 | * Revision 7.0 89/11/23 22:18:17 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 "rosap.h" | |
34 | #include "quipu/util.h" | |
35 | #include "quipu/connection.h" | |
36 | ||
37 | extern LLog * log_dsap; | |
38 | ||
39 | send_ro_ureject(ad, id_p, urej) | |
40 | int ad; | |
41 | int *id_p; | |
42 | int urej; | |
43 | { | |
44 | struct RoSAPindication roi_s; | |
45 | struct RoSAPindication *roi = &roi_s; | |
46 | struct RoSAPpreject *rop = &(roi->roi_preject); | |
47 | ||
48 | DLOG(log_dsap, LLOG_TRACE, ("send_ro_ureject()")); | |
49 | ||
50 | watch_dog("RoURejectRequest"); | |
51 | if(RoURejectRequest(ad, id_p, urej, ROS_NOPRIO, roi) == NOTOK) | |
52 | { | |
53 | watch_dog_reset(); | |
54 | LLOG(log_dsap, LLOG_EXCEPTIONS, ("RO-U-REJECT.REQUEST: %s", | |
55 | RoErrString(rop->rop_reason))); | |
56 | if(ROS_FATAL(rop->rop_reason) || (rop->rop_reason == ROS_PARAMETER)) | |
57 | { | |
58 | LLOG(log_dsap, LLOG_FATAL, ("RoUReject fatal PReject")); | |
59 | } | |
60 | } else | |
61 | watch_dog_reset(); | |
62 | ||
63 | } | |
64 |