Lines Matching refs:spx
461 ipxh->spx.dtype = 0; in spx_transmit()
462 ipxh->spx.sequence = htons(pdata->sequence); in spx_transmit()
463 ipxh->spx.ackseq = htons(pdata->rmt_seq); in spx_transmit()
464 ipxh->spx.sconn = pdata->source_connid; in spx_transmit()
465 ipxh->spx.dconn = pdata->dest_connid; in spx_transmit()
466 ipxh->spx.allocseq = htons(pdata->alloc); in spx_transmit()
475 ipxh->spx.cctl = (CCTL_ACK | CCTL_EOM); in spx_transmit()
483 ipxh->spx.cctl = CCTL_SYS; in spx_transmit()
484 ipxh->spx.ackseq = htons(pdata->rmt_seq); in spx_transmit()
493 ipxh->spx.cctl = (CCTL_ACK | CCTL_SYS); in spx_transmit()
494 ipxh->spx.sconn = pdata->source_connid; in spx_transmit()
495 ipxh->spx.dconn = pdata->dest_connid; in spx_transmit()
496 ipxh->spx.allocseq = htons(pdata->alloc); in spx_transmit()
500 ipxh->spx.cctl = CCTL_ACK; in spx_transmit()
501 ipxh->spx.dtype = SPX_DTYPE_ECONN; in spx_transmit()
505 ipxh->spx.cctl = 0; in spx_transmit()
506 ipxh->spx.dtype = SPX_DTYPE_ECACK; in spx_transmit()
507 ipxh->spx.sequence = 0; in spx_transmit()
508 ipxh->spx.ackseq = htons(pdata->rmt_seq++); in spx_transmit()
592 if(!(ntohs(ipxh->spx.sequence) - htons(ackseq))) in spx_retransmit_chk()
625 if((pdata->state == SPX_CLOSED) && (ipxh->spx.sequence != 0)) in spx_rcv()
631 if(ntohs(ipxh->spx.ackseq) > pdata->sequence) in spx_rcv()
640 switch(ipxh->spx.cctl) in spx_rcv()
643 if((ipxh->spx.sequence == 0) /* ConReq */ in spx_rcv()
644 && (ipxh->spx.ackseq == 0) in spx_rcv()
645 && (ipxh->spx.dconn == 0xFFFF)) in spx_rcv()
650 pdata->dest_connid = ipxh->spx.sconn; in spx_rcv()
651 pdata->alloc = 3 + ntohs(ipxh->spx.sequence); in spx_rcv()
661 if((ipxh->spx.dtype == 0) /* ConReq ACK */ in spx_rcv()
662 && (ipxh->spx.sconn != 0xFFFF) in spx_rcv()
663 && (ipxh->spx.dconn != 0xFFFF) in spx_rcv()
664 && (ipxh->spx.sequence == 0) in spx_rcv()
665 && (ipxh->spx.ackseq == 0) in spx_rcv()
669 pdata->dest_connid = ipxh->spx.sconn; in spx_rcv()
679 spx_retransmit_chk(pdata, ipxh->spx.ackseq, ACK); in spx_rcv()
684 if(ipxh->spx.dtype == SPX_DTYPE_ECONN) in spx_rcv()
694 if(ntohs(ipxh->spx.sequence) == pdata->rmt_seq) in spx_rcv()
696 pdata->rmt_seq = ntohs(ipxh->spx.sequence); in spx_rcv()
697 pdata->rmt_ack = ntohs(ipxh->spx.ackseq); in spx_rcv()
704 if(ipxh->spx.cctl&CCTL_ACK) in spx_rcv()
709 if(ipxh->spx.dtype == SPX_DTYPE_ECACK) in spx_rcv()
906 SOCKOPS_WRAP(spx, PF_IPX);