Lines Matching defs:cbuf
99 static char cbuf[ 8 ];
263 cbuf[ 0 ] = 0;
264 cbuf[ 1 ] = PAP_SENDSTATUS;
265 cbuf[ 2 ] = cbuf[ 3 ] = 0;
267 atpb.atp_sreqdata = cbuf;
318 cbuf[ 0 ] = connid = getpid() & 0xff;
319 cbuf[ 1 ] = PAP_OPEN;
320 cbuf[ 2 ] = cbuf[ 3 ] = 0;
321 cbuf[ 4 ] = atp_sockaddr( atp )->sat_port;
322 cbuf[ 5 ] = oquantum; /* flow quantum */
337 memcpy(cbuf + 6, &waiting, sizeof( waiting ));
340 atpb.atp_sreqdata = cbuf;
416 cbuf[ 0 ] = connid;
417 cbuf[ 1 ] = PAP_CLOSE;
418 cbuf[ 2 ] = cbuf[ 3 ] = 0;
421 atpb.atp_sreqdata = cbuf;
487 cbuf[ 0 ] = connid;
488 cbuf[ 1 ] = PAP_READ;
491 memcpy( cbuf + 2, &netseq, sizeof( netseq ));
493 atpb.atp_sreqdata = cbuf;
516 cbuf[ 0 ] = connid;
517 cbuf[ 1 ] = PAP_TICKLE;
518 cbuf[ 2 ] = cbuf[ 3 ] = 0;
520 atpb.atp_sreqdata = cbuf;
584 atpb.atp_rreqdata = cbuf;
585 atpb.atp_rreqdlen = sizeof( cbuf );
591 if ( (unsigned char)cbuf[ 0 ] != connid ) {
598 switch ( cbuf[ 1 ] ) {
600 memcpy( cbuf + 2, &netseq, sizeof( netseq ));
704 cbuf[ 0 ] = connid;
705 cbuf[ 1 ] = PAP_READ;
708 memcpy( cbuf + 2, &netseq, sizeof( netseq ));
710 atpb.atp_sreqdata = cbuf;
781 cbuf[ 0 ] = 0;
782 cbuf[ 1 ] = PAP_SENDSTATUS;
783 cbuf[ 2 ] = cbuf[ 3 ] = 0;
785 atpb.atp_sreqdata = cbuf;