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);
th1071net/ipv4/tcp.cstruct tcphdr *th = (struct tcphdr *)header;
th1080net/ipv4/tcp.cth =(struct tcphdr *)header;
th1081net/ipv4/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
th1188net/ipv4/tcp.cif (skb->h.th->syn)
th1193net/ipv4/tcp.cif (skb->h.th->syn) 
th1213net/ipv4/tcp.cif (skb->h.th->urg)
th1215net/ipv4/tcp.cif (amount && skb->h.th->psh) break;
th1361net/ipv4/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th1369net/ipv4/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th1372net/ipv4/tcp.cth->check = 0;
th1373net/ipv4/tcp.cth->check = tcp_check(th, len, saddr, daddr,
th1374net/ipv4/tcp.ccsum_partial((char *)th,len,0));
th1386net/ipv4/tcp.cstruct tcphdr * th = skb->h.th;
th1392net/ipv4/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th1401net/ipv4/tcp.cskb, skb->data, th, skb->len);
th1414net/ipv4/tcp.cif(!th->syn && !th->fin) 
th1427net/ipv4/tcp.cskb->seq = ntohl(th->seq);
th1428net/ipv4/tcp.cskb->end_seq = skb->seq + size - 4*th->doff;
th1444net/ipv4/tcp.cth->check = 0;
th1469net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1470net/ipv4/tcp.cth->window = htons(tcp_select_window(sk));
th1472net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1568net/ipv4/tcp.cstruct tcphdr *th, unsigned long daddr)
th1622net/ipv4/tcp.cmemcpy(t1, th, sizeof(*t1));
th1628net/ipv4/tcp.ct1->dest = th->source;
th1629net/ipv4/tcp.ct1->source = th->dest;
th1682net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th1685net/ipv4/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th1686net/ipv4/tcp.cth->seq = htonl(sk->write_seq);
th1687net/ipv4/tcp.cth->psh =(push == 0) ? 1 : 0;
th1688net/ipv4/tcp.cth->doff = sizeof(*th)/4;
th1689net/ipv4/tcp.cth->ack = 1;
th1690net/ipv4/tcp.cth->fin = 0;
th1694net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1696net/ipv4/tcp.cth->window = htons(sk->window);
th1698net/ipv4/tcp.creturn(sizeof(*th));
th1871net/ipv4/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th2012net/ipv4/tcp.cskb->h.th =(struct tcphdr *)skb_put(skb,sizeof(struct tcphdr));
th2013net/ipv4/tcp.ctmp = tcp_build_header(skb->h.th, sk, seglen-copy);
th2025net/ipv4/tcp.cskb->h.th->urg = 1;
th2026net/ipv4/tcp.cskb->h.th->urg_ptr = ntohs(copy);
th2369net/ipv4/tcp.cif (skb->h.th->syn)
th2373net/ipv4/tcp.cif (skb->h.th->fin)
th2480net/ipv4/tcp.cmemcpy_toiovec(msg->msg_iov,((unsigned char *)skb->h.th) +
th2481net/ipv4/tcp.cskb->h.th->doff*4 + offset, used);
th2502net/ipv4/tcp.cif (skb->h.th->fin)
th2609net/ipv4/tcp.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
th2667net/ipv4/tcp.cmemcpy(t1, th, sizeof(*t1));
th2763net/ipv4/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th2775net/ipv4/tcp.cif(th->rst)
th2805net/ipv4/tcp.cmemcpy(t1, th, sizeof(*t1));
th2811net/ipv4/tcp.ct1->dest = th->source;
th2812net/ipv4/tcp.ct1->source = th->dest;
th2816net/ipv4/tcp.cif(th->ack)
th2819net/ipv4/tcp.ct1->seq = th->ack_seq;
th2825net/ipv4/tcp.cif(!th->syn)
th2826net/ipv4/tcp.ct1->ack_seq = th->seq;
th2828net/ipv4/tcp.ct1->ack_seq = htonl(ntohl(th->seq)+1);
th2854net/ipv4/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th2857net/ipv4/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2860net/ipv4/tcp.cptr = (unsigned char *)(th + 1);
th2881net/ipv4/tcp.cif(opsize==4 && th->syn)
th2893net/ipv4/tcp.cif (th->syn) 
th2947net/ipv4/tcp.cstruct tcphdr *th;
th2952net/ipv4/tcp.cth = skb->h.th;
th2963net/ipv4/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th3064net/ipv4/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th3065net/ipv4/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th3143net/ipv4/tcp.ctcp_options(newsk,skb->h.th);
th3190net/ipv4/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th3196net/ipv4/tcp.ct1->dest = skb->h.th->source;
th3357net/ipv4/tcp.cstruct tcphdr *th;
th3368net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th3369net/ipv4/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th3378net/ipv4/tcp.cth->ack_seq = htonl(sk->acked_seq);
th3379net/ipv4/tcp.cth->window = htons(tcp_select_window(sk));
th3381net/ipv4/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th3405net/ipv4/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th3424net/ipv4/tcp.cack = ntohl(th->ack_seq);
th3426net/ipv4/tcp.cif (ntohs(th->window) > sk->max_window) 
th3428net/ipv4/tcp.csk->max_window = ntohs(th->window);
th3481net/ipv4/tcp.cif (len != th->doff*4) 
th3488net/ipv4/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th3512net/ipv4/tcp.csk->window_seq = ack + ntohs(th->window);
th3568net/ipv4/tcp.csk->window_seq = ack + ntohs(th->window);
th3942net/ipv4/tcp.ctcp_options(sk,th);
th3943net/ipv4/tcp.csk->dummy_th.dest=th->source;
th4016net/ipv4/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
th4036net/ipv4/tcp.cif (th->rst)
th4107net/ipv4/tcp.cstruct tcphdr *th;
th4111net/ipv4/tcp.cth = skb->h.th;
th4112net/ipv4/tcp.cskb_pull(skb,th->doff*4);
th4113net/ipv4/tcp.cskb_trim(skb,len-(th->doff*4));
th4122net/ipv4/tcp.cif (skb->len == 0 && !th->fin) 
th4128net/ipv4/tcp.cif (!th->ack)
th4129net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th4152net/ipv4/tcp.cnew_seq = skb->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
th4174net/ipv4/tcp.csk->acked_seq = new_seq + th->fin;
th4175net/ipv4/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th4297net/ipv4/tcp.cif (skb->h.th->fin) 
th4299net/ipv4/tcp.ctcp_fin(skb,sk,skb->h.th);
th4322net/ipv4/tcp.cif (skb2->h.th->fin) 
th4324net/ipv4/tcp.ctcp_fin(skb,sk,skb->h.th);
th4345net/ipv4/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th4394net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4400net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4425net/ipv4/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th4427net/ipv4/tcp.cu32 ptr = ntohs(th->urg_ptr);
th4431net/ipv4/tcp.cptr += ntohl(th->seq);
th4457net/ipv4/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
th4466net/ipv4/tcp.cif (th->urg)
th4467net/ipv4/tcp.ctcp_check_urg(sk,th);
th4480net/ipv4/tcp.cptr = sk->urg_seq - ntohl(th->seq) + th->doff*4;
th4488net/ipv4/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th4730net/ipv4/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th4735net/ipv4/tcp.cnext_seq = len - 4*th->doff;
th4736net/ipv4/tcp.cif (th->fin)
th4741net/ipv4/tcp.cnext_seq += ntohl(th->seq);
th4754net/ipv4/tcp.cif (!before(ntohl(th->seq), sk->acked_seq + sk->window + 1))
th4761net/ipv4/tcp.cif (th->rst)
th4773net/ipv4/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th4778net/ipv4/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4823net/ipv4/tcp.cstruct tcphdr *th;
th4834net/ipv4/tcp.cth = skb->h.th;
th4840net/ipv4/tcp.cif(!redo && saddr==th_cache_saddr && daddr==th_cache_daddr && th->dest==th_cache_dport && th->source==th_cache_sport)
th4846net/ipv4/tcp.cif(sk!=get_sock(&tcp_prot,th->dest, saddr, th->source, daddr))
th4851net/ipv4/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4854net/ipv4/tcp.cth_cache_dport=th->dest;
th4855net/ipv4/tcp.cth_cache_sport=th->source;
th4881net/ipv4/tcp.c(skb->ip_summed && tcp_check(th, len, saddr, daddr, skb->csum ))||
th4882net/ipv4/tcp.c(!skb->ip_summed && tcp_check(th, len, saddr, daddr, csum_partial((char *)th, len, 0)))
th4894net/ipv4/tcp.cskb->seq = ntohl(th->seq);
th4895net/ipv4/tcp.cskb->end_seq = skb->seq + th->syn + th->fin + len - th->doff*4;
th4896net/ipv4/tcp.cskb->ack_seq = ntohl(th->ack_seq);
th4904net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4934net/ipv4/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4972net/ipv4/tcp.cif(th->ack)  /* These use the socket TOS.. might want to be the received TOS */
th4973net/ipv4/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
th4982net/ipv4/tcp.cif(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR)
th5009net/ipv4/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && skb->seq+1 == sk->acked_seq)
th5024net/ipv4/tcp.cif(th->ack)
th5027net/ipv4/tcp.cif(!tcp_ack(sk,th,saddr,len))
th5032net/ipv4/tcp.ctcp_reset(daddr, saddr, th,
th5038net/ipv4/tcp.cif(th->rst)
th5040net/ipv4/tcp.cif(!th->syn)
th5055net/ipv4/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
th5057net/ipv4/tcp.ctcp_options(sk,th);
th5058net/ipv4/tcp.csk->dummy_th.dest=th->source;
th5074net/ipv4/tcp.cif(th->syn && !th->rst)
th5079net/ipv4/tcp.csk->dummy_th.source==th->source &&
th5080net/ipv4/tcp.csk->dummy_th.dest==th->dest)
th5111net/ipv4/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
th5112net/ipv4/tcp.cafter(skb->seq, sk->acked_seq) && !th->rst)
th5124net/ipv4/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th5146net/ipv4/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
th5153net/ipv4/tcp.cif(th->rst)
th5160net/ipv4/tcp.cif(th->syn && !syn_ok)
th5162net/ipv4/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
th5171net/ipv4/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
th5179net/ipv4/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
th5206net/ipv4/tcp.cif(tcp_urg(sk, th, saddr, len))
th5272net/ipv4/tcp.cstruct tcphdr *th;
th5291net/ipv4/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th5297net/ipv4/tcp.cbuff = sock_wmalloc(sk, win_size + th->doff * 4 + 
th5333net/ipv4/tcp.cnth = (struct tcphdr *) skb_put(buff,th->doff*4);
th5335net/ipv4/tcp.cmemcpy(nth, th, th->doff * 4);
th5350net/ipv4/tcp.ctcp_data_start = (char *) th + (th->doff << 2);
th5364net/ipv4/tcp.cif(th->urg && ntohs(th->urg_ptr) < win_size)