/dports/net/honeyd/honeyd-1.5c/ |
H A D | hsniff.c | 279 off = seg->seq + seg->len - th_seq; in tcp_insert() 280 th_seq += off; in tcp_insert() 335 uint32_t th_seq; in tcp_recv_cb() local 354 th_seq = ntohl(tcp->th_seq); in tcp_recv_cb() 368 con->snd_una = th_seq + 1; in tcp_recv_cb() 392 off = con->snd_una - th_seq; in tcp_recv_cb() 393 th_seq += off; in tcp_recv_cb() 398 if (th_seq == con->snd_una) { in tcp_recv_cb() 404 con->snd_una = th_seq + dlen; in tcp_recv_cb() 414 con->snd_una = th_seq - TCP_WIN_MAX; in tcp_recv_cb() [all …]
|
/dports/security/snort3/snort3-3.1.19.0/src/protocols/ |
H A D | tcp.h | 66 #define GET_PKT_SEQ(p) (ntohl((p)->ptrs.tcph->th_seq)) 76 uint32_t th_seq; /* sequence number */ member 110 { return ntohl(th_seq); } in seq() 150 { return th_seq; } in raw_seq() 178 { th_seq = htonl(new_seq); } in set_seq()
|
/dports/net-mgmt/argus3/argus-3.0.8.2/argus/ |
H A D | ArgusTcp.c | 88 tcp->th_seq = ntohl(thdr->th_seq); in ArgusUpdateTCPState() 127 if (tcp->th_seq) { in ArgusUpdateTCPState() 128 ArgusThisTCPsrc->seqbase = tcp->th_seq - 1; in ArgusUpdateTCPState() 146 ArgusThisTCPsrc->seqbase = tcp->th_seq; in ArgusUpdateTCPState() 147 ArgusThisTCPsrc->seq = tcp->th_seq; in ArgusUpdateTCPState() 159 ArgusThisTCPsrc->seqbase = tcp->th_seq; in ArgusUpdateTCPState() 160 ArgusThisTCPsrc->seq = tcp->th_seq; in ArgusUpdateTCPState() 360 if ((tcp->th_seq >= ArgusThisTCPsrc->ack) && in ArgusUpdateTCPStateMachine() 527 unsigned int seq = tcp->th_seq; in ArgusUpdateTCPSequence() 573 if (tcp->th_seq < ArgusThisTCPsrc->seq) { in ArgusUpdateTCPSequence() [all …]
|
/dports/security/fragrouter/fragrouter-1.6/ |
H A D | tcp_seg.c | 60 u_long tcp_newseq = ntohl(tcph->th_seq); in tcp_seg_make() 79 ((struct tcphdr *)(data + ip_hl))->th_seq = htonl(tcp_newseq); in tcp_seg_make() 169 ((struct tcphdr *)(s->data + ip_hl))->th_seq = in tcp_seg_interleave_nulls() 170 htonl(((struct tcphdr *)(s->data + ip_hl))->th_seq); in tcp_seg_interleave_nulls() 201 htonl(tcph->th_seq * 2), 0, TH_SYN, ntohs(tcph->th_win), in tcp_seg_interleave_syns() 241 ntohl(tcph->th_seq) + 1, ntohl(tcph->th_ack), in tcp_seg_prepend_fakeclose() 258 ntohl(tcph->th_seq) + 2, ntohl(tcph->th_ack), in tcp_seg_prepend_fakeclose() 290 ntohl(tcph->th_seq) * 2, 0, TH_SYN, ntohs(tcph->th_win), in tcp_seg_prepend_connection() 307 ntohl(tcph->th_seq) * 2 + 1, 0, TH_RST, ntohs(tcph->th_win), in tcp_seg_prepend_connection() 388 newseq = ntohl(tcph->th_seq) + newlen; in tcp_seg_interleave_overwrites() [all …]
|
/dports/security/suricata/suricata-6.0.4/src/ |
H A D | app-layer.c | 1130 p->tcph->th_seq = htonl(1); in AppLayerTest01() 1192 p->tcph->th_seq = htonl(1); in AppLayerTest01() 1244 p->tcph->th_seq = htonl(1); in AppLayerTest02() 1264 p->tcph->th_seq = htonl(1); in AppLayerTest02() 1296 p->tcph->th_seq = htonl(3); in AppLayerTest02() 1358 p->tcph->th_seq = htonl(1); in AppLayerTest02() 1421 p->tcph->th_seq = htonl(1); in AppLayerTest03() 1483 p->tcph->th_seq = htonl(1); in AppLayerTest03() 1547 p->tcph->th_seq = htonl(1); in AppLayerTest04() 1569 p->tcph->th_seq = htonl(1); in AppLayerTest04() [all …]
|
H A D | stream-tcp-reassemble.c | 2210 p->tcph->th_seq = htonl(5); in StreamTcpReassembleTest33() 2429 p->tcph->th_seq = htonl(1); in StreamTcpReassembleTest39() 2452 p->tcph->th_seq = htonl(1); in StreamTcpReassembleTest39() 2885 tcph.th_seq = htonl(10); in StreamTcpReassembleTest40() 2900 tcph.th_seq = htonl(10); in StreamTcpReassembleTest40() 2910 tcph.th_seq = htonl(11); in StreamTcpReassembleTest40() 2920 tcph.th_seq = htonl(55); in StreamTcpReassembleTest40() 2935 tcph.th_seq = htonl(12); in StreamTcpReassembleTest40() 2945 tcph.th_seq = htonl(100); in StreamTcpReassembleTest40() 2955 tcph.th_seq = htonl(13); in StreamTcpReassembleTest40() [all …]
|
H A D | stream-tcp.c | 6536 tcph.th_seq = htonl(10); in StreamTcpTest03() 6612 tcph.th_seq = htonl(10); in StreamTcpTest04() 6682 tcph.th_seq = htonl(10); in StreamTcpTest05() 6847 tcph.th_seq = htonl(10); in StreamTcpTest07() 6909 tcph.th_seq = htonl(10); in StreamTcpTest08() 6972 tcph.th_seq = htonl(10); in StreamTcpTest09() 7041 tcph.th_seq = htonl(10); in StreamTcpTest10() 7120 tcph.th_seq = htonl(10); in StreamTcpTest11() 7200 tcph.th_seq = htonl(10); in StreamTcpTest12() 7296 tcph.th_seq = htonl(10); in StreamTcpTest13() [all …]
|
/dports/net-mgmt/tcpreplay/tcpreplay-4.3.4/src/tcpedit/ |
H A D | rewrite_sequence.c | 50 newnum = ntohl(tcp_hdr->th_seq) + tcpedit->tcp_sequence_adjust; in rewrite_seqs() 51 csum_replace4(&tcp_hdr->th_sum, tcp_hdr->th_seq, htonl(newnum)); in rewrite_seqs() 52 tcp_hdr->th_seq = htonl(newnum); in rewrite_seqs()
|
/dports/net/icmpinfo/icmpinfo-1.11/ |
H A D | print.c | 122 …offsetof(struct icmp,icmp_dun)+sizeof(struct ip)+offsetof(struct tcphdr,th_seq)+sizeof(tp->th_seq)) 127 ntohl(tp->th_seq)); 137 ntohl(tp->th_seq)); 140 ntohs(tp->th_dport),ntohl(tp->th_seq));
|
/dports/net/nast/nast-0.2.0/ncurses/ |
H A D | n_rst.c | 86 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 89 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 92 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 98 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 101 …r_add(ip_src,ip_dst,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 119 …r_add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 122 …r_add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 125 …r_add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 131 …r_add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db() 134 …r_add(ip_dst,ip_src,htons(tcp->th_sport),htons(tcp->th_dport),htonl (tcp->th_seq), htonl (tcp->th_… in rst_connection_db()
|
/dports/emulators/qemu42/qemu-4.2.1/net/ |
H A D | filter-rewriter.c | 82 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 186 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 198 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 211 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 223 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu/qemu-6.2.0/net/ |
H A D | filter-rewriter.c | 81 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 188 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 203 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 216 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 228 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu60/qemu-6.0.0/net/ |
H A D | filter-rewriter.c | 81 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 188 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 203 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 216 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 228 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu5/qemu-5.2.0/net/ |
H A D | filter-rewriter.c | 81 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 188 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 203 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 216 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 228 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu-utils/qemu-4.2.1/net/ |
H A D | filter-rewriter.c | 82 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 186 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 198 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 211 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 223 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/net/ |
H A D | filter-rewriter.c | 82 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 186 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 198 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 211 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 223 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/net/ |
H A D | filter-rewriter.c | 81 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 188 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 203 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 216 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 228 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/net/ |
H A D | filter-rewriter.c | 82 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 186 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 198 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 211 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt() 223 conn->fin_ack_seq = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt()
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/net/ |
H A D | filter-rewriter.c | 72 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_primary_tcp_pkt() 119 ntohl(tcp_pkt->th_seq), ntohl(tcp_pkt->th_ack), in handle_secondary_tcp_pkt() 130 conn->offset = ntohl(tcp_pkt->th_seq); in handle_secondary_tcp_pkt() 137 tcp_pkt->th_seq = htonl(ntohl(tcp_pkt->th_seq) - conn->offset); in handle_secondary_tcp_pkt()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/netinet/ |
H A D | tcp_input.c | 322 NTOHL(th->th_seq); in tcp_fields_to_host() 335 HTONL(th->th_seq); in tcp_fields_to_net() 479 pkt_seq = th->th_seq; in tcp_reass() 1017 ++th->th_seq; in tcp_vtw_input() 1063 th->th_seq += todrop; in tcp_vtw_input() 2229 tp->irs = th->th_seq; in tcp_input() 2288 th->th_seq++; in tcp_input() 2300 tp->rcv_up = th->th_seq; in tcp_input() 2359 th->th_seq++; in tcp_input() 2404 th->th_seq += todrop; in tcp_input() [all …]
|
/dports/net/tcpillust/tcpillust/ |
H A D | binread.c | 228 seq1 = ntohl(tcp->th_seq); in dumpip() 235 else seq2 = ntohl(tcp->th_seq); in dumpip() 249 tpacket[pktcount -1].seq = ntohl(tcp->th_seq) - seq1; in dumpip() 253 tpacket[pktcount -1].seq = ntohl(tcp->th_seq) - seq2; in dumpip() 369 seq1 = ntohl(tcp->th_seq); in dumpip6() 378 seq2 = ntohl(tcp->th_seq); in dumpip6() 392 tpacket[pktcount -1].seq = ntohl(tcp->th_seq) - seq1; in dumpip6() 396 tpacket[pktcount -1].seq = ntohl(tcp->th_seq) - seq2; in dumpip6()
|
/dports/security/snort3/snort3-3.1.19.0/src/codecs/ip/ |
H A D | cd_tcp.cc | 526 if ((tcph->th_seq == naptha_seq) and snort.ip_api.is_ip4() and in flag_tests() 578 ntohs(tcph->th_dport), (u_long)ntohl(tcph->th_seq), in log() 632 tcph_out->th_seq = htonl(seq); in encode() 634 tcph_out->th_seq = hi->th_seq; in encode() 637 tcph_out->th_seq = htonl(ntohl(hi->th_seq) + enc.dsize + ctl); in encode() 646 tcph_out->th_seq = hi->th_ack; in encode() 647 tcph_out->th_ack = htonl(ntohl(hi->th_seq) + enc.dsize + ctl); in encode() 652 uint32_t seq = ntohl(tcph_out->th_seq); in encode() 654 tcph_out->th_seq = htonl(seq); in encode()
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/net/ |
H A D | slcompress.c | 321 deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); in sl_compress_tcp() 558 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp_core() 563 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp_core() 578 DECODEL(th->th_seq) in sl_uncompress_tcp_core()
|
/dports/security/ipv6toolkit/ipv6toolkit-v2.0/tools/ |
H A D | tcp6.c | 1782 tcp->th_seq= htonl(tcpseq); 1784 tcp->th_seq = pkt_tcp->th_ack; 1792 tcp->th_seq= random(); 1802 tcp->th_seq= random(); 1823 tcp->th_seq= 0; 1908 tcp->th_seq= pkt_tcp->th_ack; 1909 tcp->th_ack= pkt_tcp->th_seq; 1967 tcp->th_seq= pkt_tcp->th_ack; 2043 tcp->th_seq= htonl( ntohl(tcp->th_seq) + ptr-((unsigned char *)tcp + (tcp->th_off << 2))); 2071 tcp->th_seq= htonl( ntohl(tcp->th_seq) + ptr-((unsigned char *)tcp + (tcp->th_off << 2))); [all …]
|
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/firmware/usrp2/lwip/lwip-1.3.1/src/netif/ppp/ |
H A D | vj.c | 307 if ((deltaL = ntohl(th->th_seq) - ntohl(oth->th_seq)) != 0) { in vj_compress_tcp() 527 tmp = ntohl(th->th_seq) + i; in vj_uncompress_tcp() 528 th->th_seq = htonl(tmp); in vj_uncompress_tcp() 534 tmp = ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) - cs->cs_hlen; in vj_uncompress_tcp() 535 th->th_seq = htonl(tmp); in vj_uncompress_tcp() 552 DECODEL(th->th_seq); in vj_uncompress_tcp()
|