• Home
  • Raw
  • Download

Lines Matching refs:tcp

162 void dump_tcp_generic(const struct tcphdr *tcp, const char *options, size_t options_size, uint32_t …  in dump_tcp_generic()  argument
165 temp_checksum = ip_checksum_add(temp_checksum, tcp, sizeof(struct tcphdr)); in dump_tcp_generic()
173 printf("source = %x\n",ntohs(tcp->source)); in dump_tcp_generic()
174 printf("dest = %x\n",ntohs(tcp->dest)); in dump_tcp_generic()
175 printf("seq = %x\n",ntohl(tcp->seq)); in dump_tcp_generic()
176 printf("ack = %x\n",ntohl(tcp->ack_seq)); in dump_tcp_generic()
177 printf("d_off = %x\n",tcp->doff); in dump_tcp_generic()
178 printf("res1 = %x\n",tcp->res1); in dump_tcp_generic()
180 printf("CWR = %x\n",tcp->cwr); in dump_tcp_generic()
181 printf("ECE = %x\n",tcp->ece); in dump_tcp_generic()
183 printf("CWR/ECE = %x\n",tcp->res2); in dump_tcp_generic()
186 tcp->urg, tcp->ack, tcp->psh, tcp->rst, tcp->syn, tcp->fin); in dump_tcp_generic()
187 printf("window = %x\n",ntohs(tcp->window)); in dump_tcp_generic()
188 printf("check = %x [mine %x]\n",tcp->check,my_checksum); in dump_tcp_generic()
189 printf("urgent = %x\n",tcp->urg_ptr); in dump_tcp_generic()
203 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, const char *payload, size_t payload… in dump_tcp() argument
206 temp_checksum = ipv4_pseudo_header_checksum(0, ip, sizeof(*tcp) + options_size + payload_size); in dump_tcp()
207 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size); in dump_tcp()
211 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const char *payload, size_t pay… in dump_tcp6() argument
214 temp_checksum = ipv6_pseudo_header_checksum(0, ip6, sizeof(*tcp) + options_size + payload_size); in dump_tcp6()
215 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size); in dump_tcp6()