File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / dsap / net / dsapunbind2.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

/* dsapunbind2.c - DSAP: maps D-UNBIND mapping onto RO-UNBIND */

#ifndef	lint
static char *rcsid = "$Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/dsap/net/dsapunbind2.c,v 1.1.1.1 2018/04/24 16:12:56 root Exp $";
#endif

/* 
 * $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/dsap/net/dsapunbind2.c,v 1.1.1.1 2018/04/24 16:12:56 root Exp $
 *
 *
 * $Log: dsapunbind2.c,v $
 * Revision 1.1.1.1  2018/04/24 16:12:56  root
 * BSD 4.3reno
 *
 * Revision 7.0  90/07/26  14:46:02  mrose
 * *** empty log message ***
 * 
 */

/*
 *                                NOTICE
 *
 *    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
 *    this agreement.
 *
 */


/* LINTLIBRARY */

#include "quipu/dsap.h"

/*    D-UNBIND.ACCEPT */

/* ARGSUSED */

int	  DUnBindAccept (sd, di)
int			  sd;
struct DSAPindication	* di;
{
	int			  result;
	struct RoNOTindication	  rni_s;
	struct RoNOTindication	* rni = &(rni_s);

	result = RoUnBindResult (sd, NULLPE, rni);

	if (result == NOTOK)
	{
		(void) ronot2dsaplose (di, "D-UNBIND.ACCEPT", rni);
		return (NOTOK);
	}

	return (result);
}

/*    D-UNBIND.REJECT */

/* ARGSUSED */

int	  DUnBindReject (sd, status, reason, di)
int			  sd;
int			  status;
int			  reason;
struct DSAPindication	* di;
{
	int			  result;
	struct RoNOTindication	  rni_s;
	struct RoNOTindication	* rni = &(rni_s);

	result = RoUnBindReject (sd, status, reason, rni);

	if (result == NOTOK)
	{
		(void) ronot2dsaplose (di, "D-UNBIND.REJECT", rni);
		return (NOTOK);
	}

	return (result);
}


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.