/* ftamtrace.c - FPM: tracing */
static char *rcsid
= "$Header: /f/osi/ftam/RCS/ftamtrace.c,v 7.2 91/02/22 09:23:16 mrose Interim $";
* $Header: /f/osi/ftam/RCS/ftamtrace.c,v 7.2 91/02/22 09:23:16 mrose Interim $
* Revision 7.2 91/02/22 09:23:16 mrose
* Revision 7.1 90/07/01 21:03:01 mrose
* Revision 7.0 89/11/23 21:53:54 mrose
* 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
"ftam.log", NULLCP
, NULLCP
, LLOG_FATAL
| LLOG_EXCEPTIONS
| LLOG_NOTICE
,
LLOG_NONE
, -1, LLOGCLS
| LLOGCRT
| LLOGZER
, NOTOK
LLog
*ftam_log
= &_ftam_log
;
static char *ftam_appls
[] = {
"Application-Entity-Title",
"Shared-ASE-Information",
static int ftam_nappl
= sizeof ftam_appls
/ sizeof ftam_appls
[0];
int FHookRequest (sd
, tracing
, fti
)
struct FTAMindication
*fti
;
register struct ftamblk
*fsb
;
if (fsb
-> fsb_trace
= tracing
)
pe_applist
= ftam_appls
, pe_maxappl
= ftam_nappl
;
(void) sigiomask (smask
);
/* \f user-defined tracing */
int FTraceHook (sd
, event
, fpdu
, pe
, rw
)
LLOG (ftam_log
, LLOG_ALL
, ("%s %s", rw
> 0 ? "event"
: rw
== 0 ? "action" : "exception", event
));
pvpdu (ftam_log
, print_FTAM_PDU_P
, pe
, fpdu
? fpdu
: "FPDU", rw
);
(void) ll_sync (ftam_log
);