tag | line | file | source code |
th | 175 | net/tcp/sock.h | struct tcp_header *th; |
th | 125 | net/tcp/tcp.c | print_th (struct tcp_header *th) |
th | 128 | net/tcp/tcp.c | ptr = (unsigned char *)(th + 1); |
th | 131 | net/tcp/tcp.c | net16(th->source), net16(th->dest), net32(th->seq), |
th | 132 | net/tcp/tcp.c | net32(th->ack_seq))); |
th | 134 | net/tcp/tcp.c | ,th->fin, th->syn, th->rst, th->psh, th->ack, th->urg, |
th | 135 | net/tcp/tcp.c | th->res1, th->res2)); |
th | 137 | net/tcp/tcp.c | net16(th->window), net16(th->check), net16(th->urg_ptr))); |
th | 138 | net/tcp/tcp.c | PRINTK ((" doff = %d\n",th->doff)); |
th | 213 | net/tcp/tcp.c | struct tcp_header *th; |
th | 219 | net/tcp/tcp.c | th = (struct tcp_header *)header; |
th | 220 | net/tcp/tcp.c | sk = get_sock (&tcp_prot, net16(th->dest), saddr, th->source, daddr); |
th | 221 | net/tcp/tcp.c | print_th (th); |
th | 279 | net/tcp/tcp.c | if (before (counted, skb->h.th->seq)) break; |
th | 280 | net/tcp/tcp.c | sum = skb->len - ( counted - skb->h.th->seq); |
th | 281 | net/tcp/tcp.c | if (skb->h.th->syn) sum ++; |
th | 282 | net/tcp/tcp.c | if (skb->h.th->urg) |
th | 284 | net/tcp/tcp.c | sum -= net16(skb->h.th->urg_ptr); |
th | 289 | net/tcp/tcp.c | if (skb->h.th->syn) amount --; |
th | 292 | net/tcp/tcp.c | if (amount && skb->h.th->psh) break; |
th | 418 | net/tcp/tcp.c | if (sk->copied_seq+1 == skb->h.th->seq && skb->h.th->urg) |
th | 444 | net/tcp/tcp.c | tcp_check (struct tcp_header *th, int len, unsigned long saddr, |
th | 450 | net/tcp/tcp.c | print_th (th); |
th | 467 | net/tcp/tcp.c | : "=b" (sum) , "=S" (th) |
th | 468 | net/tcp/tcp.c | : "0" (sum), "c" (len/4) ,"1" (th) |
th | 488 | net/tcp/tcp.c | : "=b" (sum), "=S" (th) |
th | 489 | net/tcp/tcp.c | : "0" (sum) ,"1" (th) |
th | 501 | net/tcp/tcp.c | : "0" (sum) ,"S" (th) |
th | 512 | net/tcp/tcp.c | tcp_send_check (struct tcp_header *th, unsigned long saddr, |
th | 516 | net/tcp/tcp.c | th->check = 0; |
th | 518 | net/tcp/tcp.c | th->check = tcp_check (th, len, saddr, daddr); |
th | 531 | net/tcp/tcp.c | tcp_send_check (skb->h.th, sk->saddr, sk->daddr, |
th | 532 | net/tcp/tcp.c | skb->len-(unsigned long)skb->h.th + |
th | 568 | net/tcp/tcp.c | struct tcp_header *th, unsigned long daddr) |
th | 609 | net/tcp/tcp.c | memcpy (t1, th, sizeof (*t1)); /* this should probably be removed. */ |
th | 612 | net/tcp/tcp.c | t1->dest = th->source; |
th | 613 | net/tcp/tcp.c | t1->source = th->dest; |
th | 646 | net/tcp/tcp.c | tcp_build_header(struct tcp_header *th, volatile struct sock *sk, int push) |
th | 650 | net/tcp/tcp.c | memcpy (th,(void *) &(sk->dummy_th), sizeof (*th)); |
th | 651 | net/tcp/tcp.c | th->seq = net32(sk->send_seq); |
th | 652 | net/tcp/tcp.c | th->psh = (push == 0) ? 1 : 0; |
th | 653 | net/tcp/tcp.c | th->doff = sizeof (*th)/4; |
th | 654 | net/tcp/tcp.c | th->ack = 1; |
th | 655 | net/tcp/tcp.c | th->fin = 0; |
th | 659 | net/tcp/tcp.c | th->ack_seq = net32(sk->acked_seq); |
th | 661 | net/tcp/tcp.c | th->window = net16(sk->window); |
th | 663 | net/tcp/tcp.c | return (sizeof (*th)); |
th | 794 | net/tcp/tcp.c | if (skb->len - (unsigned long)skb->h.th + |
th | 895 | net/tcp/tcp.c | skb->h.th =(struct tcp_header *) buff; |
th | 1180 | net/tcp/tcp.c | if (skb->h.th->urg && !skb->urg_used) |
th | 1182 | net/tcp/tcp.c | if (skb->h.th->urg_ptr == 0) |
th | 1184 | net/tcp/tcp.c | skb->h.th->urg_ptr = net16(skb->len); |
th | 1186 | net/tcp/tcp.c | amt = min(net16(skb->h.th->urg_ptr),len); |
th | 1188 | net/tcp/tcp.c | memcpy_tofs (to, (unsigned char *)(skb->h.th) + |
th | 1189 | net/tcp/tcp.c | skb->h.th->doff*4, amt); |
th | 1243 | net/tcp/tcp.c | while ( skb == NULL || before (sk->copied_seq+1, skb->h.th->seq) || |
th | 1321 | net/tcp/tcp.c | before (sk->copied_seq+1, sk->rqueue->next->h.th->seq) ) |
th | 1351 | net/tcp/tcp.c | offset = sk->copied_seq+1 - skb->h.th->seq; |
th | 1353 | net/tcp/tcp.c | if (skb->h.th->syn) offset --; |
th | 1358 | net/tcp/tcp.c | if (skb->h.th->urg) |
th | 1362 | net/tcp/tcp.c | sk->copied_seq += net16(skb->h.th->urg_ptr); |
th | 1363 | net/tcp/tcp.c | offset += net16(skb->h.th->urg_ptr); |
th | 1381 | net/tcp/tcp.c | memcpy_tofs(to, ((unsigned char *)skb->h.th) + |
th | 1382 | net/tcp/tcp.c | skb->h.th->doff*4 + |
th | 1395 | net/tcp/tcp.c | (!skb->h.th->urg || skb->urg_used) && |
th | 1401 | net/tcp/tcp.c | if ( skb->h.th->psh || skb->h.th->urg) |
th | 1429 | net/tcp/tcp.c | struct tcp_header *t1,*th; |
th | 1451 | net/tcp/tcp.c | th=(struct tcp_header *)&sk->dummy_th; |
th | 1485 | net/tcp/tcp.c | memcpy (t1, th, sizeof (*t1)); |
th | 1552 | net/tcp/tcp.c | tcp_reset(unsigned long saddr, unsigned long daddr, struct tcp_header *th, |
th | 1582 | net/tcp/tcp.c | memcpy (t1, th, sizeof (*t1)); |
th | 1584 | net/tcp/tcp.c | t1->dest = th->source; |
th | 1585 | net/tcp/tcp.c | t1->source = th->dest; |
th | 1586 | net/tcp/tcp.c | t1->seq = th->ack_seq; /* add one so it will be in |
th | 1615 | net/tcp/tcp.c | struct tcp_header *th; |
th | 1617 | net/tcp/tcp.c | th = skb->h.th; |
th | 1631 | net/tcp/tcp.c | tcp_reset (daddr, saddr, th, sk->prot, opt, dev); |
th | 1682 | net/tcp/tcp.c | newsk->acked_seq = skb->h.th->seq+1; |
th | 1683 | net/tcp/tcp.c | newsk->fin_seq = skb->h.th->seq; |
th | 1684 | net/tcp/tcp.c | newsk->copied_seq = skb->h.th->seq; |
th | 1694 | net/tcp/tcp.c | newsk->dummy_th.source = skb->h.th->dest; |
th | 1695 | net/tcp/tcp.c | newsk->dummy_th.dest = skb->h.th->source; |
th | 1710 | net/tcp/tcp.c | newsk->acked_seq = skb->h.th->seq+1; |
th | 1711 | net/tcp/tcp.c | newsk->copied_seq = skb->h.th->seq; |
th | 1713 | net/tcp/tcp.c | if (skb->h.th->doff == 5) |
th | 1719 | net/tcp/tcp.c | ptr = (unsigned char *)(skb->h.th + 1); |
th | 1768 | net/tcp/tcp.c | memcpy (t1, skb->h.th, sizeof (*t1)); |
th | 1771 | net/tcp/tcp.c | t1->dest = skb->h.th->source; |
th | 1783 | net/tcp/tcp.c | t1->ack_seq = net32(skb->h.th->seq+1); |
th | 1827 | net/tcp/tcp.c | struct tcp_header *t1,*th; |
th | 1850 | net/tcp/tcp.c | after (skb->h.th->seq + skb->len + 1, sk->copied_seq)) |
th | 1902 | net/tcp/tcp.c | th=(struct tcp_header *)&sk->dummy_th; |
th | 1937 | net/tcp/tcp.c | memcpy (t1, th, sizeof (*t1)); |
th | 2022 | net/tcp/tcp.c | tcp_ack (volatile struct sock *sk, struct tcp_header *th, unsigned long saddr) |
th | 2025 | net/tcp/tcp.c | ack = net32(th->ack_seq); |
th | 2029 | net/tcp/tcp.c | ack, net16(th->window), sk->rcv_ack_seq, sk->window_seq)); |
th | 2044 | net/tcp/tcp.c | if (after (sk->window_seq, ack+net16(th->window))) |
th | 2056 | net/tcp/tcp.c | sk->window_seq = ack + net16(th->window); |
th | 2126 | net/tcp/tcp.c | sk->window_seq = ack + net16(th->window); |
th | 2288 | net/tcp/tcp.c | tcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, sk->daddr); |
th | 2309 | net/tcp/tcp.c | struct tcp_header *th; |
th | 2311 | net/tcp/tcp.c | th = skb->h.th; |
th | 2312 | net/tcp/tcp.c | print_th (th); |
th | 2313 | net/tcp/tcp.c | skb->len = len - (th->doff*4); |
th | 2319 | net/tcp/tcp.c | if (skb->len == 0 && !th->fin && !th->urg && !th->psh) |
th | 2322 | net/tcp/tcp.c | if (!th->ack) |
th | 2323 | net/tcp/tcp.c | tcp_send_ack (sk->send_seq, sk->acked_seq,sk, th, saddr); |
th | 2330 | net/tcp/tcp.c | sk->acked_seq = th->seq + skb->len + th->syn + th->fin; |
th | 2331 | net/tcp/tcp.c | tcp_reset (sk->saddr, sk->daddr, skb->h.th, |
th | 2365 | net/tcp/tcp.c | PRINTK (("skb1->h.th->seq = %d\n", skb1->h.th->seq)); |
th | 2366 | net/tcp/tcp.c | if (after ( th->seq+1, skb1->h.th->seq)) |
th | 2391 | net/tcp/tcp.c | th->ack_seq = th->seq + skb->len; |
th | 2392 | net/tcp/tcp.c | if (th->syn) th->ack_seq ++; |
th | 2393 | net/tcp/tcp.c | if (th->fin) th->ack_seq ++; |
th | 2402 | net/tcp/tcp.c | if (skb1 == NULL || skb1->acked || before (th->seq, sk->acked_seq+1)) |
th | 2404 | net/tcp/tcp.c | if (before (th->seq, sk->acked_seq+1)) |
th | 2406 | net/tcp/tcp.c | if (after (th->ack_seq, sk->acked_seq)) |
th | 2407 | net/tcp/tcp.c | sk->acked_seq = th->ack_seq; |
th | 2411 | net/tcp/tcp.c | if (skb->h.th->fin) |
th | 2421 | net/tcp/tcp.c | if (before(skb2->h.th->seq, sk->acked_seq+1)) |
th | 2423 | net/tcp/tcp.c | if (after (skb2->h.th->ack_seq, sk->acked_seq)) |
th | 2424 | net/tcp/tcp.c | sk->acked_seq = skb2->h.th->ack_seq; |
th | 2428 | net/tcp/tcp.c | if (skb2->h.th->fin) |
th | 2449 | net/tcp/tcp.c | th->fin) |
th | 2451 | net/tcp/tcp.c | tcp_send_ack (sk->send_seq, sk->acked_seq,sk,th, saddr); |
th | 2466 | net/tcp/tcp.c | tcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, saddr); |
th | 2484 | net/tcp/tcp.c | tcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, saddr); |
th | 2494 | net/tcp/tcp.c | tcp_urg (volatile struct sock *sk, struct tcp_header *th, unsigned long saddr) |
th | 2504 | net/tcp/tcp.c | th->urg = 0; |
th | 2505 | net/tcp/tcp.c | th->psh = 1; |
th | 2531 | net/tcp/tcp.c | tcp_fin (volatile struct sock *sk, struct tcp_header *th, |
th | 2535 | net/tcp/tcp.c | sk, th, saddr, dev)); |
th | 2547 | net/tcp/tcp.c | sk->fin_seq = th->seq+1; /* Contains the one that needs to be acked */ |
th | 2549 | net/tcp/tcp.c | if (th->rst) sk->shutdown = SHUTDOWN_MASK; |
th | 2557 | net/tcp/tcp.c | sk->fin_seq = th->seq+1; /* Contains the one that needs to be acked */ |
th | 2602 | net/tcp/tcp.c | memcpy (t1, th, sizeof (*t1)); |
th | 2605 | net/tcp/tcp.c | t1->dest = th->source; |
th | 2606 | net/tcp/tcp.c | t1->source = th->dest; |
th | 2795 | net/tcp/tcp.c | tcp_sequence (volatile struct sock *sk, struct tcp_header *th, short len, |
th | 2804 | net/tcp/tcp.c | sk, th, len, opt, saddr)); |
th | 2806 | net/tcp/tcp.c | if (between(th->seq, sk->acked_seq, sk->acked_seq + sk->window)|| |
th | 2807 | net/tcp/tcp.c | between(th->seq + len-(th->doff * 4), sk->acked_seq + 1, |
th | 2809 | net/tcp/tcp.c | (before (th->seq, sk->acked_seq) && |
th | 2810 | net/tcp/tcp.c | after (th->seq + len - (th->doff * 4), sk->acked_seq + sk->window))) |
th | 2819 | net/tcp/tcp.c | if (after (th->seq, sk->acked_seq + sk->window)) |
th | 2821 | net/tcp/tcp.c | tcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, saddr); |
th | 2826 | net/tcp/tcp.c | if (th->ack && len == (th->doff * 4) && after (th->seq, sk->acked_seq - 32767) && |
th | 2827 | net/tcp/tcp.c | !th->fin && !th->syn) return (1); |
th | 2829 | net/tcp/tcp.c | if (!th->rst) |
th | 2832 | net/tcp/tcp.c | tcp_send_ack (net32(th->ack_seq), sk->acked_seq, sk, th, saddr); |
th | 2841 | net/tcp/tcp.c | tcp_options (volatile struct sock *sk, struct tcp_header *th) |
th | 2844 | net/tcp/tcp.c | ptr = (unsigned char *)(th + 1); |
th | 2858 | net/tcp/tcp.c | struct tcp_header *th; |
th | 2884 | net/tcp/tcp.c | th = skb->h.th; |
th | 2887 | net/tcp/tcp.c | sk=get_sock(&tcp_prot, net16(th->dest), saddr, th->source, daddr); |
th | 2898 | net/tcp/tcp.c | if (th->check && tcp_check (th, len, saddr, daddr )) |
th | 2911 | net/tcp/tcp.c | if (!th->rst) |
th | 2912 | net/tcp/tcp.c | tcp_reset (daddr, saddr, th, &tcp_prot, opt,dev); |
th | 2927 | net/tcp/tcp.c | th->seq = net32(th->seq); |
th | 2989 | net/tcp/tcp.c | if (th->rst) |
th | 3009 | net/tcp/tcp.c | if (!tcp_sequence (sk, th, len, opt, saddr)) |
th | 3016 | net/tcp/tcp.c | if (th->rst) |
th | 3028 | net/tcp/tcp.c | if (!th->fin) |
th | 3042 | net/tcp/tcp.c | if (opt && (opt->security != 0 || opt->compartment != 0 || th->syn)) |
th | 3047 | net/tcp/tcp.c | tcp_reset (daddr, saddr, th, sk->prot, opt,dev); |
th | 3057 | net/tcp/tcp.c | if (th->ack) |
th | 3059 | net/tcp/tcp.c | if(!tcp_ack (sk, th, saddr)) |
th | 3066 | net/tcp/tcp.c | if (th->urg) |
th | 3068 | net/tcp/tcp.c | if (tcp_urg (sk, th, saddr)) |
th | 3076 | net/tcp/tcp.c | if (th->fin && tcp_fin (sk, th, saddr, dev)) |
th | 3103 | net/tcp/tcp.c | if (!th->rst) |
th | 3105 | net/tcp/tcp.c | if (!th->ack) |
th | 3106 | net/tcp/tcp.c | th->ack_seq=0; |
th | 3107 | net/tcp/tcp.c | tcp_reset (daddr, saddr, th, sk->prot, opt,dev); |
th | 3114 | net/tcp/tcp.c | if (th->rst) |
th | 3120 | net/tcp/tcp.c | if (th->ack) |
th | 3122 | net/tcp/tcp.c | tcp_reset (daddr, saddr, th, sk->prot, opt,dev ); |
th | 3128 | net/tcp/tcp.c | if (th->syn) |
th | 3153 | net/tcp/tcp.c | if (!tcp_sequence (sk, th, len, opt, saddr)) |
th | 3161 | net/tcp/tcp.c | if (th->rst) |
th | 3180 | net/tcp/tcp.c | tcp_reset (daddr, saddr, th, sk->prot, opt, dev); |
th | 3190 | net/tcp/tcp.c | if (!th->ack) |
th | 3192 | net/tcp/tcp.c | if (th->syn) |
th | 3205 | net/tcp/tcp.c | if (!tcp_ack(sk, th, saddr)) |
th | 3207 | net/tcp/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev); |
th | 3216 | net/tcp/tcp.c | if (!th->syn) |
th | 3224 | net/tcp/tcp.c | sk->acked_seq = th->seq+1; |
th | 3225 | net/tcp/tcp.c | sk->fin_seq = th->seq; |
th | 3226 | net/tcp/tcp.c | tcp_send_ack (sk->send_seq, th->seq+1, sk, |
th | 3227 | net/tcp/tcp.c | th, sk->daddr); |
th | 3230 | net/tcp/tcp.c | if (!tcp_ack(sk, th, saddr)) |
th | 3232 | net/tcp/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev); |
th | 3243 | net/tcp/tcp.c | tcp_options(sk, th); |
th | 3244 | net/tcp/tcp.c | sk->dummy_th.dest = th->source; |
th | 3253 | net/tcp/tcp.c | if (th->urg) |
th | 3254 | net/tcp/tcp.c | if (tcp_urg (sk, th, saddr)) |
th | 3263 | net/tcp/tcp.c | if (th->fin) |
th | 3264 | net/tcp/tcp.c | tcp_fin(sk, th, saddr, dev); |
th | 3270 | net/tcp/tcp.c | if (th->urg) |
th | 3272 | net/tcp/tcp.c | if (tcp_urg (sk, th, saddr)) |
th | 3287 | net/tcp/tcp.c | if (!th->fin) |
th | 3292 | net/tcp/tcp.c | tcp_fin (sk, th, saddr, dev); |
th | 147 | net/tcp/udp.c | struct udp_header *th; |
th | 152 | net/tcp/udp.c | th = (struct udp_header *)header; |
th | 153 | net/tcp/udp.c | sk = get_sock (&udp_prot, net16(th->dest), saddr, th->source, daddr); |