tag | line | file | source code |
th | 258 | drivers/net/slhc.c | struct tcphdr *th, *oth; |
th | 274 | drivers/net/slhc.c | th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); |
th | 275 | drivers/net/slhc.c | hlen = ip->ihl*4 + th->doff*4; |
th | 280 | drivers/net/slhc.c | if(th->syn || th->fin || th->rst || |
th | 281 | drivers/net/slhc.c | ! (th->ack)){ |
th | 303 | drivers/net/slhc.c | && th->source == cs->cs_tcp.source |
th | 304 | drivers/net/slhc.c | && th->dest == cs->cs_tcp.dest) |
th | 362 | drivers/net/slhc.c | || th->doff != cs->cs_tcp.doff |
th | 364 | drivers/net/slhc.c | || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ |
th | 374 | drivers/net/slhc.c | if(th->urg){ |
th | 375 | drivers/net/slhc.c | deltaS = ntohs(th->urg_ptr); |
th | 378 | drivers/net/slhc.c | } else if(th->urg_ptr != oth->urg_ptr){ |
th | 385 | drivers/net/slhc.c | if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){ |
th | 389 | drivers/net/slhc.c | if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){ |
th | 395 | drivers/net/slhc.c | if((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){ |
th | 442 | drivers/net/slhc.c | if(th->psh) |
th | 447 | drivers/net/slhc.c | deltaA = ntohs(th->check); |
th | 449 | drivers/net/slhc.c | memcpy(&cs->cs_tcp,th,20); |
th | 482 | drivers/net/slhc.c | memcpy(&cs->cs_tcp,th,20); |
th | 485 | drivers/net/slhc.c | if (th->doff > 5) |
th | 486 | drivers/net/slhc.c | memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4); |
th | 16 | include/asm-alpha/ipsum.h | extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr) |
th | 20 | include/asm-sparc/ipsum.h | extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr) |
th | 52 | include/linux/skbuff.h | struct tcphdr *th; |
th | 137 | include/net/tcp.h | extern void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
th | 582 | net/ipv4/ip_fw.c | struct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); |
th | 584 | net/ipv4/ip_fw.c | char *p, *data = (char *)&th[1]; |
th | 601 | net/ipv4/ip_fw.c | seq=ntohl(th->seq); |
th | 606 | net/ipv4/ip_fw.c | th->seq = htonl(seq + ftp->delta); |
th | 613 | net/ipv4/ip_fw.c | th->seq = htonl(seq + ftp->previous_delta); |
th | 853 | net/ipv4/ip_fw.c | struct tcphdr *th; |
th | 862 | net/ipv4/ip_fw.c | th = (struct tcphdr *)portptr; |
th | 867 | net/ipv4/ip_fw.c | if (ms->sawfin || th->fin) |
th | 874 | net/ipv4/ip_fw.c | tcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk); |
th | 898 | net/ipv4/ip_fw.c | struct tcphdr *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2)); |
th | 959 | net/ipv4/ip_fw.c | printk("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))); |
th | 961 | net/ipv4/ip_fw.c | ack_seq=ntohl(th->ack_seq); |
th | 966 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->delta); |
th | 973 | net/ipv4/ip_fw.c | th->ack_seq = htonl(ack_seq-ms->previous_delta); |
th | 645 | net/ipv4/tcp.c | struct tcphdr *th; |
th | 669 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2)); |
th | 722 | net/ipv4/tcp.c | th->ack_seq = ntohl(sk->acked_seq); |
th | 723 | net/ipv4/tcp.c | th->window = ntohs(tcp_select_window(sk)); |
th | 724 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
th | 1043 | net/ipv4/tcp.c | struct tcphdr *th; |
th | 1050 | net/ipv4/tcp.c | th =(struct tcphdr *)header; |
th | 1051 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr); |
th | 1129 | net/ipv4/tcp.c | if (before(counted, skb->h.th->seq)) /* Found a hole so stops here */ |
th | 1131 | net/ipv4/tcp.c | sum = skb->len -(counted - skb->h.th->seq); /* Length - header but start from where we are up to (avoid overlaps) */ |
th | 1132 | net/ipv4/tcp.c | if (skb->h.th->syn) |
th | 1137 | net/ipv4/tcp.c | if (skb->h.th->syn) |
th | 1157 | net/ipv4/tcp.c | if (skb->h.th->urg) |
th | 1159 | net/ipv4/tcp.c | if (amount && skb->h.th->psh) break; |
th | 1305 | net/ipv4/tcp.c | unsigned short tcp_check(struct tcphdr *th, int len, |
th | 1313 | net/ipv4/tcp.c | void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
th | 1316 | net/ipv4/tcp.c | th->check = 0; |
th | 1317 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
th | 1318 | net/ipv4/tcp.c | csum_partial((char *)th,len,0)); |
th | 1330 | net/ipv4/tcp.c | struct tcphdr * th = skb->h.th; |
th | 1336 | net/ipv4/tcp.c | size = skb->len - ((unsigned char *) th - skb->data); |
th | 1345 | net/ipv4/tcp.c | skb, skb->data, th, skb->len); |
th | 1358 | net/ipv4/tcp.c | if(!th->syn && !th->fin) |
th | 1371 | net/ipv4/tcp.c | skb->h.seq = ntohl(th->seq) + size - 4*th->doff; |
th | 1387 | net/ipv4/tcp.c | th->check = 0; |
th | 1412 | net/ipv4/tcp.c | th->ack_seq = ntohl(sk->acked_seq); |
th | 1413 | net/ipv4/tcp.c | th->window = ntohs(tcp_select_window(sk)); |
th | 1415 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
th | 1511 | net/ipv4/tcp.c | struct tcphdr *th, unsigned long daddr) |
th | 1565 | net/ipv4/tcp.c | memcpy(t1, th, sizeof(*t1)); |
th | 1571 | net/ipv4/tcp.c | t1->dest = th->source; |
th | 1572 | net/ipv4/tcp.c | t1->source = th->dest; |
th | 1625 | net/ipv4/tcp.c | extern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push) |
th | 1628 | net/ipv4/tcp.c | memcpy(th,(void *) &(sk->dummy_th), sizeof(*th)); |
th | 1629 | net/ipv4/tcp.c | th->seq = htonl(sk->write_seq); |
th | 1630 | net/ipv4/tcp.c | th->psh =(push == 0) ? 1 : 0; |
th | 1631 | net/ipv4/tcp.c | th->doff = sizeof(*th)/4; |
th | 1632 | net/ipv4/tcp.c | th->ack = 1; |
th | 1633 | net/ipv4/tcp.c | th->fin = 0; |
th | 1637 | net/ipv4/tcp.c | th->ack_seq = htonl(sk->acked_seq); |
th | 1639 | net/ipv4/tcp.c | th->window = htons(sk->window); |
th | 1641 | net/ipv4/tcp.c | return(sizeof(*th)); |
th | 1796 | net/ipv4/tcp.c | hdrlen = ((unsigned long)skb->h.th - (unsigned long)skb->data) |
th | 1935 | net/ipv4/tcp.c | skb->h.th =(struct tcphdr *)skb_put(skb,sizeof(struct tcphdr)); |
th | 1936 | net/ipv4/tcp.c | tmp = tcp_build_header(skb->h.th, sk, len-copy); |
th | 1948 | net/ipv4/tcp.c | skb->h.th->urg = 1; |
th | 1949 | net/ipv4/tcp.c | skb->h.th->urg_ptr = ntohs(copy); |
th | 2289 | net/ipv4/tcp.c | if (before(*seq, skb->h.th->seq)) |
th | 2291 | net/ipv4/tcp.c | offset = *seq - skb->h.th->seq; |
th | 2292 | net/ipv4/tcp.c | if (skb->h.th->syn) |
th | 2296 | net/ipv4/tcp.c | if (skb->h.th->fin) |
th | 2403 | net/ipv4/tcp.c | memcpy_toiovec(msg->msg_iov,((unsigned char *)skb->h.th) + |
th | 2404 | net/ipv4/tcp.c | skb->h.th->doff*4 + offset, used); |
th | 2425 | net/ipv4/tcp.c | if (skb->h.th->fin) |
th | 2532 | net/ipv4/tcp.c | struct tcphdr *th =(struct tcphdr *)&sk->dummy_th; |
th | 2590 | net/ipv4/tcp.c | memcpy(t1, th, sizeof(*t1)); |
th | 2685 | net/ipv4/tcp.c | static void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
th | 2697 | net/ipv4/tcp.c | if(th->rst) |
th | 2727 | net/ipv4/tcp.c | memcpy(t1, th, sizeof(*t1)); |
th | 2733 | net/ipv4/tcp.c | t1->dest = th->source; |
th | 2734 | net/ipv4/tcp.c | t1->source = th->dest; |
th | 2738 | net/ipv4/tcp.c | if(th->ack) |
th | 2741 | net/ipv4/tcp.c | t1->seq = th->ack_seq; |
th | 2747 | net/ipv4/tcp.c | if(!th->syn) |
th | 2748 | net/ipv4/tcp.c | t1->ack_seq=htonl(th->seq); |
th | 2750 | net/ipv4/tcp.c | t1->ack_seq=htonl(th->seq+1); |
th | 2776 | net/ipv4/tcp.c | static void tcp_options(struct sock *sk, struct tcphdr *th) |
th | 2779 | net/ipv4/tcp.c | int length=(th->doff*4)-sizeof(struct tcphdr); |
th | 2782 | net/ipv4/tcp.c | ptr = (unsigned char *)(th + 1); |
th | 2803 | net/ipv4/tcp.c | if(opsize==4 && th->syn) |
th | 2815 | net/ipv4/tcp.c | if (th->syn) |
th | 2869 | net/ipv4/tcp.c | struct tcphdr *th; |
th | 2874 | net/ipv4/tcp.c | th = skb->h.th; |
th | 2885 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
th | 2966 | net/ipv4/tcp.c | newsk->acked_seq = skb->h.th->seq+1; |
th | 2967 | net/ipv4/tcp.c | newsk->copied_seq = skb->h.th->seq+1; |
th | 2968 | net/ipv4/tcp.c | newsk->fin_seq = skb->h.th->seq; |
th | 2985 | net/ipv4/tcp.c | newsk->dummy_th.source = skb->h.th->dest; |
th | 2986 | net/ipv4/tcp.c | newsk->dummy_th.dest = skb->h.th->source; |
th | 3006 | net/ipv4/tcp.c | newsk->acked_seq = skb->h.th->seq + 1; |
th | 3007 | net/ipv4/tcp.c | newsk->copied_seq = skb->h.th->seq + 1; |
th | 3058 | net/ipv4/tcp.c | tcp_options(newsk,skb->h.th); |
th | 3105 | net/ipv4/tcp.c | memcpy(t1, skb->h.th, sizeof(*t1)); |
th | 3110 | net/ipv4/tcp.c | t1->dest = skb->h.th->source; |
th | 3123 | net/ipv4/tcp.c | t1->ack_seq = ntohl(skb->h.th->seq+1); |
th | 3271 | net/ipv4/tcp.c | struct tcphdr *th; |
th | 3282 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |
th | 3283 | net/ipv4/tcp.c | size = skb->len - (((unsigned char *) th) - skb->data); |
th | 3285 | net/ipv4/tcp.c | th->ack_seq = ntohl(sk->acked_seq); |
th | 3286 | net/ipv4/tcp.c | th->window = ntohs(tcp_select_window(sk)); |
th | 3288 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
th | 3312 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
th | 3331 | net/ipv4/tcp.c | ack = ntohl(th->ack_seq); |
th | 3333 | net/ipv4/tcp.c | if (ntohs(th->window) > sk->max_window) |
th | 3335 | net/ipv4/tcp.c | sk->max_window = ntohs(th->window); |
th | 3388 | net/ipv4/tcp.c | if (len != th->doff*4) |
th | 3395 | net/ipv4/tcp.c | if (after(sk->window_seq, ack+ntohs(th->window))) |
th | 3419 | net/ipv4/tcp.c | sk->window_seq = ack + ntohs(th->window); |
th | 3475 | net/ipv4/tcp.c | sk->window_seq = ack + ntohs(th->window); |
th | 3841 | net/ipv4/tcp.c | tcp_options(sk,th); |
th | 3842 | net/ipv4/tcp.c | sk->dummy_th.dest=th->source; |
th | 3915 | net/ipv4/tcp.c | static int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th) |
th | 3917 | net/ipv4/tcp.c | sk->fin_seq = th->seq + skb->len + th->syn + th->fin; |
th | 3935 | net/ipv4/tcp.c | if (th->rst) |
th | 4006 | net/ipv4/tcp.c | struct tcphdr *th; |
th | 4010 | net/ipv4/tcp.c | th = skb->h.th; |
th | 4011 | net/ipv4/tcp.c | skb_pull(skb,th->doff*4); |
th | 4012 | net/ipv4/tcp.c | skb_trim(skb,len-(th->doff*4)); |
th | 4021 | net/ipv4/tcp.c | if (skb->len == 0 && !th->fin) |
th | 4027 | net/ipv4/tcp.c | if (!th->ack) |
th | 4028 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr); |
th | 4051 | net/ipv4/tcp.c | new_seq= th->seq + skb->len + th->syn; /* Right edge of _data_ part of frame */ |
th | 4073 | net/ipv4/tcp.c | sk->acked_seq = new_seq + th->fin; |
th | 4074 | net/ipv4/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
th | 4113 | net/ipv4/tcp.c | printk("skb1->h.th->seq = %d: ", skb1->h.th->seq); |
th | 4114 | net/ipv4/tcp.c | printk("skb->h.th->seq = %d\n",skb->h.th->seq); |
th | 4127 | net/ipv4/tcp.c | if (th->seq==skb1->h.th->seq && skb->len>= skb1->len) |
th | 4141 | net/ipv4/tcp.c | if (after(th->seq+1, skb1->h.th->seq)) |
th | 4162 | net/ipv4/tcp.c | th->ack_seq = th->seq + skb->len; |
th | 4163 | net/ipv4/tcp.c | if (th->syn) |
th | 4164 | net/ipv4/tcp.c | th->ack_seq++; |
th | 4165 | net/ipv4/tcp.c | if (th->fin) |
th | 4166 | net/ipv4/tcp.c | th->ack_seq++; |
th | 4180 | net/ipv4/tcp.c | if ((!dup_dumped && (skb1 == NULL || skb1->acked)) || before(th->seq, sk->acked_seq+1)) |
th | 4182 | net/ipv4/tcp.c | if (before(th->seq, sk->acked_seq+1)) |
th | 4186 | net/ipv4/tcp.c | if (after(th->ack_seq, sk->acked_seq)) |
th | 4188 | net/ipv4/tcp.c | newwindow = sk->window-(th->ack_seq - sk->acked_seq); |
th | 4192 | net/ipv4/tcp.c | sk->acked_seq = th->ack_seq; |
th | 4201 | net/ipv4/tcp.c | if (skb->h.th->fin) |
th | 4203 | net/ipv4/tcp.c | tcp_fin(skb,sk,skb->h.th); |
th | 4210 | net/ipv4/tcp.c | if (before(skb2->h.th->seq, sk->acked_seq+1)) |
th | 4212 | net/ipv4/tcp.c | if (after(skb2->h.th->ack_seq, sk->acked_seq)) |
th | 4215 | net/ipv4/tcp.c | (skb2->h.th->ack_seq - sk->acked_seq); |
th | 4219 | net/ipv4/tcp.c | sk->acked_seq = skb2->h.th->ack_seq; |
th | 4226 | net/ipv4/tcp.c | if (skb2->h.th->fin) |
th | 4228 | net/ipv4/tcp.c | tcp_fin(skb,sk,skb->h.th); |
th | 4249 | net/ipv4/tcp.c | sk->bytes_rcv > sk->max_unacked || th->fin) { |
th | 4298 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
th | 4304 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
th | 4329 | net/ipv4/tcp.c | static void tcp_check_urg(struct sock * sk, struct tcphdr * th) |
th | 4331 | net/ipv4/tcp.c | u32 ptr = ntohs(th->urg_ptr); |
th | 4335 | net/ipv4/tcp.c | ptr += th->seq; |
th | 4361 | net/ipv4/tcp.c | extern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th, |
th | 4370 | net/ipv4/tcp.c | if (th->urg) |
th | 4371 | net/ipv4/tcp.c | tcp_check_urg(sk,th); |
th | 4384 | net/ipv4/tcp.c | ptr = sk->urg_seq - th->seq + th->doff*4; |
th | 4392 | net/ipv4/tcp.c | sk->urg_data = URG_VALID | *(ptr + (unsigned char *) th); |
th | 4638 | net/ipv4/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
th | 4643 | net/ipv4/tcp.c | next_seq = len - 4*th->doff; |
th | 4644 | net/ipv4/tcp.c | if (th->fin) |
th | 4649 | net/ipv4/tcp.c | next_seq += th->seq; |
th | 4662 | net/ipv4/tcp.c | if (!before(th->seq, sk->acked_seq + sk->window + 1)) |
th | 4669 | net/ipv4/tcp.c | if (th->rst) |
th | 4681 | net/ipv4/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
th | 4686 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
th | 4731 | net/ipv4/tcp.c | struct tcphdr *th; |
th | 4742 | net/ipv4/tcp.c | th = skb->h.th; |
th | 4748 | net/ipv4/tcp.c | if(saddr==th_cache_saddr && daddr==th_cache_daddr && th->dest==th_cache_dport && th->source==th_cache_sport) |
th | 4754 | net/ipv4/tcp.c | if(sk!=get_sock(&tcp_prot,th->dest, saddr, th->source, daddr)) |
th | 4759 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
th | 4762 | net/ipv4/tcp.c | th_cache_dport=th->dest; |
th | 4763 | net/ipv4/tcp.c | th_cache_sport=th->source; |
th | 4789 | net/ipv4/tcp.c | (skb->ip_summed && tcp_check(th, len, saddr, daddr, skb->csum ))|| |
th | 4790 | net/ipv4/tcp.c | (!skb->ip_summed && tcp_check(th, len, saddr, daddr, csum_partial((char *)th, len, 0))) |
th | 4801 | net/ipv4/tcp.c | th->seq = ntohl(th->seq); |
th | 4809 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
th | 4839 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
th | 4877 | net/ipv4/tcp.c | if(th->ack) /* These use the socket TOS.. might want to be the received TOS */ |
th | 4878 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl); |
th | 4887 | net/ipv4/tcp.c | if(th->rst || !th->syn || th->ack || ip_chk_addr(daddr)!=IS_MYADDR) |
th | 4914 | net/ipv4/tcp.c | if (sk->state == TCP_SYN_RECV && th->syn && th->seq+1 == sk->acked_seq) |
th | 4929 | net/ipv4/tcp.c | if(th->ack) |
th | 4932 | net/ipv4/tcp.c | if(!tcp_ack(sk,th,saddr,len)) |
th | 4937 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, |
th | 4943 | net/ipv4/tcp.c | if(th->rst) |
th | 4945 | net/ipv4/tcp.c | if(!th->syn) |
th | 4958 | net/ipv4/tcp.c | sk->acked_seq=th->seq+1; |
th | 4959 | net/ipv4/tcp.c | sk->fin_seq=th->seq; |
th | 4960 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq,sk->acked_seq,sk,th,sk->daddr); |
th | 4962 | net/ipv4/tcp.c | tcp_options(sk,th); |
th | 4963 | net/ipv4/tcp.c | sk->dummy_th.dest=th->source; |
th | 4979 | net/ipv4/tcp.c | if(th->syn && !th->rst) |
th | 4984 | net/ipv4/tcp.c | sk->dummy_th.source==th->source && |
th | 4985 | net/ipv4/tcp.c | sk->dummy_th.dest==th->dest) |
th | 5016 | net/ipv4/tcp.c | if (sk->state == TCP_TIME_WAIT && th->syn && sk->dead && |
th | 5017 | net/ipv4/tcp.c | after(th->seq, sk->acked_seq) && !th->rst) |
th | 5029 | net/ipv4/tcp.c | sk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
th | 5051 | net/ipv4/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
th | 5058 | net/ipv4/tcp.c | if(th->rst) |
th | 5065 | net/ipv4/tcp.c | if(th->syn && !syn_ok) |
th | 5067 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255); |
th | 5076 | net/ipv4/tcp.c | if(th->ack && !tcp_ack(sk,th,saddr,len)) |
th | 5084 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
th | 5111 | net/ipv4/tcp.c | if(tcp_urg(sk, th, saddr, len)) |
th | 5177 | net/ipv4/tcp.c | struct tcphdr *th; |
th | 5196 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |
th | 5202 | net/ipv4/tcp.c | buff = sock_wmalloc(sk, win_size + th->doff * 4 + |
th | 5238 | net/ipv4/tcp.c | nth = (struct tcphdr *) skb_put(buff,th->doff*4); |
th | 5240 | net/ipv4/tcp.c | memcpy(nth, th, th->doff * 4); |
th | 5256 | net/ipv4/tcp.c | (iph->ihl << 2) + th->doff * 4; |
th | 5275 | net/ipv4/tcp.c | th->check = 0; |
th | 5282 | net/ipv4/tcp.c | th->seq = htonl(sk->sent_seq); |
th | 5283 | net/ipv4/tcp.c | if (th->urg) |
th | 5287 | net/ipv4/tcp.c | urg_ptr = ntohs(th->urg_ptr); |
th | 5289 | net/ipv4/tcp.c | th->urg = 0; |
th | 5293 | net/ipv4/tcp.c | th->urg_ptr = htons(urg_ptr); |
th | 5298 | net/ipv4/tcp.c | if(th->urg && ntohs(th->urg_ptr) < win_size) |