Lines Matching refs:seq1
1178 u_32_t seq1, seq2;
1194 seq1 = (u_32_t)ntohl(tcp->th_seq);
1199 (seq1 > aps->aps_seqmin[!sel])) {
1202 sel, !sel, seq1,
1209 if (seq1 > seq2) {
1211 seq1 += seq2;
1212 tcp->th_seq = htonl(seq1);
1217 if (inc && (seq1 > aps->aps_seqmin[!sel])) {
1218 aps->aps_seqmin[sel] = seq1 + nlen - 1;
1228 seq1 = ntohl(tcp->th_ack);
1233 (seq1 > aps->aps_ackmin[!sel])) {
1236 sel, !sel, seq1,
1241 if (aps->aps_ackoff[sel] && (seq1 > aps->aps_ackmin[sel])) {
1243 tcp->th_ack = htonl(seq1 - seq2);
1247 seq1 = ntohl(tcp->th_seq);
1252 (seq1 > aps->aps_ackmin[!sel])) {
1255 sel, !sel, seq1, aps->aps_ackmin[!sel]);
1261 if (seq1 > seq2) {
1263 seq1 += seq2;
1264 tcp->th_seq = htonl(seq1);
1269 if (inc && (seq1 > aps->aps_ackmin[!sel])) {
1270 aps->aps_ackmin[!sel] = seq1 + nlen - 1;
1281 seq1 = ntohl(tcp->th_ack);
1286 (seq1 > aps->aps_seqmin[!sel])) {
1289 sel, !sel, seq1, aps->aps_seqmin[!sel]);
1295 printf("sel %d seqoff %d seq1 %x seqmin %x\n",
1296 sel, aps->aps_seqoff[sel], seq1,
1298 if (seq1 > aps->aps_seqmin[sel]) {
1300 tcp->th_ack = htonl(seq1 - seq2);