taglinefilesource code
th251drivers/net/slhc.cstruct tcphdr *th, *oth;
th267drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
th268drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
th273drivers/net/slhc.cif(th->syn || th->fin || th->rst ||
th274drivers/net/slhc.c! (th->ack)){
th296drivers/net/slhc.c&& th->source == cs->cs_tcp.source
th297drivers/net/slhc.c&& th->dest == cs->cs_tcp.dest)
th355drivers/net/slhc.c|| th->doff != cs->cs_tcp.doff
th357drivers/net/slhc.c|| (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4 != 0))){
th367drivers/net/slhc.cif(th->urg){
th368drivers/net/slhc.cdeltaS = ntohs(th->urg_ptr);
th371drivers/net/slhc.c} else if(th->urg_ptr != oth->urg_ptr){
th378drivers/net/slhc.cif((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
th382drivers/net/slhc.cif((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
th388drivers/net/slhc.cif((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
th435drivers/net/slhc.cif(th->psh)
th440drivers/net/slhc.cdeltaA = ntohs(th->check);
th442drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th475drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th478drivers/net/slhc.cif (th->doff > 5)
th479drivers/net/slhc.cmemcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);
th52include/linux/skbuff.hstruct tcphdr  *th;
th416net/inet/tcp.cstruct tcphdr *th;
th434net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
th435net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th459net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th460net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th461net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th756net/inet/tcp.cstruct tcphdr *th;
th763net/inet/tcp.cth =(struct tcphdr *)header;
th764net/inet/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
th845net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th847net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th848net/inet/tcp.cif (skb->h.th->syn)
th853net/inet/tcp.cif (skb->h.th->syn) 
th873net/inet/tcp.cif (skb->h.th->urg)
th875net/inet/tcp.cif (amount && skb->h.th->psh) break;
th1021net/inet/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th1093net/inet/tcp.c: "0"(sum), "c"(len), "S"(th)
th1103net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th1106net/inet/tcp.cth->check = 0;
th1107net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th1119net/inet/tcp.cstruct tcphdr * th = skb->h.th;
th1125net/inet/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th1134net/inet/tcp.cskb, skb->data, th, skb->len);
th1147net/inet/tcp.cif(!th->syn && !th->fin) 
th1160net/inet/tcp.cskb->h.seq = ntohl(th->seq) + size - 4*th->doff;
th1176net/inet/tcp.cth->check = 0;
th1201net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th1202net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th1204net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1300net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th1357net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1363net/inet/tcp.ct1->dest = th->source;
th1364net/inet/tcp.ct1->source = th->dest;
th1417net/inet/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th1420net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th1421net/inet/tcp.cth->seq = htonl(sk->write_seq);
th1422net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th1423net/inet/tcp.cth->doff = sizeof(*th)/4;
th1424net/inet/tcp.cth->ack = 1;
th1425net/inet/tcp.cth->fin = 0;
th1429net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1431net/inet/tcp.cth->window = htons(sk->window);
th1433net/inet/tcp.creturn(sizeof(*th));
th1565net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1710net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th2076net/inet/tcp.cif (before(*seq, skb->h.th->seq))
th2078net/inet/tcp.coffset = *seq - skb->h.th->seq;
th2079net/inet/tcp.cif (skb->h.th->syn)
th2083net/inet/tcp.cif (skb->h.th->fin)
th2191net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th2192net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th2214net/inet/tcp.cif (skb->h.th->fin)
th2308net/inet/tcp.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
th2369net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2495net/inet/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th2507net/inet/tcp.cif(th->rst)
th2541net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2547net/inet/tcp.ct1->dest = th->source;
th2548net/inet/tcp.ct1->source = th->dest;
th2552net/inet/tcp.cif(th->ack)
th2555net/inet/tcp.ct1->seq = th->ack_seq;
th2561net/inet/tcp.cif(!th->syn)
th2562net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th2564net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th2590net/inet/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th2593net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2596net/inet/tcp.cptr = (unsigned char *)(th + 1);
th2617net/inet/tcp.cif(opsize==4 && th->syn)
th2629net/inet/tcp.cif (th->syn) 
th2683net/inet/tcp.cstruct tcphdr *th;
th2688net/inet/tcp.cth = skb->h.th;
th2699net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th2763net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th2764net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq+1;
th2765net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th2782net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th2783net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th2802net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th2803net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq + 1;
th2854net/inet/tcp.ctcp_options(newsk,skb->h.th);
th2903net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th2908net/inet/tcp.ct1->dest = skb->h.th->source;
th2921net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th3067net/inet/tcp.cstruct tcphdr *th;
th3079net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th3080net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th3082net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th3083net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th3085net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th3109net/inet/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th3128net/inet/tcp.cack = ntohl(th->ack_seq);
th3130net/inet/tcp.cif (ntohs(th->window) > sk->max_window) 
th3132net/inet/tcp.csk->max_window = ntohs(th->window);
th3185net/inet/tcp.cif (len != th->doff*4) 
th3192net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th3216net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3272net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3638net/inet/tcp.ctcp_options(sk,th);
th3639net/inet/tcp.csk->dummy_th.dest=th->source;
th3712net/inet/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
th3714net/inet/tcp.csk->fin_seq = th->seq + skb->len + th->syn + th->fin;
th3732net/inet/tcp.cif (th->rst)
th3803net/inet/tcp.cstruct tcphdr *th;
th3808net/inet/tcp.cth = skb->h.th;
th3809net/inet/tcp.cskb->len = len -(th->doff*4);
th3818net/inet/tcp.cif (skb->len == 0 && !th->fin) 
th3824net/inet/tcp.cif (!th->ack)
th3825net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th3848net/inet/tcp.cnew_seq= th->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
th3870net/inet/tcp.csk->acked_seq = new_seq + th->fin;
th3871net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th3910net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th3911net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th3924net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th3938net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th3959net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th3960net/inet/tcp.cif (th->syn) 
th3961net/inet/tcp.cth->ack_seq++;
th3962net/inet/tcp.cif (th->fin)
th3963net/inet/tcp.cth->ack_seq++;
th3977net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) 
th3979net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) 
th3983net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq)) 
th3985net/inet/tcp.cnewwindow = sk->window-(th->ack_seq - sk->acked_seq);
th3989net/inet/tcp.csk->acked_seq = th->ack_seq;
th3998net/inet/tcp.cif (skb->h.th->fin) 
th4000net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th4007net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) 
th4009net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th4012net/inet/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
th4016net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th4023net/inet/tcp.cif (skb2->h.th->fin) 
th4025net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th4046net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th4095net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4101net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4126net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th4128net/inet/tcp.cunsigned long ptr = ntohs(th->urg_ptr);
th4132net/inet/tcp.cptr += th->seq;
th4158net/inet/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
th4167net/inet/tcp.cif (th->urg)
th4168net/inet/tcp.ctcp_check_urg(sk,th);
th4181net/inet/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
th4189net/inet/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th4420net/inet/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th4425net/inet/tcp.cnext_seq = len - 4*th->doff;
th4426net/inet/tcp.cif (th->fin)
th4431net/inet/tcp.cnext_seq += th->seq;
th4444net/inet/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
th4451net/inet/tcp.cif (th->rst)
th4463net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th4468net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4512net/inet/tcp.cstruct tcphdr *th;
th4536net/inet/tcp.cth = skb->h.th;
th4542net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4558net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) 
th4568net/inet/tcp.cth->seq = ntohl(th->seq);
th4576net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4607net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4652net/inet/tcp.cif(th->ack)  /* These use the socket TOS.. might want to be the received TOS */
th4653net/inet/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
th4662net/inet/tcp.cif(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR)
th4689net/inet/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && th->seq+1 == sk->acked_seq)
th4704net/inet/tcp.cif(th->ack)
th4707net/inet/tcp.cif(!tcp_ack(sk,th,saddr,len))
th4712net/inet/tcp.ctcp_reset(daddr, saddr, th,
th4718net/inet/tcp.cif(th->rst)
th4720net/inet/tcp.cif(!th->syn)
th4733net/inet/tcp.csk->acked_seq=th->seq+1;
th4734net/inet/tcp.csk->fin_seq=th->seq;
th4735net/inet/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
th4737net/inet/tcp.ctcp_options(sk,th);
th4738net/inet/tcp.csk->dummy_th.dest=th->source;
th4754net/inet/tcp.cif(th->syn && !th->rst)
th4759net/inet/tcp.csk->dummy_th.source==th->source &&
th4760net/inet/tcp.csk->dummy_th.dest==th->dest)
th4791net/inet/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
th4792net/inet/tcp.cafter(th->seq, sk->acked_seq) && !th->rst)
th4804net/inet/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4826net/inet/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
th4833net/inet/tcp.cif(th->rst)
th4840net/inet/tcp.cif(th->syn && !syn_ok)
th4842net/inet/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
th4851net/inet/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
th4859net/inet/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
th4872net/inet/tcp.cif(tcp_urg(sk, th, saddr, len))
th135net/inet/tcp.hextern void tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th102net/inet/udp.cstruct udphdr *th;
th112net/inet/udp.cth = (struct udphdr *)header;  
th114net/inet/udp.csk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr);