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;
th413net/inet/tcp.cstruct tcphdr *th;
th431net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
th432net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th456net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th457net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th458net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th753net/inet/tcp.cstruct tcphdr *th;
th760net/inet/tcp.cth =(struct tcphdr *)header;
th761net/inet/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
th842net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th844net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th845net/inet/tcp.cif (skb->h.th->syn)
th850net/inet/tcp.cif (skb->h.th->syn) 
th870net/inet/tcp.cif (skb->h.th->urg)
th872net/inet/tcp.cif (amount && skb->h.th->psh) break;
th1016net/inet/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th1088net/inet/tcp.c: "0"(sum), "c"(len), "S"(th)
th1098net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th1101net/inet/tcp.cth->check = 0;
th1102net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th1114net/inet/tcp.cstruct tcphdr * th = skb->h.th;
th1120net/inet/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th1129net/inet/tcp.cskb, skb->data, th, skb->len);
th1142net/inet/tcp.cif(!th->syn && !th->fin) 
th1155net/inet/tcp.cskb->h.seq = ntohl(th->seq) + size - 4*th->doff;
th1171net/inet/tcp.cth->check = 0;
th1196net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th1197net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th1199net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1295net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th1352net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1358net/inet/tcp.ct1->dest = th->source;
th1359net/inet/tcp.ct1->source = th->dest;
th1412net/inet/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th1415net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th1416net/inet/tcp.cth->seq = htonl(sk->write_seq);
th1417net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th1418net/inet/tcp.cth->doff = sizeof(*th)/4;
th1419net/inet/tcp.cth->ack = 1;
th1420net/inet/tcp.cth->fin = 0;
th1424net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1426net/inet/tcp.cth->window = htons(sk->window);
th1428net/inet/tcp.creturn(sizeof(*th));
th1560net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1705net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th2071net/inet/tcp.cif (before(*seq, skb->h.th->seq))
th2073net/inet/tcp.coffset = *seq - skb->h.th->seq;
th2074net/inet/tcp.cif (skb->h.th->syn)
th2078net/inet/tcp.cif (skb->h.th->fin)
th2186net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th2187net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th2209net/inet/tcp.cif (skb->h.th->fin)
th2303net/inet/tcp.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
th2364net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2490net/inet/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th2502net/inet/tcp.cif(th->rst)
th2536net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2542net/inet/tcp.ct1->dest = th->source;
th2543net/inet/tcp.ct1->source = th->dest;
th2547net/inet/tcp.cif(th->ack)
th2550net/inet/tcp.ct1->seq = th->ack_seq;
th2556net/inet/tcp.cif(!th->syn)
th2557net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th2559net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th2585net/inet/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th2588net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2591net/inet/tcp.cptr = (unsigned char *)(th + 1);
th2612net/inet/tcp.cif(opsize==4 && th->syn)
th2624net/inet/tcp.cif (th->syn) 
th2678net/inet/tcp.cstruct tcphdr *th;
th2683net/inet/tcp.cth = skb->h.th;
th2694net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th2758net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th2759net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq+1;
th2760net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th2777net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th2778net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th2797net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th2798net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq + 1;
th2849net/inet/tcp.ctcp_options(newsk,skb->h.th);
th2898net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th2903net/inet/tcp.ct1->dest = skb->h.th->source;
th2916net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th3062net/inet/tcp.cstruct tcphdr *th;
th3074net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th3075net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th3077net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th3078net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th3080net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th3104net/inet/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th3123net/inet/tcp.cack = ntohl(th->ack_seq);
th3125net/inet/tcp.cif (ntohs(th->window) > sk->max_window) 
th3127net/inet/tcp.csk->max_window = ntohs(th->window);
th3180net/inet/tcp.cif (len != th->doff*4) 
th3187net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th3211net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3267net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3633net/inet/tcp.ctcp_options(sk,th);
th3634net/inet/tcp.csk->dummy_th.dest=th->source;
th3707net/inet/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
th3709net/inet/tcp.csk->fin_seq = th->seq + skb->len + th->syn + th->fin;
th3727net/inet/tcp.cif (th->rst)
th3798net/inet/tcp.cstruct tcphdr *th;
th3803net/inet/tcp.cth = skb->h.th;
th3804net/inet/tcp.cskb->len = len -(th->doff*4);
th3813net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) 
th3819net/inet/tcp.cif (!th->ack)
th3820net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th3843net/inet/tcp.cnew_seq= th->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
th3865net/inet/tcp.csk->acked_seq = new_seq + th->fin;
th3866net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th3905net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th3906net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th3919net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th3933net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th3954net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th3955net/inet/tcp.cif (th->syn) 
th3956net/inet/tcp.cth->ack_seq++;
th3957net/inet/tcp.cif (th->fin)
th3958net/inet/tcp.cth->ack_seq++;
th3972net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) 
th3974net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) 
th3978net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq)) 
th3980net/inet/tcp.cnewwindow = sk->window-(th->ack_seq - sk->acked_seq);
th3984net/inet/tcp.csk->acked_seq = th->ack_seq;
th3993net/inet/tcp.cif (skb->h.th->fin) 
th3995net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th4002net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) 
th4004net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th4007net/inet/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
th4011net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th4018net/inet/tcp.cif (skb2->h.th->fin) 
th4020net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th4041net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th4090net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4096net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4121net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th4123net/inet/tcp.cunsigned long ptr = ntohs(th->urg_ptr);
th4127net/inet/tcp.cptr += th->seq;
th4153net/inet/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
th4162net/inet/tcp.cif (th->urg)
th4163net/inet/tcp.ctcp_check_urg(sk,th);
th4176net/inet/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
th4184net/inet/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th4413net/inet/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th4418net/inet/tcp.cnext_seq = len - 4*th->doff;
th4419net/inet/tcp.cif (th->fin)
th4424net/inet/tcp.cnext_seq += th->seq;
th4437net/inet/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
th4444net/inet/tcp.cif (th->rst)
th4456net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th4461net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4505net/inet/tcp.cstruct tcphdr *th;
th4529net/inet/tcp.cth = skb->h.th;
th4535net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4551net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) 
th4561net/inet/tcp.cth->seq = ntohl(th->seq);
th4569net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4600net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4645net/inet/tcp.cif(th->ack)  /* These use the socket TOS.. might want to be the received TOS */
th4646net/inet/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
th4655net/inet/tcp.cif(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR)
th4682net/inet/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && th->seq+1 == sk->acked_seq)
th4697net/inet/tcp.cif(th->ack)
th4700net/inet/tcp.cif(!tcp_ack(sk,th,saddr,len))
th4705net/inet/tcp.ctcp_reset(daddr, saddr, th,
th4711net/inet/tcp.cif(th->rst)
th4713net/inet/tcp.cif(!th->syn)
th4726net/inet/tcp.csk->acked_seq=th->seq+1;
th4727net/inet/tcp.csk->fin_seq=th->seq;
th4728net/inet/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
th4730net/inet/tcp.ctcp_options(sk,th);
th4731net/inet/tcp.csk->dummy_th.dest=th->source;
th4747net/inet/tcp.cif(th->syn && !th->rst)
th4752net/inet/tcp.csk->dummy_th.source==th->source &&
th4753net/inet/tcp.csk->dummy_th.dest==th->dest)
th4784net/inet/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
th4785net/inet/tcp.cafter(th->seq, sk->acked_seq) && !th->rst)
th4797net/inet/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4819net/inet/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
th4826net/inet/tcp.cif(th->rst)
th4833net/inet/tcp.cif(th->syn && !syn_ok)
th4835net/inet/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
th4844net/inet/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
th4852net/inet/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
th4865net/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);