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);
th16include/asm-alpha/ipsum.hextern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr)
th52include/linux/skbuff.hstruct tcphdr  *th;
th14include/net/arp.hunsigned char *dest_hw, unsigned char *src_hw, unsigned char *th);
th137include/net/tcp.hextern void tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th597net/ipv4/ip_fw.cstruct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]);
th599net/ipv4/ip_fw.cchar *p, *data = (char *)&th[1];
th616net/ipv4/ip_fw.cseq=ntohl(th->seq);
th621net/ipv4/ip_fw.cth->seq = htonl(seq + ftp->delta);
th628net/ipv4/ip_fw.cth->seq = htonl(seq + ftp->previous_delta);
th868net/ipv4/ip_fw.cstruct tcphdr *th;
th877net/ipv4/ip_fw.cth = (struct tcphdr *)portptr;
th882net/ipv4/ip_fw.cif (ms->sawfin || th->fin) 
th889net/ipv4/ip_fw.ctcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk);
th913net/ipv4/ip_fw.cstruct tcphdr   *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2));
th974net/ipv4/ip_fw.cprintk("demasq : delta=%d ; previous_delta=%d ; init_seq=%lX ; ack_seq=%lX ; after=%d\n",ms->delta,ms->previous_delta,ntohl(ms->init_seq),ntohl(th->ack_seq),after(ntohl(th->ack_seq),ntohl(ms->init_seq)));
th976net/ipv4/ip_fw.cack_seq=ntohl(th->ack_seq);
th981net/ipv4/ip_fw.cth->ack_seq = htonl(ack_seq-ms->delta);
th988net/ipv4/ip_fw.cth->ack_seq = htonl(ack_seq-ms->previous_delta);
th645net/ipv4/tcp.cstruct tcphdr *th;
th669net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
th737net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
th738net/ipv4/tcp.cth->window = ntohs(tcp_select_window(sk));
th739net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1057net/ipv4/tcp.cstruct tcphdr *th = (struct tcphdr *)header;
th1066net/ipv4/tcp.cth =(struct tcphdr *)header;
th1067net/ipv4/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
th1169net/ipv4/tcp.cif (skb->h.th->syn)
th1174net/ipv4/tcp.cif (skb->h.th->syn) 
th1194net/ipv4/tcp.cif (skb->h.th->urg)
th1196net/ipv4/tcp.cif (amount && skb->h.th->psh) break;
th1342net/ipv4/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th1350net/ipv4/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th1353net/ipv4/tcp.cth->check = 0;
th1354net/ipv4/tcp.cth->check = tcp_check(th, len, saddr, daddr,
th1355net/ipv4/tcp.ccsum_partial((char *)th,len,0));
th1367net/ipv4/tcp.cstruct tcphdr * th = skb->h.th;
th1373net/ipv4/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th1382net/ipv4/tcp.cskb, skb->data, th, skb->len);
th1395net/ipv4/tcp.cif(!th->syn && !th->fin) 
th1408net/ipv4/tcp.cskb->seq = ntohl(th->seq);
th1409net/ipv4/tcp.cskb->end_seq = skb->seq + size - 4*th->doff;
th1425net/ipv4/tcp.cth->check = 0;
th1450net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1451net/ipv4/tcp.cth->window = htons(tcp_select_window(sk));
th1453net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1549net/ipv4/tcp.cstruct tcphdr *th, unsigned long daddr)
th1603net/ipv4/tcp.cmemcpy(t1, th, sizeof(*t1));
th1609net/ipv4/tcp.ct1->dest = th->source;
th1610net/ipv4/tcp.ct1->source = th->dest;
th1663net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th1666net/ipv4/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th1667net/ipv4/tcp.cth->seq = htonl(sk->write_seq);
th1668net/ipv4/tcp.cth->psh =(push == 0) ? 1 : 0;
th1669net/ipv4/tcp.cth->doff = sizeof(*th)/4;
th1670net/ipv4/tcp.cth->ack = 1;
th1671net/ipv4/tcp.cth->fin = 0;
th1675net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1677net/ipv4/tcp.cth->window = htons(sk->window);
th1679net/ipv4/tcp.creturn(sizeof(*th));
th1852net/ipv4/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1993net/ipv4/tcp.cskb->h.th =(struct tcphdr *)skb_put(skb,sizeof(struct tcphdr));
th1994net/ipv4/tcp.ctmp = tcp_build_header(skb->h.th, sk, seglen-copy);
th2006net/ipv4/tcp.cskb->h.th->urg = 1;
th2007net/ipv4/tcp.cskb->h.th->urg_ptr = ntohs(copy);
th2350net/ipv4/tcp.cif (skb->h.th->syn)
th2354net/ipv4/tcp.cif (skb->h.th->fin)
th2461net/ipv4/tcp.cmemcpy_toiovec(msg->msg_iov,((unsigned char *)skb->h.th) +
th2462net/ipv4/tcp.cskb->h.th->doff*4 + offset, used);
th2483net/ipv4/tcp.cif (skb->h.th->fin)
th2590net/ipv4/tcp.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
th2648net/ipv4/tcp.cmemcpy(t1, th, sizeof(*t1));
th2744net/ipv4/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th2756net/ipv4/tcp.cif(th->rst)
th2786net/ipv4/tcp.cmemcpy(t1, th, sizeof(*t1));
th2792net/ipv4/tcp.ct1->dest = th->source;
th2793net/ipv4/tcp.ct1->source = th->dest;
th2797net/ipv4/tcp.cif(th->ack)
th2800net/ipv4/tcp.ct1->seq = th->ack_seq;
th2806net/ipv4/tcp.cif(!th->syn)
th2807net/ipv4/tcp.ct1->ack_seq = th->seq;
th2809net/ipv4/tcp.ct1->ack_seq = htonl(ntohl(th->seq)+1);
th2835net/ipv4/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th2838net/ipv4/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2841net/ipv4/tcp.cptr = (unsigned char *)(th + 1);
th2862net/ipv4/tcp.cif(opsize==4 && th->syn)
th2874net/ipv4/tcp.cif (th->syn) 
th2928net/ipv4/tcp.cstruct tcphdr *th;
th2933net/ipv4/tcp.cth = skb->h.th;
th2944net/ipv4/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th3045net/ipv4/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th3046net/ipv4/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th3124net/ipv4/tcp.ctcp_options(newsk,skb->h.th);
th3171net/ipv4/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th3177net/ipv4/tcp.ct1->dest = skb->h.th->source;
th3338net/ipv4/tcp.cstruct tcphdr *th;
th3349net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th3350net/ipv4/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th3359net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
th3360net/ipv4/tcp.cth->window = htons(tcp_select_window(sk));
th3362net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th3386net/ipv4/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th3405net/ipv4/tcp.cack = ntohl(th->ack_seq);
th3407net/ipv4/tcp.cif (ntohs(th->window) > sk->max_window) 
th3409net/ipv4/tcp.csk->max_window = ntohs(th->window);
th3462net/ipv4/tcp.cif (len != th->doff*4) 
th3469net/ipv4/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th3493net/ipv4/tcp.csk->window_seq = ack + ntohs(th->window);
th3549net/ipv4/tcp.csk->window_seq = ack + ntohs(th->window);
th3915net/ipv4/tcp.ctcp_options(sk,th);
th3916net/ipv4/tcp.csk->dummy_th.dest=th->source;
th3989net/ipv4/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
th4009net/ipv4/tcp.cif (th->rst)
th4080net/ipv4/tcp.cstruct tcphdr *th;
th4084net/ipv4/tcp.cth = skb->h.th;
th4085net/ipv4/tcp.cskb_pull(skb,th->doff*4);
th4086net/ipv4/tcp.cskb_trim(skb,len-(th->doff*4));
th4095net/ipv4/tcp.cif (skb->len == 0 && !th->fin) 
th4101net/ipv4/tcp.cif (!th->ack)
th4102net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th4125net/ipv4/tcp.cnew_seq = skb->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
th4147net/ipv4/tcp.csk->acked_seq = new_seq + th->fin;
th4148net/ipv4/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th4269net/ipv4/tcp.cif (skb->h.th->fin) 
th4271net/ipv4/tcp.ctcp_fin(skb,sk,skb->h.th);
th4294net/ipv4/tcp.cif (skb2->h.th->fin) 
th4296net/ipv4/tcp.ctcp_fin(skb,sk,skb->h.th);
th4317net/ipv4/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th4366net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4372net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4397net/ipv4/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th4399net/ipv4/tcp.cu32 ptr = ntohs(th->urg_ptr);
th4403net/ipv4/tcp.cptr += ntohl(th->seq);
th4429net/ipv4/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
th4438net/ipv4/tcp.cif (th->urg)
th4439net/ipv4/tcp.ctcp_check_urg(sk,th);
th4452net/ipv4/tcp.cptr = sk->urg_seq - ntohl(th->seq) + th->doff*4;
th4460net/ipv4/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th4702net/ipv4/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th4707net/ipv4/tcp.cnext_seq = len - 4*th->doff;
th4708net/ipv4/tcp.cif (th->fin)
th4713net/ipv4/tcp.cnext_seq += ntohl(th->seq);
th4726net/ipv4/tcp.cif (!before(ntohl(th->seq), sk->acked_seq + sk->window + 1))
th4733net/ipv4/tcp.cif (th->rst)
th4745net/ipv4/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th4750net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4795net/ipv4/tcp.cstruct tcphdr *th;
th4806net/ipv4/tcp.cth = skb->h.th;
th4812net/ipv4/tcp.cif(saddr==th_cache_saddr && daddr==th_cache_daddr && th->dest==th_cache_dport && th->source==th_cache_sport)
th4818net/ipv4/tcp.cif(sk!=get_sock(&tcp_prot,th->dest, saddr, th->source, daddr))
th4823net/ipv4/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4826net/ipv4/tcp.cth_cache_dport=th->dest;
th4827net/ipv4/tcp.cth_cache_sport=th->source;
th4853net/ipv4/tcp.c(skb->ip_summed && tcp_check(th, len, saddr, daddr, skb->csum ))||
th4854net/ipv4/tcp.c(!skb->ip_summed && tcp_check(th, len, saddr, daddr, csum_partial((char *)th, len, 0)))
th4866net/ipv4/tcp.cskb->seq = ntohl(th->seq);
th4867net/ipv4/tcp.cskb->end_seq = skb->seq + th->syn + th->fin + len - th->doff*4;
th4868net/ipv4/tcp.cskb->ack_seq = ntohl(th->ack_seq);
th4876net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4906net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4944net/ipv4/tcp.cif(th->ack)  /* These use the socket TOS.. might want to be the received TOS */
th4945net/ipv4/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
th4954net/ipv4/tcp.cif(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR)
th4981net/ipv4/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && skb->seq+1 == sk->acked_seq)
th4996net/ipv4/tcp.cif(th->ack)
th4999net/ipv4/tcp.cif(!tcp_ack(sk,th,saddr,len))
th5004net/ipv4/tcp.ctcp_reset(daddr, saddr, th,
th5010net/ipv4/tcp.cif(th->rst)
th5012net/ipv4/tcp.cif(!th->syn)
th5027net/ipv4/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
th5029net/ipv4/tcp.ctcp_options(sk,th);
th5030net/ipv4/tcp.csk->dummy_th.dest=th->source;
th5046net/ipv4/tcp.cif(th->syn && !th->rst)
th5051net/ipv4/tcp.csk->dummy_th.source==th->source &&
th5052net/ipv4/tcp.csk->dummy_th.dest==th->dest)
th5083net/ipv4/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
th5084net/ipv4/tcp.cafter(skb->seq, sk->acked_seq) && !th->rst)
th5096net/ipv4/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th5118net/ipv4/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
th5125net/ipv4/tcp.cif(th->rst)
th5132net/ipv4/tcp.cif(th->syn && !syn_ok)
th5134net/ipv4/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
th5143net/ipv4/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
th5151net/ipv4/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
th5178net/ipv4/tcp.cif(tcp_urg(sk, th, saddr, len))
th5244net/ipv4/tcp.cstruct tcphdr *th;
th5263net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th5269net/ipv4/tcp.cbuff = sock_wmalloc(sk, win_size + th->doff * 4 + 
th5305net/ipv4/tcp.cnth = (struct tcphdr *) skb_put(buff,th->doff*4);
th5307net/ipv4/tcp.cmemcpy(nth, th, th->doff * 4);
th5323net/ipv4/tcp.c(iph->ihl << 2) + th->doff * 4;
th5342net/ipv4/tcp.cth->check = 0;
th5349net/ipv4/tcp.cth->seq = htonl(sk->sent_seq);
th5350net/ipv4/tcp.cif (th->urg)
th5354net/ipv4/tcp.curg_ptr = ntohs(th->urg_ptr);
th5356net/ipv4/tcp.cth->urg = 0;
th5360net/ipv4/tcp.cth->urg_ptr = htons(urg_ptr);
th5365net/ipv4/tcp.cif(th->urg && ntohs(th->urg_ptr) < win_size)