Lines Matching refs:seq
86 if ( len > conn->mtu + sizeof(conn->seq) )
88 crWarning( "crUDPIPWriteExact(%d): too big a packet for mtu %d, dropping !", len, (int)(conn->mtu + sizeof(conn->seq)) );
130 opt -= sizeof(conn->seq) + sizeof(struct udphdr) + sizeof(struct ip6_hdr);
260 conn->seq++;
366 *seqp = SWAP32(conn->seq);
370 *seqp = conn->seq;
500 unsigned int *seq;
502 seq = (unsigned int *)(buf + 1) - 1;
503 if ( *seq == conn->ack )
511 if ( *seq - conn->ack > (~(0U)) >> 1 )
513 crError( "%u is older than %u ?!", *seq, conn->ack );
524 unsigned int *seq = ((unsigned int *) (buf + 1)) - 1;
527 len = recv( conn->udp_socket, (void *)seq,
528 buf->allocated + sizeof(*seq), MSG_TRUNC );
531 CRASSERT( (unsigned int)len <= buf->allocated + sizeof(*seq) );
532 if ( len < (int) sizeof(*seq) )
541 if ( *seq == conn->ack)
547 if ( *seq - conn->ack > (~(0U)) >> 1 )
549 crWarning( "%u is older than %u, dropping", *seq, conn->ack );
718 opt -= sizeof(conn->seq) + sizeof(struct udphdr) + sizeof(struct ip6_hdr);
749 conn->seq = 0;
752 conn->mtu -= sizeof(conn->seq); /* some room for seq */