taglinefilesource code
th175net/tcp/sock.hstruct tcp_header *th;
th125net/tcp/tcp.cprint_th (struct tcp_header *th)
th128net/tcp/tcp.cptr = (unsigned char *)(th + 1);
th131net/tcp/tcp.cnet16(th->source), net16(th->dest), net32(th->seq),
th132net/tcp/tcp.cnet32(th->ack_seq)));
th134net/tcp/tcp.c,th->fin, th->syn, th->rst, th->psh, th->ack, th->urg,
th135net/tcp/tcp.cth->res1, th->res2));
th137net/tcp/tcp.cnet16(th->window), net16(th->check), net16(th->urg_ptr)));
th138net/tcp/tcp.cPRINTK (("  doff = %d\n",th->doff));
th213net/tcp/tcp.cstruct tcp_header *th;
th219net/tcp/tcp.cth = (struct tcp_header *)header;
th220net/tcp/tcp.csk = get_sock (&tcp_prot, net16(th->dest), saddr, th->source, daddr);
th221net/tcp/tcp.cprint_th (th);
th279net/tcp/tcp.cif (before (counted, skb->h.th->seq)) break;
th280net/tcp/tcp.csum = skb->len - ( counted - skb->h.th->seq);
th281net/tcp/tcp.cif (skb->h.th->syn) sum ++;
th282net/tcp/tcp.cif (skb->h.th->urg)
th284net/tcp/tcp.csum -= net16(skb->h.th->urg_ptr);
th289net/tcp/tcp.cif (skb->h.th->syn) amount --;
th292net/tcp/tcp.cif (amount && skb->h.th->psh) break;
th418net/tcp/tcp.cif (sk->copied_seq+1 == skb->h.th->seq && skb->h.th->urg)
th444net/tcp/tcp.ctcp_check (struct tcp_header *th, int len, unsigned long saddr,
th450net/tcp/tcp.cprint_th (th);
th467net/tcp/tcp.c: "=b" (sum) , "=S" (th)
th468net/tcp/tcp.c: "0" (sum), "c" (len/4) ,"1" (th)
th488net/tcp/tcp.c: "=b" (sum), "=S" (th)
th489net/tcp/tcp.c: "0" (sum) ,"1" (th)
th501net/tcp/tcp.c: "0" (sum) ,"S" (th)
th512net/tcp/tcp.ctcp_send_check (struct tcp_header *th, unsigned long saddr, 
th516net/tcp/tcp.cth->check = 0;
th518net/tcp/tcp.cth->check = tcp_check (th, len, saddr, daddr);
th531net/tcp/tcp.ctcp_send_check (skb->h.th, sk->saddr, sk->daddr,
th532net/tcp/tcp.cskb->len-(unsigned long)skb->h.th +
th568net/tcp/tcp.cstruct tcp_header *th, unsigned long daddr)
th609net/tcp/tcp.cmemcpy (t1, th, sizeof (*t1)); /* this should probably be removed. */
th612net/tcp/tcp.ct1->dest = th->source;
th613net/tcp/tcp.ct1->source = th->dest;
th646net/tcp/tcp.ctcp_build_header(struct tcp_header *th, volatile struct sock *sk, int push)
th650net/tcp/tcp.cmemcpy (th,(void *) &(sk->dummy_th), sizeof (*th));
th651net/tcp/tcp.cth->seq = net32(sk->send_seq);
th652net/tcp/tcp.cth->psh = (push == 0) ? 1 : 0;
th653net/tcp/tcp.cth->doff = sizeof (*th)/4;
th654net/tcp/tcp.cth->ack = 1;
th655net/tcp/tcp.cth->fin = 0;
th659net/tcp/tcp.cth->ack_seq = net32(sk->acked_seq);
th661net/tcp/tcp.cth->window = net16(sk->window);
th663net/tcp/tcp.creturn (sizeof (*th));
th794net/tcp/tcp.cif (skb->len - (unsigned long)skb->h.th +
th895net/tcp/tcp.cskb->h.th =(struct tcp_header *) buff;
th1180net/tcp/tcp.cif (skb->h.th->urg && !skb->urg_used)
th1182net/tcp/tcp.cif (skb->h.th->urg_ptr == 0)
th1184net/tcp/tcp.cskb->h.th->urg_ptr = net16(skb->len);
th1186net/tcp/tcp.camt = min(net16(skb->h.th->urg_ptr),len);
th1188net/tcp/tcp.cmemcpy_tofs (to, (unsigned char *)(skb->h.th) +
th1189net/tcp/tcp.cskb->h.th->doff*4, amt);
th1243net/tcp/tcp.cwhile ( skb == NULL || before (sk->copied_seq+1, skb->h.th->seq) ||
th1321net/tcp/tcp.cbefore (sk->copied_seq+1, sk->rqueue->next->h.th->seq) )
th1351net/tcp/tcp.coffset = sk->copied_seq+1 - skb->h.th->seq;
th1353net/tcp/tcp.cif (skb->h.th->syn) offset --;
th1358net/tcp/tcp.cif (skb->h.th->urg)
th1362net/tcp/tcp.csk->copied_seq += net16(skb->h.th->urg_ptr);
th1363net/tcp/tcp.coffset += net16(skb->h.th->urg_ptr);
th1381net/tcp/tcp.cmemcpy_tofs(to, ((unsigned char *)skb->h.th) +
th1382net/tcp/tcp.cskb->h.th->doff*4 +
th1395net/tcp/tcp.c(!skb->h.th->urg || skb->urg_used) &&
th1401net/tcp/tcp.cif ( skb->h.th->psh || skb->h.th->urg)
th1429net/tcp/tcp.cstruct tcp_header *t1,*th;
th1451net/tcp/tcp.cth=(struct tcp_header *)&sk->dummy_th;
th1485net/tcp/tcp.cmemcpy (t1, th, sizeof (*t1));
th1552net/tcp/tcp.ctcp_reset(unsigned long saddr, unsigned long daddr, struct tcp_header *th,
th1582net/tcp/tcp.cmemcpy (t1, th, sizeof (*t1));
th1584net/tcp/tcp.ct1->dest = th->source;
th1585net/tcp/tcp.ct1->source = th->dest;
th1586net/tcp/tcp.ct1->seq = th->ack_seq; /* add one so it will be in
th1615net/tcp/tcp.cstruct tcp_header *th;
th1617net/tcp/tcp.cth = skb->h.th;
th1631net/tcp/tcp.ctcp_reset (daddr, saddr, th, sk->prot, opt, dev);
th1682net/tcp/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th1683net/tcp/tcp.cnewsk->fin_seq = skb->h.th->seq;
th1684net/tcp/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1694net/tcp/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th1695net/tcp/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th1710net/tcp/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th1711net/tcp/tcp.cnewsk->copied_seq = skb->h.th->seq;
th1713net/tcp/tcp.cif (skb->h.th->doff == 5)
th1719net/tcp/tcp.cptr = (unsigned char *)(skb->h.th + 1);
th1768net/tcp/tcp.cmemcpy (t1, skb->h.th, sizeof (*t1));
th1771net/tcp/tcp.ct1->dest = skb->h.th->source;
th1783net/tcp/tcp.ct1->ack_seq = net32(skb->h.th->seq+1);
th1827net/tcp/tcp.cstruct tcp_header *t1,*th;
th1850net/tcp/tcp.cafter (skb->h.th->seq + skb->len + 1, sk->copied_seq))
th1902net/tcp/tcp.cth=(struct tcp_header *)&sk->dummy_th;
th1937net/tcp/tcp.cmemcpy (t1, th, sizeof (*t1));
th2022net/tcp/tcp.ctcp_ack (volatile struct sock *sk, struct tcp_header *th, unsigned long saddr)
th2025net/tcp/tcp.cack = net32(th->ack_seq);
th2029net/tcp/tcp.cack, net16(th->window), sk->rcv_ack_seq, sk->window_seq));
th2044net/tcp/tcp.cif (after (sk->window_seq, ack+net16(th->window)))
th2056net/tcp/tcp.csk->window_seq = ack + net16(th->window);
th2126net/tcp/tcp.csk->window_seq = ack + net16(th->window);
th2288net/tcp/tcp.ctcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, sk->daddr);
th2309net/tcp/tcp.cstruct tcp_header *th;
th2311net/tcp/tcp.cth = skb->h.th;
th2312net/tcp/tcp.cprint_th (th);
th2313net/tcp/tcp.cskb->len = len - (th->doff*4);
th2319net/tcp/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh)
th2322net/tcp/tcp.cif (!th->ack)
th2323net/tcp/tcp.ctcp_send_ack (sk->send_seq, sk->acked_seq,sk, th, saddr);
th2330net/tcp/tcp.csk->acked_seq = th->seq + skb->len + th->syn + th->fin;
th2331net/tcp/tcp.ctcp_reset (sk->saddr, sk->daddr, skb->h.th,
th2365net/tcp/tcp.cPRINTK (("skb1->h.th->seq = %d\n", skb1->h.th->seq));
th2366net/tcp/tcp.cif (after ( th->seq+1, skb1->h.th->seq))
th2391net/tcp/tcp.cth->ack_seq = th->seq + skb->len;
th2392net/tcp/tcp.cif (th->syn) th->ack_seq ++;
th2393net/tcp/tcp.cif (th->fin) th->ack_seq ++;
th2402net/tcp/tcp.cif (skb1 == NULL || skb1->acked || before (th->seq, sk->acked_seq+1))
th2404net/tcp/tcp.cif (before (th->seq, sk->acked_seq+1))
th2406net/tcp/tcp.cif (after (th->ack_seq, sk->acked_seq))
th2407net/tcp/tcp.csk->acked_seq = th->ack_seq;
th2411net/tcp/tcp.cif (skb->h.th->fin)  
th2421net/tcp/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1))
th2423net/tcp/tcp.cif (after (skb2->h.th->ack_seq, sk->acked_seq))
th2424net/tcp/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th2428net/tcp/tcp.cif (skb2->h.th->fin)  
th2449net/tcp/tcp.cth->fin)
th2451net/tcp/tcp.ctcp_send_ack (sk->send_seq, sk->acked_seq,sk,th, saddr);
th2466net/tcp/tcp.ctcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, saddr);
th2484net/tcp/tcp.ctcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, saddr);
th2494net/tcp/tcp.ctcp_urg (volatile struct sock *sk, struct tcp_header *th, unsigned long saddr)
th2504net/tcp/tcp.cth->urg = 0;
th2505net/tcp/tcp.cth->psh = 1;
th2531net/tcp/tcp.ctcp_fin (volatile struct sock *sk, struct tcp_header *th, 
th2535net/tcp/tcp.csk, th, saddr, dev));
th2547net/tcp/tcp.csk->fin_seq = th->seq+1; /* Contains the one that needs to be acked */
th2549net/tcp/tcp.cif (th->rst) sk->shutdown = SHUTDOWN_MASK;
th2557net/tcp/tcp.csk->fin_seq = th->seq+1; /* Contains the one that needs to be acked */
th2602net/tcp/tcp.cmemcpy (t1, th, sizeof (*t1));
th2605net/tcp/tcp.ct1->dest = th->source;
th2606net/tcp/tcp.ct1->source = th->dest;
th2795net/tcp/tcp.ctcp_sequence (volatile struct sock *sk, struct tcp_header *th, short len,
th2804net/tcp/tcp.csk, th, len, opt, saddr));
th2806net/tcp/tcp.cif (between(th->seq, sk->acked_seq, sk->acked_seq + sk->window)||
th2807net/tcp/tcp.cbetween(th->seq + len-(th->doff * 4), sk->acked_seq + 1, 
th2809net/tcp/tcp.c(before (th->seq, sk->acked_seq) &&
th2810net/tcp/tcp.cafter (th->seq + len - (th->doff * 4), sk->acked_seq + sk->window)))
th2819net/tcp/tcp.cif (after (th->seq, sk->acked_seq + sk->window))
th2821net/tcp/tcp.ctcp_send_ack (sk->send_seq, sk->acked_seq, sk, th, saddr);
th2826net/tcp/tcp.cif (th->ack && len == (th->doff * 4) && after (th->seq, sk->acked_seq - 32767) &&
th2827net/tcp/tcp.c!th->fin && !th->syn) return (1);
th2829net/tcp/tcp.cif (!th->rst)
th2832net/tcp/tcp.ctcp_send_ack (net32(th->ack_seq), sk->acked_seq, sk, th, saddr);
th2841net/tcp/tcp.ctcp_options (volatile struct sock *sk, struct tcp_header *th)
th2844net/tcp/tcp.cptr = (unsigned char *)(th + 1);
th2858net/tcp/tcp.cstruct tcp_header *th;
th2884net/tcp/tcp.cth = skb->h.th;
th2887net/tcp/tcp.csk=get_sock(&tcp_prot, net16(th->dest), saddr, th->source, daddr);
th2898net/tcp/tcp.cif (th->check && tcp_check (th, len, saddr, daddr ))
th2911net/tcp/tcp.cif (!th->rst)
th2912net/tcp/tcp.ctcp_reset (daddr, saddr, th, &tcp_prot, opt,dev);
th2927net/tcp/tcp.cth->seq = net32(th->seq);
th2989net/tcp/tcp.cif (th->rst)
th3009net/tcp/tcp.cif (!tcp_sequence (sk, th, len, opt, saddr))
th3016net/tcp/tcp.cif (th->rst)
th3028net/tcp/tcp.cif (!th->fin)
th3042net/tcp/tcp.cif (opt && (opt->security != 0 || opt->compartment != 0 || th->syn))
th3047net/tcp/tcp.ctcp_reset (daddr, saddr,  th, sk->prot, opt,dev);
th3057net/tcp/tcp.cif (th->ack)
th3059net/tcp/tcp.cif(!tcp_ack (sk, th, saddr))
th3066net/tcp/tcp.cif (th->urg)
th3068net/tcp/tcp.cif (tcp_urg (sk, th, saddr))
th3076net/tcp/tcp.cif (th->fin && tcp_fin (sk, th, saddr, dev))
th3103net/tcp/tcp.cif (!th->rst)
th3105net/tcp/tcp.cif (!th->ack)
th3106net/tcp/tcp.cth->ack_seq=0;
th3107net/tcp/tcp.ctcp_reset (daddr, saddr, th, sk->prot, opt,dev);
th3114net/tcp/tcp.cif (th->rst)
th3120net/tcp/tcp.cif (th->ack)
th3122net/tcp/tcp.ctcp_reset (daddr, saddr, th, sk->prot, opt,dev );
th3128net/tcp/tcp.cif (th->syn)
th3153net/tcp/tcp.cif (!tcp_sequence (sk, th, len, opt, saddr)) 
th3161net/tcp/tcp.cif (th->rst)
th3180net/tcp/tcp.ctcp_reset (daddr, saddr,  th, sk->prot, opt, dev);
th3190net/tcp/tcp.cif (!th->ack) 
th3192net/tcp/tcp.cif (th->syn)
th3205net/tcp/tcp.cif (!tcp_ack(sk, th, saddr))
th3207net/tcp/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th3216net/tcp/tcp.cif (!th->syn) 
th3224net/tcp/tcp.csk->acked_seq = th->seq+1;
th3225net/tcp/tcp.csk->fin_seq = th->seq;
th3226net/tcp/tcp.ctcp_send_ack (sk->send_seq, th->seq+1, sk, 
th3227net/tcp/tcp.cth, sk->daddr);
th3230net/tcp/tcp.cif (!tcp_ack(sk, th, saddr))
th3232net/tcp/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev);
th3243net/tcp/tcp.ctcp_options(sk, th);
th3244net/tcp/tcp.csk->dummy_th.dest = th->source;
th3253net/tcp/tcp.cif (th->urg)
th3254net/tcp/tcp.cif (tcp_urg (sk, th, saddr))
th3263net/tcp/tcp.cif (th->fin)
th3264net/tcp/tcp.ctcp_fin(sk, th, saddr, dev);
th3270net/tcp/tcp.cif (th->urg)
th3272net/tcp/tcp.cif (tcp_urg (sk, th, saddr))
th3287net/tcp/tcp.cif (!th->fin)
th3292net/tcp/tcp.ctcp_fin (sk, th, saddr, dev);
th147net/tcp/udp.cstruct udp_header *th;
th152net/tcp/udp.cth = (struct udp_header *)header;
th153net/tcp/udp.csk = get_sock (&udp_prot, net16(th->dest), saddr, th->source, daddr);