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;
th408net/inet/tcp.cstruct tcphdr *th;
th426net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2));
th427net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th451net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th452net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th453net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th751net/inet/tcp.cstruct tcphdr *th;
th758net/inet/tcp.cth =(struct tcphdr *)header;
th759net/inet/tcp.csk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr);
th840net/inet/tcp.cif (before(counted, skb->h.th->seq))   /* Found a hole so stops here */
th842net/inet/tcp.csum = skb->len -(counted - skb->h.th->seq);  /* Length - header but start from where we are up to (avoid overlaps) */
th843net/inet/tcp.cif (skb->h.th->syn)
th848net/inet/tcp.cif (skb->h.th->syn) 
th868net/inet/tcp.cif (skb->h.th->urg)
th870net/inet/tcp.cif (amount && skb->h.th->psh) break;
th1014net/inet/tcp.cunsigned short tcp_check(struct tcphdr *th, int len,
th1086net/inet/tcp.c: "0"(sum), "c"(len), "S"(th)
th1096net/inet/tcp.cvoid tcp_send_check(struct tcphdr *th, unsigned long saddr, 
th1099net/inet/tcp.cth->check = 0;
th1100net/inet/tcp.cth->check = tcp_check(th, len, saddr, daddr);
th1112net/inet/tcp.cstruct tcphdr * th = skb->h.th;
th1118net/inet/tcp.csize = skb->len - ((unsigned char *) th - skb->data);
th1127net/inet/tcp.cskb, skb->data, th, skb->len);
th1140net/inet/tcp.cif(!th->syn && !th->fin) 
th1153net/inet/tcp.cskb->h.seq = ntohl(th->seq) + size - 4*th->doff;
th1169net/inet/tcp.cth->check = 0;
th1194net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th1195net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th1197net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th1293net/inet/tcp.cstruct tcphdr *th, unsigned long daddr)
th1350net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th1356net/inet/tcp.ct1->dest = th->source;
th1357net/inet/tcp.ct1->source = th->dest;
th1410net/inet/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
th1413net/inet/tcp.cmemcpy(th,(void *) &(sk->dummy_th), sizeof(*th));
th1414net/inet/tcp.cth->seq = htonl(sk->write_seq);
th1415net/inet/tcp.cth->psh =(push == 0) ? 1 : 0;
th1416net/inet/tcp.cth->doff = sizeof(*th)/4;
th1417net/inet/tcp.cth->ack = 1;
th1418net/inet/tcp.cth->fin = 0;
th1422net/inet/tcp.cth->ack_seq = htonl(sk->acked_seq);
th1424net/inet/tcp.cth->window = htons(sk->window);
th1426net/inet/tcp.creturn(sizeof(*th));
th1558net/inet/tcp.chdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data)
th1703net/inet/tcp.cskb->h.th =(struct tcphdr *) buff;
th2069net/inet/tcp.cif (before(*seq, skb->h.th->seq))
th2071net/inet/tcp.coffset = *seq - skb->h.th->seq;
th2072net/inet/tcp.cif (skb->h.th->syn)
th2076net/inet/tcp.cif (skb->h.th->fin)
th2184net/inet/tcp.cmemcpy_tofs(to,((unsigned char *)skb->h.th) +
th2185net/inet/tcp.cskb->h.th->doff*4 + offset, used);
th2207net/inet/tcp.cif (skb->h.th->fin)
th2301net/inet/tcp.cstruct tcphdr *th =(struct tcphdr *)&sk->dummy_th;
th2356net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2482net/inet/tcp.cstatic void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th,
th2494net/inet/tcp.cif(th->rst)
th2528net/inet/tcp.cmemcpy(t1, th, sizeof(*t1));
th2534net/inet/tcp.ct1->dest = th->source;
th2535net/inet/tcp.ct1->source = th->dest;
th2539net/inet/tcp.cif(th->ack)
th2542net/inet/tcp.ct1->seq = th->ack_seq;
th2548net/inet/tcp.cif(!th->syn)
th2549net/inet/tcp.ct1->ack_seq=htonl(th->seq);
th2551net/inet/tcp.ct1->ack_seq=htonl(th->seq+1);
th2577net/inet/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
th2580net/inet/tcp.cint length=(th->doff*4)-sizeof(struct tcphdr);
th2583net/inet/tcp.cptr = (unsigned char *)(th + 1);
th2603net/inet/tcp.cif(opsize==4 && th->syn)
th2615net/inet/tcp.cif (th->syn) 
th2662net/inet/tcp.cstruct tcphdr *th;
th2667net/inet/tcp.cth = skb->h.th;
th2678net/inet/tcp.ctcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl);
th2742net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq+1;
th2743net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq+1;
th2744net/inet/tcp.cnewsk->fin_seq = skb->h.th->seq;
th2761net/inet/tcp.cnewsk->dummy_th.source = skb->h.th->dest;
th2762net/inet/tcp.cnewsk->dummy_th.dest = skb->h.th->source;
th2781net/inet/tcp.cnewsk->acked_seq = skb->h.th->seq + 1;
th2782net/inet/tcp.cnewsk->copied_seq = skb->h.th->seq + 1;
th2833net/inet/tcp.ctcp_options(newsk,skb->h.th);
th2879net/inet/tcp.cmemcpy(t1, skb->h.th, sizeof(*t1));
th2884net/inet/tcp.ct1->dest = skb->h.th->source;
th2897net/inet/tcp.ct1->ack_seq = ntohl(skb->h.th->seq+1);
th3055net/inet/tcp.cstruct tcphdr *th;
th3067net/inet/tcp.cth = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2));
th3068net/inet/tcp.csize = skb->len - (((unsigned char *) th) - skb->data);
th3070net/inet/tcp.cth->ack_seq = ntohl(sk->acked_seq);
th3071net/inet/tcp.cth->window = ntohs(tcp_select_window(sk));
th3073net/inet/tcp.ctcp_send_check(th, sk->saddr, sk->daddr, size, sk);
th3097net/inet/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
th3116net/inet/tcp.cack = ntohl(th->ack_seq);
th3118net/inet/tcp.cif (ntohs(th->window) > sk->max_window) 
th3120net/inet/tcp.csk->max_window = ntohs(th->window);
th3173net/inet/tcp.cif (len != th->doff*4) 
th3180net/inet/tcp.cif (after(sk->window_seq, ack+ntohs(th->window))) 
th3204net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3260net/inet/tcp.csk->window_seq = ack + ntohs(th->window);
th3626net/inet/tcp.ctcp_options(sk,th);
th3627net/inet/tcp.csk->dummy_th.dest=th->source;
th3700net/inet/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
th3702net/inet/tcp.csk->fin_seq = th->seq + skb->len + th->syn + th->fin;
th3721net/inet/tcp.cif (th->rst)
th3792net/inet/tcp.cstruct tcphdr *th;
th3797net/inet/tcp.cth = skb->h.th;
th3798net/inet/tcp.cskb->len = len -(th->doff*4);
th3807net/inet/tcp.cif (skb->len == 0 && !th->fin && !th->urg && !th->psh) 
th3813net/inet/tcp.cif (!th->ack)
th3814net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr);
th3837net/inet/tcp.cnew_seq= th->seq + skb->len + th->syn;  /* Right edge of _data_ part of frame */
th3859net/inet/tcp.csk->acked_seq = new_seq + th->fin;
th3860net/inet/tcp.ctcp_reset(sk->saddr, sk->daddr, skb->h.th,
th3899net/inet/tcp.cprintk("skb1->h.th->seq = %ld: ", skb1->h.th->seq);
th3900net/inet/tcp.cprintk("skb->h.th->seq = %ld\n",skb->h.th->seq);
th3913net/inet/tcp.cif (th->seq==skb1->h.th->seq && skb->len>= skb1->len)
th3927net/inet/tcp.cif (after(th->seq+1, skb1->h.th->seq))
th3948net/inet/tcp.cth->ack_seq = th->seq + skb->len;
th3949net/inet/tcp.cif (th->syn) 
th3950net/inet/tcp.cth->ack_seq++;
th3951net/inet/tcp.cif (th->fin)
th3952net/inet/tcp.cth->ack_seq++;
th3966net/inet/tcp.cif ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) 
th3968net/inet/tcp.cif (before(th->seq, sk->acked_seq+1)) 
th3972net/inet/tcp.cif (after(th->ack_seq, sk->acked_seq)) 
th3974net/inet/tcp.cnewwindow = sk->window-(th->ack_seq - sk->acked_seq);
th3978net/inet/tcp.csk->acked_seq = th->ack_seq;
th3987net/inet/tcp.cif (skb->h.th->fin) 
th3989net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th3996net/inet/tcp.cif (before(skb2->h.th->seq, sk->acked_seq+1)) 
th3998net/inet/tcp.cif (after(skb2->h.th->ack_seq, sk->acked_seq))
th4001net/inet/tcp.c(skb2->h.th->ack_seq - sk->acked_seq);
th4005net/inet/tcp.csk->acked_seq = skb2->h.th->ack_seq;
th4012net/inet/tcp.cif (skb2->h.th->fin) 
th4014net/inet/tcp.ctcp_fin(skb,sk,skb->h.th);
th4035net/inet/tcp.csk->bytes_rcv > sk->max_unacked || th->fin) {
th4084net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4090net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4115net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
th4117net/inet/tcp.cunsigned long ptr = ntohs(th->urg_ptr);
th4121net/inet/tcp.cptr += th->seq;
th4147net/inet/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
th4156net/inet/tcp.cif (th->urg)
th4157net/inet/tcp.ctcp_check_urg(sk,th);
th4170net/inet/tcp.cptr = sk->urg_seq - th->seq + th->doff*4;
th4178net/inet/tcp.csk->urg_data = URG_VALID | *(ptr + (unsigned char *) th);
th4407net/inet/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
th4412net/inet/tcp.cnext_seq = len - 4*th->doff;
th4413net/inet/tcp.cif (th->fin)
th4418net/inet/tcp.cnext_seq += th->seq;
th4431net/inet/tcp.cif (!before(th->seq, sk->acked_seq + sk->window + 1))
th4438net/inet/tcp.cif (th->rst)
th4450net/inet/tcp.ctcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl);
th4455net/inet/tcp.ctcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr);
th4499net/inet/tcp.cstruct tcphdr *th;
th4523net/inet/tcp.cth = skb->h.th;
th4529net/inet/tcp.csk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4545net/inet/tcp.cif (tcp_check(th, len, saddr, daddr )) 
th4555net/inet/tcp.cth->seq = ntohl(th->seq);
th4563net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4594net/inet/tcp.ctcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255);
th4639net/inet/tcp.cif(th->ack)  /* These use the socket TOS.. might want to be the received TOS */
th4640net/inet/tcp.ctcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl);
th4649net/inet/tcp.cif(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR)
th4676net/inet/tcp.cif (sk->state == TCP_SYN_RECV && th->syn && th->seq+1 == sk->acked_seq)
th4691net/inet/tcp.cif(th->ack)
th4694net/inet/tcp.cif(!tcp_ack(sk,th,saddr,len))
th4699net/inet/tcp.ctcp_reset(daddr, saddr, th,
th4705net/inet/tcp.cif(th->rst)
th4707net/inet/tcp.cif(!th->syn)
th4720net/inet/tcp.csk->acked_seq=th->seq+1;
th4721net/inet/tcp.csk->fin_seq=th->seq;
th4722net/inet/tcp.ctcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr);
th4724net/inet/tcp.ctcp_options(sk,th);
th4725net/inet/tcp.csk->dummy_th.dest=th->source;
th4741net/inet/tcp.cif(th->syn && !th->rst)
th4746net/inet/tcp.csk->dummy_th.source==th->source &&
th4747net/inet/tcp.csk->dummy_th.dest==th->dest)
th4778net/inet/tcp.cif (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && 
th4779net/inet/tcp.cafter(th->seq, sk->acked_seq) && !th->rst)
th4791net/inet/tcp.csk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr);
th4813net/inet/tcp.cif(!tcp_sequence(sk,th,len,opt,saddr,dev))
th4820net/inet/tcp.cif(th->rst)
th4827net/inet/tcp.cif(th->syn && !syn_ok)
th4829net/inet/tcp.ctcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255);
th4838net/inet/tcp.cif(th->ack && !tcp_ack(sk,th,saddr,len))
th4846net/inet/tcp.ctcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl);
th4859net/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);