taglinefilesource code
th252drivers/net/slhc.cstruct tcphdr *th, *oth;
th268drivers/net/slhc.cth = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4);
th269drivers/net/slhc.chlen = ip->ihl*4 + th->doff*4;
th274drivers/net/slhc.cif(th->syn || th->fin || th->rst ||
th275drivers/net/slhc.c! (th->ack)){
th297drivers/net/slhc.c&& th->source == cs->cs_tcp.source
th298drivers/net/slhc.c&& th->dest == cs->cs_tcp.dest)
th356drivers/net/slhc.c|| th->doff != cs->cs_tcp.doff
th358drivers/net/slhc.c|| (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4 != 0))){
th368drivers/net/slhc.cif(th->urg){
th369drivers/net/slhc.cdeltaS = ntohs(th->urg_ptr);
th372drivers/net/slhc.c} else if(th->urg_ptr != oth->urg_ptr){
th379drivers/net/slhc.cif((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
th383drivers/net/slhc.cif((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
th389drivers/net/slhc.cif((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
th436drivers/net/slhc.cif(th->psh)
th441drivers/net/slhc.cdeltaA = ntohs(th->check);
th443drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th476drivers/net/slhc.cmemcpy(&cs->cs_tcp,th,20);
th479drivers/net/slhc.cif (th->doff > 5)
th480drivers/net/slhc.cmemcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);
th52include/linux/skbuff.hstruct tcphdr  *th;
th380net/inet/tcp.cstruct tcphdr *th;
th399net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
th400net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th416net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th417net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th418net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th700net/inet/tcp.cstruct tcphdr *th;
th707net/inet/tcp.cth =(struct tcphdr *)header;
th708net/inet/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
th785net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th787net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th788net/inet/tcp.cif (skb->h.th->syn)
th793net/inet/tcp.cif (skb->h.th->syn) 
th813net/inet/tcp.cif (skb->h.th->urg)
th815net/inet/tcp.cif (amount && skb->h.th->psh) break;
th950net/inet/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th1022net/inet/tcp.c: "0"(sum), "c"(len), "S"(th)
th1032net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th1035net/inet/tcp.cth->check = 0;
th1036net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th1043net/inet/tcp.cstruct tcphdr * th = skb->h.th;
th1046net/inet/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th1052net/inet/tcp.cskb, skb->data, th, skb->len);
th1061net/inet/tcp.cif(!th->syn && !th->fin) 
th1071net/inet/tcp.cskb->h.seq = ntohl(th->seq) + size - 4*th->doff;
th1078net/inet/tcp.cth->check = 0;
th1092net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th1093net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th1095net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1157net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th1201net/inet/tcp.cmemcpy(t1, th, sizeof(*t1)); /* this should probably be removed */
th1207net/inet/tcp.ct1->dest = th->source;
th1208net/inet/tcp.ct1->source = th->dest;
th1249net/inet/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th1253net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th1254net/inet/tcp.cth->seq = htonl(sk->write_seq);
th1255net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th1256net/inet/tcp.cth->doff = sizeof(*th)/4;
th1257net/inet/tcp.cth->ack = 1;
th1258net/inet/tcp.cth->fin = 0;
th1262net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1264net/inet/tcp.cth->window = htons(sk->window);
th1266net/inet/tcp.creturn(sizeof(*th));
th1399net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1544net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th1880net/inet/tcp.cif (before(*seq, skb->h.th->seq))
th1882net/inet/tcp.coffset = *seq - skb->h.th->seq;
th1883net/inet/tcp.cif (skb->h.th->syn)
th1887net/inet/tcp.cif (skb->h.th->fin)
th1967net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th1968net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th1977net/inet/tcp.cif (skb->h.th->fin)
th2010net/inet/tcp.cstruct tcphdr *t1, *th;
th2056net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th2104net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2183net/inet/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th2195net/inet/tcp.cif(th->rst)
th2229net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2235net/inet/tcp.ct1->dest = th->source;
th2236net/inet/tcp.ct1->source = th->dest;
th2240net/inet/tcp.cif(th->ack)
th2243net/inet/tcp.ct1->seq = th->ack_seq;
th2249net/inet/tcp.cif(!th->syn)
th2250net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th2252net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th2278net/inet/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th2281net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2284net/inet/tcp.cptr = (unsigned char *)(th + 1);
th2304net/inet/tcp.cif(opsize==4 && th->syn)
th2316net/inet/tcp.cif (th->syn) 
th2363net/inet/tcp.cstruct tcphdr *th;
th2368net/inet/tcp.cth = skb->h.th;
th2379net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th2443net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th2444net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq+1;
th2445net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th2462net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th2463net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th2482net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th2483net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq + 1;
th2534net/inet/tcp.ctcp_options(newsk,skb->h.th);
th2580net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th2585net/inet/tcp.ct1->dest = skb->h.th->source;
th2598net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th2630net/inet/tcp.cstruct tcphdr *t1, *th;
th2729net/inet/tcp.cth =(struct tcphdr *)&sk->dummy_th;
th2779net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2870net/inet/tcp.cstruct tcphdr *th;
th2882net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th2883net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th2885net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th2886net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th2888net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th2902net/inet/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th2917net/inet/tcp.cack = ntohl(th->ack_seq);
th2918net/inet/tcp.cif (ntohs(th->window) > sk->max_window) 
th2920net/inet/tcp.csk->max_window = ntohs(th->window);
th2952net/inet/tcp.cif (len != th->doff*4) 
th2957net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th2981net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3033net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3369net/inet/tcp.ctcp_options(sk,th);
th3370net/inet/tcp.csk->dummy_th.dest=th->source;
th3443net/inet/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
th3445net/inet/tcp.csk->fin_seq = th->seq + skb->len + th->syn + th->fin;
th3464net/inet/tcp.cif (th->rst)
th3535net/inet/tcp.cstruct tcphdr *th;
th3540net/inet/tcp.cth = skb->h.th;
th3541net/inet/tcp.cskb->len = len -(th->doff*4);
th3550net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) 
th3556net/inet/tcp.cif (!th->ack)
th3557net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th3578net/inet/tcp.cnew_seq= th->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
th3600net/inet/tcp.csk->acked_seq = new_seq + th->fin;
th3601net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th3642net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th3643net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th3656net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th3670net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th3691net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th3692net/inet/tcp.cif (th->syn) 
th3693net/inet/tcp.cth->ack_seq++;
th3694net/inet/tcp.cif (th->fin)
th3695net/inet/tcp.cth->ack_seq++;
th3709net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) 
th3711net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) 
th3715net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq)) 
th3717net/inet/tcp.cnewwindow = sk->window-(th->ack_seq - sk->acked_seq);
th3721net/inet/tcp.csk->acked_seq = th->ack_seq;
th3730net/inet/tcp.cif (skb->h.th->fin) 
th3732net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th3739net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) 
th3741net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th3744net/inet/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
th3748net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th3755net/inet/tcp.cif (skb2->h.th->fin) 
th3757net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th3778net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th3827net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th3833net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th3858net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th3860net/inet/tcp.cunsigned long ptr = ntohs(th->urg_ptr);
th3864net/inet/tcp.cptr += th->seq;
th3890net/inet/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
th3899net/inet/tcp.cif (th->urg)
th3900net/inet/tcp.ctcp_check_urg(sk,th);
th3913net/inet/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
th3921net/inet/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th4150net/inet/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th4155net/inet/tcp.cnext_seq = len - 4*th->doff;
th4156net/inet/tcp.cif (th->fin)
th4161net/inet/tcp.cnext_seq += th->seq;
th4174net/inet/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
th4181net/inet/tcp.cif (th->rst)
th4193net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th4198net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4242net/inet/tcp.cstruct tcphdr *th;
th4266net/inet/tcp.cth = skb->h.th;
th4272net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4288net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) 
th4298net/inet/tcp.cth->seq = ntohl(th->seq);
th4306net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4337net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4382net/inet/tcp.cif(th->ack)  /* These use the socket TOS.. might want to be the received TOS */
th4383net/inet/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
th4392net/inet/tcp.cif(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR)
th4419net/inet/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && th->seq+1 == sk->acked_seq)
th4434net/inet/tcp.cif(th->ack)
th4437net/inet/tcp.cif(!tcp_ack(sk,th,saddr,len))
th4442net/inet/tcp.ctcp_reset(daddr, saddr, th,
th4448net/inet/tcp.cif(th->rst)
th4450net/inet/tcp.cif(!th->syn)
th4463net/inet/tcp.csk->acked_seq=th->seq+1;
th4464net/inet/tcp.csk->fin_seq=th->seq;
th4465net/inet/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
th4467net/inet/tcp.ctcp_options(sk,th);
th4468net/inet/tcp.csk->dummy_th.dest=th->source;
th4484net/inet/tcp.cif(th->syn && !th->rst)
th4489net/inet/tcp.csk->dummy_th.source==th->source &&
th4490net/inet/tcp.csk->dummy_th.dest==th->dest)
th4519net/inet/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
th4520net/inet/tcp.cafter(th->seq, sk->acked_seq) && !th->rst)
th4532net/inet/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4552net/inet/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
th4559net/inet/tcp.cif(th->rst)
th4566net/inet/tcp.cif(th->syn && !syn_ok)
th4568net/inet/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
th4577net/inet/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
th4585net/inet/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
th4598net/inet/tcp.cif(tcp_urg(sk, th, saddr, len))
th128net/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);