/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/net/third_party/quiche/src/quic/qbone/platform/ |
H A D | tcp_packet.cc | 22 tcphdr tcp_header; member 74 tcp_packet.tcp_header.dest = tcp_header->source; in CreateTcpResetPacket() 75 tcp_packet.tcp_header.source = tcp_header->dest; in CreateTcpResetPacket() 80 tcp_packet.tcp_header.check = 0; in CreateTcpResetPacket() 92 tcp_packet.tcp_header.rst = 1; in CreateTcpResetPacket() 96 if (tcp_header->ack) { in CreateTcpResetPacket() 97 tcp_packet.tcp_header.seq = tcp_header->ack_seq; in CreateTcpResetPacket() 101 tcp_packet.tcp_header.ack = 1; in CreateTcpResetPacket() 102 tcp_packet.tcp_header.seq = 0; in CreateTcpResetPacket() 118 sizeof(tcp_packet.tcp_header)); in CreateTcpResetPacket() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/net/third_party/quiche/src/quic/qbone/platform/ |
H A D | tcp_packet.cc | 22 tcphdr tcp_header; member 73 tcp_packet.tcp_header.dest = tcp_header->source; in CreateTcpResetPacket() 74 tcp_packet.tcp_header.source = tcp_header->dest; in CreateTcpResetPacket() 79 tcp_packet.tcp_header.check = 0; in CreateTcpResetPacket() 91 tcp_packet.tcp_header.rst = 1; in CreateTcpResetPacket() 95 if (tcp_header->ack) { in CreateTcpResetPacket() 96 tcp_packet.tcp_header.seq = tcp_header->ack_seq; in CreateTcpResetPacket() 100 tcp_packet.tcp_header.ack = 1; in CreateTcpResetPacket() 101 tcp_packet.tcp_header.seq = 0; in CreateTcpResetPacket() 117 sizeof(tcp_packet.tcp_header)); in CreateTcpResetPacket() [all …]
|
/dports/net/zmap/zmap-2.1.1/src/probe_modules/ |
H A D | packet.c | 105 void make_tcp_header(struct tcphdr *tcp_header, port_h_t dest_port) in make_tcp_header() argument 107 tcp_header->th_seq = random(); in make_tcp_header() 108 tcp_header->th_ack = 0; in make_tcp_header() 109 tcp_header->th_x2 = 0; in make_tcp_header() 110 tcp_header->th_off = 5; // data offset in make_tcp_header() 111 tcp_header->th_flags = 0; in make_tcp_header() 112 tcp_header->th_flags |= TH_SYN; in make_tcp_header() 113 tcp_header->th_win = htons(65535); // largest possible window in make_tcp_header() 114 tcp_header->th_sum = 0; in make_tcp_header() 115 tcp_header->th_urp = 0; in make_tcp_header() [all …]
|
H A D | module_tcp_synscan.c | 42 struct tcphdr *tcp_header = (struct tcphdr*)(&ip_header[1]); in synscan_init_perthread() local 43 make_tcp_header(tcp_header, dst_port); in synscan_init_perthread() 52 struct tcphdr *tcp_header = (struct tcphdr*)(&ip_header[1]); in synscan_make_packet() local 58 tcp_header->th_sport = htons(get_src_port(num_ports, in synscan_make_packet() 60 tcp_header->th_seq = tcp_seq; in synscan_make_packet() 61 tcp_header->th_sum = 0; in synscan_make_packet() 62 tcp_header->th_sum = tcp_checksum(sizeof(struct tcphdr), in synscan_make_packet() 63 ip_header->ip_src.s_addr, ip_header->ip_dst.s_addr, tcp_header); in synscan_make_packet()
|
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/contrib/impcap/ |
H A D | tcp_parser.c | 86 tcp_header_t *tcp_header = tcp_header_to_char.hdr; in tcp_parse() local 92 if (tcp_header->flags & (0x01 << i)) in tcp_parse() 95 if (tcp_header->dor & 0x01) in tcp_parse() 98 uint16_t srcPort = ntohs(tcp_header->srcPort); in tcp_parse() 99 uint16_t dstPort = ntohs(tcp_header->dstPort); in tcp_parse() 101 …uint8_t headerLength = (tcp_header->dor & 0xF0) >> 2; //>>4 to offset but <<2 to get offset as byt… in tcp_parse() 105 json_object_object_add(jparent, "TCP_seq_number", json_object_new_int64(ntohl(tcp_header->seq))); in tcp_parse() 106 json_object_object_add(jparent, "TCP_ack_number", json_object_new_int64(ntohl(tcp_header->ack))); in tcp_parse()
|
/dports/security/snort3/snort3-3.1.19.0/src/protocols/ |
H A D | tcp_options.cc | 53 TcpOptIterator::TcpOptIterator(const TCPHdr* const tcp_header, const Packet* const p) in TcpOptIterator() argument 55 const uint8_t* const hdr = (const uint8_t*)tcp_header; in TcpOptIterator() 61 if (p->layers[i].start == (const uint8_t*)tcp_header) in TcpOptIterator() 74 TcpOptIterator::TcpOptIterator(const TCPHdr* const tcp_header, const uint32_t valid_hdr_len) in TcpOptIterator() argument 76 const uint8_t* const hdr = (const uint8_t*)tcp_header; in TcpOptIterator()
|
/dports/net/tcpflow/tcpflow-1.5.0/src/ |
H A D | tcpip.h | 219 tcp_header((struct be13::tcphdr *)data){}; in tcp_header_t() 222 tcp_header(b.tcp_header){} in tcp_header_t() 224 this->tcp_header = that.tcp_header; 229 struct be13::tcphdr *tcp_header; variable 230 size_t tcp_header_len(){ return tcp_header->th_off * 4; } in tcp_header_len() 231 uint16_t sport() {return ntohs(tcp_header->th_sport);} in sport() 232 uint16_t dport() {return ntohs(tcp_header->th_dport);} in dport() 233 be13::tcp_seq seq() {return ntohl(tcp_header->th_seq);} in seq() 234 bool th_fin() {return tcp_header->th_flags & TH_FIN;} in th_fin() 235 bool th_ack() {return tcp_header->th_flags & TH_ACK;} in th_ack() [all …]
|
H A D | tcpdemux.cpp | 355 struct be13::tcphdr *tcp_header = (struct be13::tcphdr *) ip_data; in process_tcp() local 358 flow_addr this_flow(src,dst,ntohs(tcp_header->th_sport),ntohs(tcp_header->th_dport),family); in process_tcp() 360 be13::tcp_seq seq = ntohl(tcp_header->th_seq); in process_tcp() 361 bool syn_set = FLAG_SET(tcp_header->th_flags, TH_SYN); in process_tcp() 362 bool ack_set = FLAG_SET(tcp_header->th_flags, TH_ACK); in process_tcp() 363 bool fin_set = FLAG_SET(tcp_header->th_flags, TH_FIN); in process_tcp() 364 bool rst_set = FLAG_SET(tcp_header->th_flags, TH_RST); in process_tcp() 367 u_int tcp_header_len = tcp_header->th_off * 4; in process_tcp()
|
/dports/net-mgmt/sendip/sendip-2.5/ |
H A D | tcp.c | 33 tcp_header *tcp = (tcp_header *)tcp_hdr->data; in tcpcsum() 59 tcp_header *tcp = (tcp_header *)tcp_hdr->data; in tcp6csum() 101 tcp_header *tcp = malloc(sizeof(tcp_header)); in initialize() 102 memset(tcp,0,sizeof(tcp_header)); in initialize() 103 ret->alloc_len = sizeof(tcp_header); in initialize() 110 tcp_header *tcp = (tcp_header *)pack->data; in do_opt() 317 tcp_header *tcp = (tcp_header *)pack->data; in finalize()
|
/dports/security/snort/snort-2.9.18/src/dynamic-plugins/sf_engine/ |
H A D | sf_snort_plugin_hdropts.c | 214 (!pkt->ip4_header || !pkt->tcp_header)) in checkHdrOptInternal() 251 value = ntohl(pkt->tcp_header->acknowledgement); in checkHdrOptInternal() 254 value = ntohl(pkt->tcp_header->sequence); in checkHdrOptInternal() 257 … return checkBits(optData->value, optData->op, (pkt->tcp_header->flags & ~optData->mask_value)); in checkHdrOptInternal() 260 value = ntohs(pkt->tcp_header->window); in checkHdrOptInternal()
|
/dports/net-mgmt/ettercap/ettercap-0.8.3.1/src/protocols/ |
H A D | ec_tcp.c | 33 struct tcp_header { struct 107 struct tcp_header *tcp; in FUNC_DECODER() 115 tcp = (struct tcp_header *)DECODE_DATA; in FUNC_DECODER() 349 struct tcp_header *tcph; in FUNC_INJECTOR() 364 PACKET->packet -= sizeof(struct tcp_header); in FUNC_INJECTOR() 367 tcph = (struct tcp_header *)PACKET->packet; in FUNC_INJECTOR() 395 LENGTH += sizeof(struct tcp_header); in FUNC_INJECTOR() 415 PACKET->L4.len = sizeof(struct tcp_header); in FUNC_INJECTOR()
|
/dports/devel/hyperscan/hyperscan-5.4.0/tools/hsbench/scripts/ |
H A D | pcapCorpus.py | 65 self.tcp_header = header 70 opts = ord(self.tcp_header[13]) & 0x3F 74 opts = ord(self.tcp_header[13]) & 0x3F 279 tcp_header = ip_payload[0:tcp_hdr_len] 281 segment = TcpSegment(five_tuple, tcp_header, tcp_payload)
|
/dports/security/tpm2-tss/tpm2-tss-3.1.0/src/tss2-tcti/ |
H A D | tcti-pcap-builder.c | 146 } tcp_header; typedef 508 pdu_len = sizeof (tcp_header) + payload_len; in pcap_write_tcp_segment() 510 tcp_header header = { in pcap_write_tcp_segment() 511 .header_len_flags = htons ((SIZEOF_IN_OCTETS (tcp_header) << 12) | TCP_FLAGS_ACK), in pcap_write_tcp_segment() 537 memcpy (buf, &header, sizeof (tcp_header)); in pcap_write_tcp_segment() 538 buf += sizeof (tcp_header); in pcap_write_tcp_segment()
|
/dports/security/passivedns/passivedns-1.2.1-22-gd757713/src/ |
H A D | passivedns.h | 215 } tcp_header; typedef 217 #define TCP_OFFSET(tcp_header) (((tcp_header)->t_offx2 & 0xf0) >> 4) argument 218 #define TCP_X2(tcp_header) ((tcp_header)->t_offx2 & 0x0f) argument 219 #define TCP_ISFLAGSET(tcp_header, flags) (((tcp_header)->t_flags & (flags)) == (flags)) argument 391 tcp_header *tcph; /* TCP header struct pointer */
|
/dports/emulators/qemu42/qemu-4.2.1/net/ |
H A D | checksum.c | 122 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 124 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu5/qemu-5.2.0/net/ |
H A D | checksum.c | 122 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 124 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu-utils/qemu-4.2.1/net/ |
H A D | checksum.c | 122 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 124 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/net/ |
H A D | checksum.c | 123 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 125 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/net/ |
H A D | checksum.c | 122 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 124 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/net/ |
H A D | checksum.c | 122 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 124 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu/qemu-6.2.0/net/ |
H A D | checksum.c | 137 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 139 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu60/qemu-6.0.0/net/ |
H A D | checksum.c | 137 tcp_header *tcp = (tcp_header *)(ip + 1); in net_checksum_calculate() 139 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
|
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/net/ |
H A D | checksum.c | 137 tcp_header *tcp = (tcp_header *)(ip + 1); 139 if (ip_len < sizeof(tcp_header)) {
|
/dports/net/ipsumdump/ipsumdump-1.86/src/ |
H A D | truncateippayload.cc | 73 && p->tcp_header()->th_off >= (sizeof(click_tcp) >> 2)) in simple_action() 74 nbytes += p->tcp_header()->th_off << 2; in simple_action()
|
/dports/devel/z88dk/z88dk/include/net/ |
H A D | inet.h | 38 struct tcp_header { struct 99 typedef struct tcp_header tcp_header_t;
|