/* aetseq.c - application entity titles -- sequential lookup */
static char *rcsid
= "$Header: /f/osi/acsap/RCS/aetseq.c,v 7.1 91/02/22 09:14:30 mrose Interim $";
* $Header: /f/osi/acsap/RCS/aetseq.c,v 7.1 91/02/22 09:14:30 mrose Interim $
* Revision 7.1 91/02/22 09:14:30 mrose
* Revision 7.0 89/11/23 21:22:07 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
static char objent
[BUFSIZ
];
static struct isoentity ies
;
int str2aet_seq (designator
, qualifier
, iep
)
register struct isoentity
*ie
;
(void) sprintf (objent
, "%s-%s", designator
, qualifier
);
(void) sprintf (desdflt
, "%s-%s", designator
, "default");
(void) sprintf (qualdflt
, "%s-%s", "default", qualifier
);
bzero ((char *) &ids
, sizeof ids
);
bzero ((char *) &iqs
, sizeof iqs
);
while (_startisoentity (descriptor
) == OK
) {
if (strcmp (descriptor
, objent
) == 0) {
if (_stopisoentity (descriptor
, &ies
) != OK
)
if (!hitdes
&& strcmp (descriptor
, desdflt
) == 0) {
if (_stopisoentity (descriptor
, &ies
) != OK
)
ies
.ie_descriptor
= objent
;
ids
= ies
; /* struct copy */
if (!hitqual
&& strcmp (descriptor
, qualdflt
) == 0) {
if (_stopisoentity (descriptor
, &ies
) != OK
)
ies
.ie_descriptor
= objent
;
iqs
= ies
; /* struct copy */
*ie
= iqs
; /* struct copy */
bcopy ((char *) ids
.ie_addr
.pa_addr
.sa_addr
.ta_addrs
,
(char *) ie
-> ie_addr
.pa_addr
.sa_addr
.ta_addrs
,
sizeof ie
-> ie_addr
.pa_addr
.sa_addr
.ta_addrs
);
ie
-> ie_addr
.pa_addr
.sa_addr
.ta_naddr
=
ids
.ie_addr
.pa_addr
.sa_addr
.ta_naddr
;
*iep
= *ie
; /* struct copy */