|
|
1.1 ! root 1: /* dsapunbind1.c - DSAP: Maps D-UNBIND onto RO-UNBIND.REQUEST */ ! 2: ! 3: #ifndef lint ! 4: static char *rcsid = "$Header: /f/osi/dsap/net/RCS/dsapunbind1.c,v 7.0 90/07/26 14:46:01 mrose Exp $"; ! 5: #endif ! 6: ! 7: /* ! 8: * $Header: /f/osi/dsap/net/RCS/dsapunbind1.c,v 7.0 90/07/26 14:46:01 mrose Exp $ ! 9: * ! 10: * ! 11: * $Log: dsapunbind1.c,v $ ! 12: * Revision 7.0 90/07/26 14:46:01 mrose ! 13: * *** empty log message *** ! 14: * ! 15: */ ! 16: ! 17: /* ! 18: * NOTICE ! 19: * ! 20: * Acquisition, use, and distribution of this module and related ! 21: * materials are subject to the restrictions of a license agreement. ! 22: * Consult the Preface in the User's Manual for the full terms of ! 23: * this agreement. ! 24: * ! 25: */ ! 26: ! 27: ! 28: /* LINTLIBRARY */ ! 29: ! 30: #include "quipu/dsap.h" ! 31: ! 32: /* D-UNBIND.REQUEST */ ! 33: ! 34: /* ARGSUSED */ ! 35: ! 36: int DUnBindRequest (sd, secs, dr, di) ! 37: int sd; ! 38: int secs; ! 39: struct DSAPrelease * dr; ! 40: struct DSAPindication * di; ! 41: { ! 42: int result; ! 43: struct AcSAPrelease acr_s; ! 44: struct AcSAPrelease * acr = &(acr_s); ! 45: struct RoNOTindication rni_s; ! 46: struct RoNOTindication * rni = &(rni_s); ! 47: ! 48: ! 49: result = RoUnBindRequest (sd, NULLPE, secs, acr, rni); ! 50: ! 51: if (result == OK) ! 52: { ! 53: dr->dr_affirmative = acr->acr_affirmative; ! 54: dr->dr_reason = acr->acr_reason; ! 55: ACRFREE(acr); ! 56: return (OK); ! 57: } ! 58: ! 59: if (result == NOTOK) ! 60: { ! 61: return (ronot2dsaplose (di, "D-UNBIND.REQUEST", rni)); ! 62: } ! 63: ! 64: return (result); ! 65: } ! 66: ! 67: /* D-UNBIND.RETRY */ ! 68: ! 69: /* ARGSUSED */ ! 70: ! 71: int DUnBindRetry (sd, secs, dr, di) ! 72: int sd; ! 73: int secs; ! 74: struct DSAPrelease * dr; ! 75: struct DSAPindication * di; ! 76: { ! 77: int result; ! 78: struct AcSAPrelease acr_s; ! 79: struct AcSAPrelease * acr = &(acr_s); ! 80: struct RoNOTindication rni_s; ! 81: struct RoNOTindication * rni = &(rni_s); ! 82: ! 83: result = RoUnBindRetry (sd, secs, acr, rni); ! 84: ! 85: if (result == OK) ! 86: { ! 87: dr->dr_affirmative = acr->acr_affirmative; ! 88: dr->dr_reason = acr->acr_reason; ! 89: ACRFREE (acr); ! 90: return (OK); ! 91: } ! 92: ! 93: if (result == NOTOK) ! 94: { ! 95: return (ronot2dsaplose (di, "D-UNBIND.RETRY", rni)); ! 96: } ! 97: ! 98: return (result); ! 99: } ! 100:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.