#include <netat/adsp.h>
#include <netat/adsp_internal.h>
-extern atlock_t adspgen_lock;
/*
* NextCID
*/
unsigned short NextCID()
{
- int s;
unsigned short num;
register CCB *queue;
while (1) {
- ATDISABLE(s, adspgen_lock); /* Disable interrupts */
num = ++adspGlobal.lastCID;
/* qfind_w below is in 68K assembly */
/* point to the first element */
break;
queue = queue->ccbLink;
}
- ATENABLE(s, adspgen_lock);
if (queue == (CCBPtr)NULL)
break;
}
if (ocMode == ocEstablish) { /* Only set these if establish mode */
sp->recvSeq = pb->u.openParams.recvSeq;
sp->attnRecvSeq = pb->u.openParams.attnRecvSeq;
- UAS_ASSIGN(sp->f.CID, sp->locCID); /* Preset the CID in the ADSP header */
+ UAS_ASSIGN_HTON(sp->f.CID, sp->locCID); /* Preset the CID in the ADSP header */
/* This is done elsewhere for all other modes */
InsertTimerElem(&adspGlobal.slowTimers, &sp->ProbeTimer,
sp->probeInterval);