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;
th1019net/inet/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th1091net/inet/tcp.c: "0"(sum), "c"(len), "S"(th)
th1101net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th1104net/inet/tcp.cth->check = 0;
th1105net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th1117net/inet/tcp.cstruct tcphdr * th = skb->h.th;
th1123net/inet/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th1132net/inet/tcp.cskb, skb->data, th, skb->len);
th1145net/inet/tcp.cif(!th->syn && !th->fin) 
th1158net/inet/tcp.cskb->h.seq = ntohl(th->seq) + size - 4*th->doff;
th1174net/inet/tcp.cth->check = 0;
th1199net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th1200net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th1202net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1298net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th1355net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1361net/inet/tcp.ct1->dest = th->source;
th1362net/inet/tcp.ct1->source = th->dest;
th1415net/inet/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th1418net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th1419net/inet/tcp.cth->seq = htonl(sk->write_seq);
th1420net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th1421net/inet/tcp.cth->doff = sizeof(*th)/4;
th1422net/inet/tcp.cth->ack = 1;
th1423net/inet/tcp.cth->fin = 0;
th1427net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1429net/inet/tcp.cth->window = htons(sk->window);
th1431net/inet/tcp.creturn(sizeof(*th));
th1563net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1708net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th2074net/inet/tcp.cif (before(*seq, skb->h.th->seq))
th2076net/inet/tcp.coffset = *seq - skb->h.th->seq;
th2077net/inet/tcp.cif (skb->h.th->syn)
th2081net/inet/tcp.cif (skb->h.th->fin)
th2189net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th2190net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th2212net/inet/tcp.cif (skb->h.th->fin)
th2306net/inet/tcp.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
th2367net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2493net/inet/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th2505net/inet/tcp.cif(th->rst)
th2539net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2545net/inet/tcp.ct1->dest = th->source;
th2546net/inet/tcp.ct1->source = th->dest;
th2550net/inet/tcp.cif(th->ack)
th2553net/inet/tcp.ct1->seq = th->ack_seq;
th2559net/inet/tcp.cif(!th->syn)
th2560net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th2562net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th2588net/inet/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th2591net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2594net/inet/tcp.cptr = (unsigned char *)(th + 1);
th2615net/inet/tcp.cif(opsize==4 && th->syn)
th2627net/inet/tcp.cif (th->syn) 
th2681net/inet/tcp.cstruct tcphdr *th;
th2686net/inet/tcp.cth = skb->h.th;
th2697net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th2761net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th2762net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq+1;
th2763net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th2780net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th2781net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th2800net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th2801net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq + 1;
th2852net/inet/tcp.ctcp_options(newsk,skb->h.th);
th2901net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th2906net/inet/tcp.ct1->dest = skb->h.th->source;
th2919net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th3065net/inet/tcp.cstruct tcphdr *th;
th3077net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th3078net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th3080net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th3081net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th3083net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th3107net/inet/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th3126net/inet/tcp.cack = ntohl(th->ack_seq);
th3128net/inet/tcp.cif (ntohs(th->window) > sk->max_window) 
th3130net/inet/tcp.csk->max_window = ntohs(th->window);
th3183net/inet/tcp.cif (len != th->doff*4) 
th3190net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th3214net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3270net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3636net/inet/tcp.ctcp_options(sk,th);
th3637net/inet/tcp.csk->dummy_th.dest=th->source;
th3710net/inet/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
th3712net/inet/tcp.csk->fin_seq = th->seq + skb->len + th->syn + th->fin;
th3730net/inet/tcp.cif (th->rst)
th3801net/inet/tcp.cstruct tcphdr *th;
th3806net/inet/tcp.cth = skb->h.th;
th3807net/inet/tcp.cskb->len = len -(th->doff*4);
th3816net/inet/tcp.cif (skb->len == 0 && !th->fin) 
th3822net/inet/tcp.cif (!th->ack)
th3823net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th3846net/inet/tcp.cnew_seq= th->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
th3868net/inet/tcp.csk->acked_seq = new_seq + th->fin;
th3869net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th3908net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th3909net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th3922net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th3936net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th3957net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th3958net/inet/tcp.cif (th->syn) 
th3959net/inet/tcp.cth->ack_seq++;
th3960net/inet/tcp.cif (th->fin)
th3961net/inet/tcp.cth->ack_seq++;
th3975net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) 
th3977net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) 
th3981net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq)) 
th3983net/inet/tcp.cnewwindow = sk->window-(th->ack_seq - sk->acked_seq);
th3987net/inet/tcp.csk->acked_seq = th->ack_seq;
th3996net/inet/tcp.cif (skb->h.th->fin) 
th3998net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th4005net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) 
th4007net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th4010net/inet/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
th4014net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th4021net/inet/tcp.cif (skb2->h.th->fin) 
th4023net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th4044net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th4093net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4099net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4124net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th4126net/inet/tcp.cunsigned long ptr = ntohs(th->urg_ptr);
th4130net/inet/tcp.cptr += th->seq;
th4156net/inet/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
th4165net/inet/tcp.cif (th->urg)
th4166net/inet/tcp.ctcp_check_urg(sk,th);
th4179net/inet/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
th4187net/inet/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th4418net/inet/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th4423net/inet/tcp.cnext_seq = len - 4*th->doff;
th4424net/inet/tcp.cif (th->fin)
th4429net/inet/tcp.cnext_seq += th->seq;
th4442net/inet/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
th4449net/inet/tcp.cif (th->rst)
th4461net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th4466net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4510net/inet/tcp.cstruct tcphdr *th;
th4534net/inet/tcp.cth = skb->h.th;
th4540net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4556net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) 
th4566net/inet/tcp.cth->seq = ntohl(th->seq);
th4574net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4605net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4650net/inet/tcp.cif(th->ack)  /* These use the socket TOS.. might want to be the received TOS */
th4651net/inet/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
th4660net/inet/tcp.cif(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR)
th4687net/inet/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && th->seq+1 == sk->acked_seq)
th4702net/inet/tcp.cif(th->ack)
th4705net/inet/tcp.cif(!tcp_ack(sk,th,saddr,len))
th4710net/inet/tcp.ctcp_reset(daddr, saddr, th,
th4716net/inet/tcp.cif(th->rst)
th4718net/inet/tcp.cif(!th->syn)
th4731net/inet/tcp.csk->acked_seq=th->seq+1;
th4732net/inet/tcp.csk->fin_seq=th->seq;
th4733net/inet/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
th4735net/inet/tcp.ctcp_options(sk,th);
th4736net/inet/tcp.csk->dummy_th.dest=th->source;
th4752net/inet/tcp.cif(th->syn && !th->rst)
th4757net/inet/tcp.csk->dummy_th.source==th->source &&
th4758net/inet/tcp.csk->dummy_th.dest==th->dest)
th4789net/inet/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
th4790net/inet/tcp.cafter(th->seq, sk->acked_seq) && !th->rst)
th4802net/inet/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4824net/inet/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
th4831net/inet/tcp.cif(th->rst)
th4838net/inet/tcp.cif(th->syn && !syn_ok)
th4840net/inet/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
th4849net/inet/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
th4857net/inet/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
th4870net/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);