taglinefilesource code
th226drivers/net/slhc.cstruct tcphdr *th, *oth;
th244drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
th245drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
th250drivers/net/slhc.cif(th->syn || th->fin || th->rst ||
th251drivers/net/slhc.c! (th->ack)){
th252drivers/net/slhc.cDPRINT(("comp: noncomp 2 %x %x %d %d %d %d\n", ip, th, 
th253drivers/net/slhc.cth->syn, th->fin, th->rst, th->ack));
th275drivers/net/slhc.c&& th->source == cs->cs_tcp.source
th276drivers/net/slhc.c&& th->dest == cs->cs_tcp.dest)
th335drivers/net/slhc.c|| th->doff != cs->cs_tcp.doff
th337drivers/net/slhc.c|| (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4 != 0))){
th348drivers/net/slhc.cif(th->urg){
th349drivers/net/slhc.cdeltaS = ntohs(th->urg_ptr);
th352drivers/net/slhc.c} else if(th->urg_ptr != oth->urg_ptr){
th360drivers/net/slhc.cif((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
th364drivers/net/slhc.cif((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
th370drivers/net/slhc.cif((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
th419drivers/net/slhc.cif(th->psh)
th424drivers/net/slhc.cdeltaA = ntohs(th->check);
th426drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th460drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th463drivers/net/slhc.cif (th->doff > 5)
th464drivers/net/slhc.cmemcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);
th83drivers/net/slip.cstruct tcphdr *th;
th89drivers/net/slip.cth = (struct tcphdr *) (ptr + ip->ihl * 4);
th92drivers/net/slip.cntohl(th->seq), ntohl(th->ack_seq), ntohs(ip->tot_len));
th113net/inet/tcp.cvoid print_th(struct tcphdr *th)
th121net/inet/tcp.cptr =(unsigned char *)(th + 1);
th123net/inet/tcp.cntohs(th->source), ntohs(th->dest),
th124net/inet/tcp.cntohl(th->seq), ntohl(th->ack_seq));
th126net/inet/tcp.cth->fin, th->syn, th->rst, th->psh, th->ack,
th127net/inet/tcp.cth->urg, th->res1, th->res2);
th129net/inet/tcp.cntohs(th->window), ntohs(th->check), ntohs(th->urg_ptr));
th130net/inet/tcp.cprintk("    doff = %d\n", th->doff);
th210net/inet/tcp.cstruct tcphdr *th;
th219net/inet/tcp.cth =(struct tcphdr *)header;
th220net/inet/tcp.csk = get_sock(&tcp_prot, th->source/*dest*/, daddr, th->dest/*source*/, saddr);
th221net/inet/tcp.cprint_th(th);
th301net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th303net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th304net/inet/tcp.cif (skb->h.th->syn) 
th306net/inet/tcp.cif (skb->h.th->urg) 
th308net/inet/tcp.csum -= ntohs(skb->h.th->urg_ptr);  /* Dont count urg data */
th313net/inet/tcp.cif (skb->h.th->syn) 
th473net/inet/tcp.cif (sk->copied_seq+1 == skb->h.th->seq && skb->h.th->urg) 
th508net/inet/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th515net/inet/tcp.cprint_th(th);
th531net/inet/tcp.c: "=b"(sum) , "=S"(th)
th532net/inet/tcp.c: "0"(sum), "c"(len/4) ,"1"(th)
th551net/inet/tcp.c: "=b"(sum), "=S"(th)
th552net/inet/tcp.c: "0"(sum) ,"1"(th)
th564net/inet/tcp.c: "0"(sum) ,"S"(th)
th573net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th576net/inet/tcp.cth->check = 0;
th577net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th600net/inet/tcp.ctcp_send_check(skb->h.th, sk->saddr, sk->daddr,
th601net/inet/tcp.cskb->len-(unsigned long)skb->h.th +
th646net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th693net/inet/tcp.cmemcpy(t1, th, sizeof(*t1)); /* this should probably be removed */
th696net/inet/tcp.ct1->dest = th->source;
th697net/inet/tcp.ct1->source = th->dest;
th732net/inet/tcp.cstatic int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th736net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th737net/inet/tcp.cth->seq = htonl(sk->send_seq);
th738net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th739net/inet/tcp.cth->doff = sizeof(*th)/4;
th740net/inet/tcp.cth->ack = 1;
th741net/inet/tcp.cth->fin = 0;
th745net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th747net/inet/tcp.cth->window = htons(sk->window);
th749net/inet/tcp.creturn(sizeof(*th));
th906net/inet/tcp.cif (skb->len -(unsigned long)skb->h.th + (unsigned long)(skb+1) >= sk->mss ||(flags & MSG_OOB) || copy==0) 
th1025net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th1411net/inet/tcp.cif (skb->h.th->urg && !skb->urg_used) 
th1413net/inet/tcp.cif (skb->h.th->urg_ptr == 0) 
th1415net/inet/tcp.cskb->h.th->urg_ptr = ntohs(skb->len);
th1417net/inet/tcp.camt = min(ntohs(skb->h.th->urg_ptr),len);
th1421net/inet/tcp.cmemcpy_tofs(to,(unsigned char *)(skb->h.th) +
th1422net/inet/tcp.cskb->h.th->doff*4, amt);
th1491net/inet/tcp.cwhile(skb == NULL || before(sk->copied_seq+1, skb->h.th->seq) || skb->used) 
th1609net/inet/tcp.cif (skb_peek(&sk->rqueue) == NULL || before(sk->copied_seq+1, sk->rqueue->h.th->seq)) 
th1649net/inet/tcp.coffset = sk->copied_seq+1 - skb->h.th->seq;
th1651net/inet/tcp.cif (skb->h.th->syn) 
th1660net/inet/tcp.cif (skb->h.th->urg) 
th1664net/inet/tcp.csk->copied_seq += ntohs(skb->h.th->urg_ptr);
th1665net/inet/tcp.coffset += ntohs(skb->h.th->urg_ptr);
th1696net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th1697net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th1715net/inet/tcp.cif (!(flags & MSG_PEEK) && (!skb->h.th->urg || skb->urg_used) && (used + offset >= skb->len)) 
th1723net/inet/tcp.cif ((skb->h.th->psh && type) || skb->h.th->urg) 
th1776net/inet/tcp.cstruct tcphdr *t1, *th;
th1800net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th1834net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1917net/inet/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th1952net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1955net/inet/tcp.ct1->dest = th->source;
th1956net/inet/tcp.ct1->source = th->dest;
th1964net/inet/tcp.cif(th->ack)
th1967net/inet/tcp.ct1->seq=th->ack_seq;
th1973net/inet/tcp.cif(!th->syn)
th1974net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th1976net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th1994net/inet/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th1997net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2000net/inet/tcp.cptr = (unsigned char *)(th + 1);
th2058net/inet/tcp.cstruct tcphdr *th;
th2065net/inet/tcp.cth = skb->h.th;
th2075net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev);
th2131net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th2132net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th2133net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th2143net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th2144net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th2160net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th2161net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq;
th2167net/inet/tcp.ctcp_options(newsk,skb->h.th);
th2210net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th2214net/inet/tcp.ct1->dest = skb->h.th->source;
th2226net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th2258net/inet/tcp.cstruct tcphdr *t1, *th;
th2281net/inet/tcp.cif(skb->len > 0 && after(skb->h.th->seq + skb->len + 1 , sk->copied_seq))
th2334net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th2372net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2519net/inet/tcp.cstatic int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th2527net/inet/tcp.cack = ntohl(th->ack_seq);
th2530net/inet/tcp.cack, ntohs(th->window), sk->rcv_ack_seq, sk->window_seq));
th2545net/inet/tcp.cif (len != th->doff*4) 
th2549net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th2568net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2628net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th2800net/inet/tcp.cth, sk->daddr);
th2831net/inet/tcp.cstruct tcphdr *th;
th2834net/inet/tcp.cth = skb->h.th;
th2835net/inet/tcp.cprint_th(th);
th2837net/inet/tcp.cskb->len = len -(th->doff*4);
th2842net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) 
th2845net/inet/tcp.cif (!th->ack) 
th2846net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq,sk, th, saddr);
th2853net/inet/tcp.csk->acked_seq = th->seq + skb->len + th->syn + th->fin;
th2854net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th, sk->prot, NULL, skb->dev);
th2891net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th2892net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th2896net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th2905net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th2919net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th2921net/inet/tcp.cif (th->syn) 
th2922net/inet/tcp.cth->ack_seq++;
th2924net/inet/tcp.cif (th->fin) 
th2925net/inet/tcp.cth->ack_seq++;
th2935net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) 
th2937net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) 
th2939net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq))
th2940net/inet/tcp.csk->acked_seq = th->ack_seq;
th2944net/inet/tcp.cif (skb->h.th->fin) 
th2955net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) 
th2957net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th2958net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th2965net/inet/tcp.cif (skb2->h.th->fin) 
th2986net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) 
th3029net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th3036net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th3066net/inet/tcp.cstatic int tcp_urg(struct sock *sk, struct tcphdr *th, unsigned long saddr)
th3076net/inet/tcp.cth->urg = 0;
th3077net/inet/tcp.cth->psh = 1;
th3105net/inet/tcp.cstatic int tcp_fin(struct sock *sk, struct tcphdr *th, 
th3109net/inet/tcp.csk, th, saddr, dev));
th3118net/inet/tcp.csk->fin_seq = th->seq+1;
th3120net/inet/tcp.cif (th->rst) 
th3137net/inet/tcp.csk->fin_seq = th->seq+1;
th3347net/inet/tcp.cstatic int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th3357net/inet/tcp.csk, th, len, opt, saddr));
th3360net/inet/tcp.cif (between(th->seq, sk->acked_seq, sk->acked_seq + sk->window)||
th3361net/inet/tcp.cbetween(th->seq + len-(th->doff*4), sk->acked_seq + 1, sk->acked_seq + sk->window) ||
th3362net/inet/tcp.c(before(th->seq, sk->acked_seq) &&
th3363net/inet/tcp.cafter(th->seq + len -(th->doff*4), sk->acked_seq + sk->window))) 
th3378net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev);
th3387net/inet/tcp.cif (after(th->seq, sk->acked_seq + sk->window)) 
th3389net/inet/tcp.cif(!th->rst)
th3390net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th3398net/inet/tcp.cif (th->ack && len == (th->doff * 4) && after(th->seq, sk->acked_seq - 32767) && !th->fin && !th->syn) 
th3401net/inet/tcp.cif (!th->rst) 
th3404net/inet/tcp.ctcp_send_ack(sk->send_seq, sk->acked_seq, sk, th, saddr);
th3422net/inet/tcp.cstruct tcphdr *th;
th3437net/inet/tcp.cth = skb->h.th;
th3440net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th3457net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) 
th3477net/inet/tcp.cif (!th->rst) 
th3479net/inet/tcp.cth->seq = ntohl(th->seq);
th3481net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev);
th3497net/inet/tcp.cth->seq = ntohl(th->seq);
th3563net/inet/tcp.cif (th->rst) 
th3583net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) 
th3587net/inet/tcp.cif(!th->rst)
th3589net/inet/tcp.csk, th, saddr);
th3595net/inet/tcp.cif (th->rst) 
th3622net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev);
th3631net/inet/tcp.cif (th->syn)
th3636net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt,dev);
th3646net/inet/tcp.cif (th->ack) 
th3648net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) 
th3656net/inet/tcp.cif (th->urg &&(sk->state==TCP_ESTABLISHED||sk->state==TCP_FIN_WAIT1||sk->state==TCP_FIN_WAIT2)) 
th3658net/inet/tcp.cif (tcp_urg(sk, th, saddr)) 
th3676net/inet/tcp.cif (th->fin && tcp_fin(sk, th, saddr, dev)) 
th3695net/inet/tcp.cif (!th->rst) 
th3697net/inet/tcp.cif (!th->ack)
th3698net/inet/tcp.cth->ack_seq = 0;
th3699net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th3706net/inet/tcp.cif (th->rst) 
th3712net/inet/tcp.cif (th->ack) 
th3714net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th3720net/inet/tcp.cif (th->syn) 
th3724net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt,dev);
th3745net/inet/tcp.cif (!tcp_sequence(sk, th, len, opt, saddr,dev)) 
th3753net/inet/tcp.cif (th->rst) 
th3772net/inet/tcp.ctcp_reset(daddr, saddr,  th, sk->prot, opt, dev);
th3781net/inet/tcp.cif (!th->ack) 
th3783net/inet/tcp.cif (th->syn) 
th3797net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) 
th3799net/inet/tcp.ctcp_reset(daddr, saddr, th,
th3810net/inet/tcp.cif (!th->syn) 
th3818net/inet/tcp.csk->acked_seq = th->seq+1;
th3819net/inet/tcp.csk->fin_seq = th->seq;
th3820net/inet/tcp.ctcp_send_ack(sk->send_seq, th->seq+1, sk, th, sk->daddr);
th3823net/inet/tcp.cif (!tcp_ack(sk, th, saddr, len)) 
th3825net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev);
th3837net/inet/tcp.ctcp_options(sk, th);
th3838net/inet/tcp.csk->dummy_th.dest = th->source;
th3850net/inet/tcp.cif (th->urg) 
th3852net/inet/tcp.cif (tcp_urg(sk, th, saddr)) 
th3862net/inet/tcp.cif (th->fin) 
th3863net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
th3868net/inet/tcp.cif (th->urg) 
th3870net/inet/tcp.cif (tcp_urg(sk, th, saddr)) 
th3885net/inet/tcp.cif (!th->fin) 
th3890net/inet/tcp.ctcp_fin(sk, th, saddr, dev);
th100net/inet/udp.cstruct udphdr *th;
th106net/inet/udp.cth = (struct udphdr *)header;  
th109net/inet/udp.csport=%d,dport=%d", err, header, daddr, saddr, protocol, (int)th->source,(int)th->dest));
th111net/inet/udp.csk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr);
th55net/socket/skbuff.hstruct tcphdr  *th;