| tag | line | file | source code | 
| iph | 113 | arch/alpha/lib/checksum.c | unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl) | 
| iph | 115 | arch/alpha/lib/checksum.c | return ~do_csum(iph,ihl*4); | 
| iph | 1146 | drivers/net/ppp.c | struct iphdr *iph = (struct iphdr *) c; | 
| iph | 1148 | drivers/net/ppp.c | iph->saddr, iph->daddr, count)) | 
| iph | 1815 | drivers/net/ppp.c | struct iphdr *iph = (struct iphdr *)skb->data; | 
| iph | 1817 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, | 
| iph | 1818 | drivers/net/ppp.c | (int) iph->daddr, (int) iph->protocol)) | 
| iph | 125 | drivers/net/tunnel.c | struct iphdr *iph;    /* Our new IP header */ | 
| iph | 161 | drivers/net/tunnel.c | iph=(struct iphdr *)skb->data; | 
| iph | 162 | drivers/net/tunnel.c | if ( iph->version != 4 )  | 
| iph | 167 | drivers/net/tunnel.c | printk("%s: Bad IP packet: ip version %d\n", dev->name, iph->version); | 
| iph | 178 | drivers/net/tunnel.c | if ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr )  | 
| iph | 189 | drivers/net/tunnel.c | if ( iph->daddr == dev->pa_addr )  | 
| iph | 199 | drivers/net/tunnel.c | print_ip(iph); | 
| iph | 219 | drivers/net/tunnel.c | iph=skb2->h.iph=(struct iphdr *)skb2->data; | 
| iph | 220 | drivers/net/tunnel.c | memcpy(skb2->h.iph, skb->data, ip_header_len ); | 
| iph | 226 | drivers/net/tunnel.c | ++iph->ttl;  /* Note: ip_forward() decrements ttl, so compensate */ | 
| iph | 227 | drivers/net/tunnel.c | iph->saddr = dev->pa_addr; | 
| iph | 228 | drivers/net/tunnel.c | iph->daddr = dev->pa_dstaddr; | 
| iph | 229 | drivers/net/tunnel.c | iph->protocol = IPPROTO_IPIP; | 
| iph | 230 | drivers/net/tunnel.c | iph->ihl = 5; | 
| iph | 231 | drivers/net/tunnel.c | iph->tot_len = htons(skb2->len); | 
| iph | 232 | drivers/net/tunnel.c | iph->frag_off = 0; | 
| iph | 236 | drivers/net/tunnel.c | iph->check = 0; | 
| iph | 237 | drivers/net/tunnel.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); | 
| iph | 241 | drivers/net/tunnel.c | print_ip(iph); | 
| iph | 247 | drivers/net/tunnel.c | if(ip_forward(skb2, dev, 0, iph->daddr, 0)) | 
| iph | 9 | include/asm-alpha/checksum.h | extern unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl); | 
| iph | 45 | include/asm-i386/checksum.h | static inline unsigned short ip_fast_csum(unsigned char * iph, | 
| iph | 68 | include/asm-i386/checksum.h | : "=&r" (sum), "=&r" (iph), "=&r" (ihl) | 
| iph | 69 | include/asm-i386/checksum.h | : "1" (iph), "2" (ihl)); | 
| iph | 54 | include/linux/skbuff.h | struct iphdr  *iph; | 
| iph | 64 | include/net/ip.h | struct iphdr  *iph;    /* pointer to IP header      */ | 
| iph | 241 | net/ethernet/eth.c | struct iphdr *iph; | 
| iph | 256 | net/ethernet/eth.c | iph=(struct iphdr*)(src+14);  /* 14 = Rx_addr+Tx_addr+type_field */ | 
| iph | 257 | net/ethernet/eth.c | if (ntohs(iph->tot_len)-sizeof(struct iphdr) <= length) | 
| iph | 258 | net/ethernet/eth.c | length=ntohs(iph->tot_len)-sizeof(struct iphdr); | 
| iph | 168 | net/ipv4/icmp.c | struct iphdr *iph; | 
| iph | 180 | net/ipv4/icmp.c | iph = (struct iphdr *) skb_in->data; | 
| iph | 193 | net/ipv4/icmp.c | atype=ip_chk_addr(iph->daddr); | 
| iph | 201 | net/ipv4/icmp.c | if(ntohs(iph->frag_off)&IP_OFFSET) | 
| iph | 215 | net/ipv4/icmp.c | if(iph->protocol==IPPROTO_ICMP) | 
| iph | 217 | net/ipv4/icmp.c | icmph = (struct icmphdr *) ((char *) iph + | 
| iph | 218 | net/ipv4/icmp.c | 4 * iph->ihl); | 
| iph | 302 | net/ipv4/icmp.c | if (iph->daddr != our_addr && ip_chk_addr(iph->daddr) == IS_MYADDR) | 
| iph | 303 | net/ipv4/icmp.c | our_addr = iph->daddr; | 
| iph | 304 | net/ipv4/icmp.c | offset = ip_build_header(skb, our_addr, iph->saddr, | 
| iph | 338 | net/ipv4/icmp.c | memcpy(icmph + 1, iph, sizeof(struct iphdr) + 8); | 
| iph | 357 | net/ipv4/icmp.c | struct iphdr *iph; | 
| iph | 362 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); | 
| iph | 373 | net/ipv4/icmp.c | in_ntoa(iph->daddr), ntohs(iph->protocol)); | 
| iph | 381 | net/ipv4/icmp.c | in_ntoa(iph->daddr)); | 
| iph | 386 | net/ipv4/icmp.c | printk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr)); | 
| iph | 397 | net/ipv4/icmp.c | hash = iph->protocol & (MAX_INET_PROTOS -1); | 
| iph | 417 | net/ipv4/icmp.c | if (iph->protocol == ipprot->protocol && ipprot->err_handler)  | 
| iph | 420 | net/ipv4/icmp.c | iph->daddr, iph->saddr, ipprot); | 
| iph | 439 | net/ipv4/icmp.c | struct iphdr *iph; | 
| iph | 446 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); | 
| iph | 447 | net/ipv4/icmp.c | ip = iph->daddr; | 
| iph | 220 | net/ipv4/ip.c | struct iphdr *iph; | 
| iph | 314 | net/ipv4/ip.c | iph=(struct iphdr *)skb_put(skb,sizeof(struct iphdr)); | 
| iph | 316 | net/ipv4/ip.c | iph->version  = 4; | 
| iph | 317 | net/ipv4/ip.c | iph->ihl      = 5; | 
| iph | 318 | net/ipv4/ip.c | iph->tos      = tos; | 
| iph | 319 | net/ipv4/ip.c | iph->frag_off = 0; | 
| iph | 320 | net/ipv4/ip.c | iph->ttl      = ttl; | 
| iph | 321 | net/ipv4/ip.c | iph->daddr    = daddr; | 
| iph | 322 | net/ipv4/ip.c | iph->saddr    = saddr; | 
| iph | 323 | net/ipv4/ip.c | iph->protocol = type; | 
| iph | 324 | net/ipv4/ip.c | skb->ip_hdr   = iph; | 
| iph | 334 | net/ipv4/ip.c | void ip_send_check(struct iphdr *iph) | 
| iph | 336 | net/ipv4/ip.c | iph->check = 0; | 
| iph | 337 | net/ipv4/ip.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); | 
| iph | 382 | net/ipv4/ip.c | static struct ipq *ip_find(struct iphdr *iph) | 
| iph | 391 | net/ipv4/ip.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && | 
| iph | 392 | net/ipv4/ip.c | iph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) | 
| iph | 449 | net/ipv4/ip.c | kfree_s(qp->iph, 64 + 8); | 
| iph | 492 | net/ipv4/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) | 
| iph | 510 | net/ipv4/ip.c | ihlen = iph->ihl * 4; | 
| iph | 511 | net/ipv4/ip.c | qp->iph = (struct iphdr *) kmalloc(64 + 8, GFP_ATOMIC); | 
| iph | 512 | net/ipv4/ip.c | if (qp->iph == NULL) | 
| iph | 519 | net/ipv4/ip.c | memcpy(qp->iph, iph, ihlen + 8); | 
| iph | 583 | net/ipv4/ip.c | struct iphdr *iph; | 
| iph | 608 | net/ipv4/ip.c | memcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen); | 
| iph | 634 | net/ipv4/ip.c | iph = skb->h.iph; | 
| iph | 635 | net/ipv4/ip.c | iph->frag_off = 0; | 
| iph | 636 | net/ipv4/ip.c | iph->tot_len = htons((iph->ihl * 4) + count); | 
| iph | 637 | net/ipv4/ip.c | skb->ip_hdr = iph; | 
| iph | 648 | net/ipv4/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) | 
| iph | 661 | net/ipv4/ip.c | qp = ip_find(iph); | 
| iph | 664 | net/ipv4/ip.c | offset = ntohs(iph->frag_off); | 
| iph | 695 | net/ipv4/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) | 
| iph | 708 | net/ipv4/ip.c | ihl = iph->ihl * 4; | 
| iph | 709 | net/ipv4/ip.c | end = offset + ntohs(iph->tot_len) - ihl; | 
| iph | 844 | net/ipv4/ip.c | struct iphdr *iph; | 
| iph | 858 | net/ipv4/ip.c | iph = (struct iphdr *) (raw + dev->hard_header_len);   | 
| iph | 859 | net/ipv4/ip.c | skb->ip_hdr = iph; | 
| iph | 861 | net/ipv4/ip.c | iph = skb->ip_hdr; | 
| iph | 868 | net/ipv4/ip.c | hlen = iph->ihl * 4; | 
| iph | 869 | net/ipv4/ip.c | left = ntohs(iph->tot_len) - hlen;  /* Space per frame */ | 
| iph | 878 | net/ipv4/ip.c | if (ntohs(iph->frag_off) & IP_DF) | 
| iph | 912 | net/ipv4/ip.c | offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; | 
| iph | 987 | net/ipv4/ip.c | iph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/); | 
| iph | 988 | net/ipv4/ip.c | iph->frag_off = htons((offset >> 3)); | 
| iph | 994 | net/ipv4/ip.c | iph->frag_off |= htons(IP_MF); | 
| iph | 1020 | net/ipv4/ip.c | struct iphdr *iph;  /* Our header */ | 
| iph | 1036 | net/ipv4/ip.c | fw_res=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0); | 
| iph | 1062 | net/ipv4/ip.c | iph = skb->h.iph; | 
| iph | 1063 | net/ipv4/ip.c | iph->ttl--; | 
| iph | 1071 | net/ipv4/ip.c | iph->check = ntohs(iph->check) + 0x0100; | 
| iph | 1072 | net/ipv4/ip.c | if ((iph->check & 0xFF00) == 0) | 
| iph | 1073 | net/ipv4/ip.c | iph->check++;    /* carry overflow */ | 
| iph | 1074 | net/ipv4/ip.c | iph->check = htons(iph->check); | 
| iph | 1076 | net/ipv4/ip.c | if (iph->ttl <= 0) | 
| iph | 1154 | net/ipv4/ip.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && (rt->rt_flags&RTF_MODIFIED)) | 
| iph | 1246 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); | 
| iph | 1254 | net/ipv4/ip.c | if(iph->tos & IPTOS_LOWDELAY) | 
| iph | 1256 | net/ipv4/ip.c | else if(iph->tos & IPTOS_THROUGHPUT) | 
| iph | 1286 | net/ipv4/ip.c | struct iphdr *iph = skb->h.iph; | 
| iph | 1305 | net/ipv4/ip.c | skb->ip_hdr = iph; | 
| iph | 1320 | net/ipv4/ip.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0 | 
| iph | 1321 | net/ipv4/ip.c | || skb->len < ntohs(iph->tot_len)) | 
| iph | 1334 | net/ipv4/ip.c | skb_trim(skb,ntohs(iph->tot_len)); | 
| iph | 1342 | net/ipv4/ip.c | if ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))<1) | 
| iph | 1358 | net/ipv4/ip.c | target_addr = iph->daddr; | 
| iph | 1360 | net/ipv4/ip.c | if (iph->ihl != 5) | 
| iph | 1372 | net/ipv4/ip.c | int opt_space=4*(iph->ihl-5); | 
| iph | 1414 | net/ipv4/ip.c | if (iph->daddr!=skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0)  | 
| iph | 1418 | net/ipv4/ip.c | if(ip_chk_addr(iph->daddr)) | 
| iph | 1434 | net/ipv4/ip.c | if(ip_chk_addr(iph->daddr)) | 
| iph | 1463 | net/ipv4/ip.c | if(iph->frag_off) | 
| iph | 1465 | net/ipv4/ip.c | if (iph->frag_off & htons(IP_MF)) | 
| iph | 1471 | net/ipv4/ip.c | if (iph->frag_off & htons(IP_OFFSET)) | 
| iph | 1487 | net/ipv4/ip.c | if ( iph->daddr == skb->dev->pa_addr || (brd = ip_chk_addr(iph->daddr)) != 0) | 
| iph | 1491 | net/ipv4/ip.c | if(brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK)) | 
| iph | 1504 | net/ipv4/ip.c | if(ip_mc->multiaddr==iph->daddr) | 
| iph | 1518 | net/ipv4/ip.c | struct iphdr *iph=skb->h.iph; | 
| iph | 1519 | net/ipv4/ip.c | if(ip_forward(skb, dev, is_frag|4, iph->daddr, 0)) | 
| iph | 1530 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); | 
| iph | 1540 | net/ipv4/ip.c | skb=ip_defrag(iph,skb,dev); | 
| iph | 1544 | net/ipv4/ip.c | iph=skb->h.iph; | 
| iph | 1551 | net/ipv4/ip.c | skb->ip_hdr = iph; | 
| iph | 1552 | net/ipv4/ip.c | skb->h.raw += iph->ihl*4; | 
| iph | 1560 | net/ipv4/ip.c | hash = iph->protocol & (SOCK_ARRAY_SIZE-1); | 
| iph | 1570 | net/ipv4/ip.c | raw_sk=get_sock_raw(raw_sk, hash,  iph->saddr, iph->daddr); | 
| iph | 1576 | net/ipv4/ip.c | sknext=get_sock_raw(raw_sk->next, hash, iph->saddr, iph->daddr); | 
| iph | 1582 | net/ipv4/ip.c | raw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr); | 
| iph | 1601 | net/ipv4/ip.c | hash = iph->protocol & (MAX_INET_PROTOS -1); | 
| iph | 1606 | net/ipv4/ip.c | if (ipprot->protocol != iph->protocol) | 
| iph | 1633 | net/ipv4/ip.c | ipprot->handler(skb2, dev, NULL, iph->daddr, | 
| iph | 1634 | net/ipv4/ip.c | (ntohs(iph->tot_len) - (iph->ihl * 4)), | 
| iph | 1635 | net/ipv4/ip.c | iph->saddr, 0, ipprot); | 
| iph | 1647 | net/ipv4/ip.c | raw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr); | 
| iph | 1746 | net/ipv4/ip.c | struct iphdr *iph; | 
| iph | 1777 | net/ipv4/ip.c | iph = (struct iphdr *)ptr;   | 
| iph | 1778 | net/ipv4/ip.c | skb->ip_hdr = iph; | 
| iph | 1780 | net/ipv4/ip.c | iph = skb->ip_hdr; | 
| iph | 1782 | net/ipv4/ip.c | iph->tot_len = ntohs(skb->len-(((unsigned char *)iph)-skb->data)); | 
| iph | 1785 | net/ipv4/ip.c | if(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) != 1) | 
| iph | 1795 | net/ipv4/ip.c | iph->id      = htons(ip_id_count++); | 
| iph | 1811 | net/ipv4/ip.c | if(ntohs(iph->tot_len)> dev->mtu) | 
| iph | 1823 | net/ipv4/ip.c | ip_send_check(iph); | 
| iph | 1887 | net/ipv4/ip.c | ip_fw_chk(iph,dev,ip_acct_chain,IP_FW_F_ACCEPT,1); | 
| iph | 1896 | net/ipv4/ip.c | if (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK)) | 
| iph | 1900 | net/ipv4/ip.c | if(iph->daddr==IGMP_ALL_HOSTS) | 
| iph | 1907 | net/ipv4/ip.c | if(imc->multiaddr==iph->daddr) | 
| iph | 1925 | net/ipv4/ip.c | if((dev->flags&IFF_BROADCAST) && (iph->daddr==dev->pa_brdaddr||iph->daddr==0xFFFFFFFF) && !(dev->flags&IFF_LOOPBACK)) | 
| iph | 2372 | net/ipv4/ip.c | struct iphdr *iph; | 
| iph | 2493 | net/ipv4/ip.c | skb->ip_hdr=iph=(struct iphdr *)skb_put(skb,length); | 
| iph | 2496 | net/ipv4/ip.c | iph->version=4; | 
| iph | 2497 | net/ipv4/ip.c | iph->ihl=5; | 
| iph | 2498 | net/ipv4/ip.c | iph->tos=sk->ip_tos; | 
| iph | 2499 | net/ipv4/ip.c | iph->tot_len = htons(length); | 
| iph | 2500 | net/ipv4/ip.c | iph->id=htons(ip_id_count++); | 
| iph | 2501 | net/ipv4/ip.c | iph->frag_off = 0; | 
| iph | 2502 | net/ipv4/ip.c | iph->ttl=sk->ip_ttl; | 
| iph | 2503 | net/ipv4/ip.c | iph->protocol=type; | 
| iph | 2504 | net/ipv4/ip.c | iph->saddr=saddr; | 
| iph | 2505 | net/ipv4/ip.c | iph->daddr=daddr; | 
| iph | 2506 | net/ipv4/ip.c | iph->check=0; | 
| iph | 2507 | net/ipv4/ip.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); | 
| iph | 2508 | net/ipv4/ip.c | getfrag(frag,saddr,(void *)(iph+1),0, length-20); | 
| iph | 2511 | net/ipv4/ip.c | getfrag(frag,saddr,(void *)iph,0,length); | 
| iph | 2636 | net/ipv4/ip.c | skb->ip_hdr = iph = (struct iphdr *)data; | 
| iph | 2645 | net/ipv4/ip.c | iph->version = 4; | 
| iph | 2646 | net/ipv4/ip.c | iph->ihl = 5; /* ugh */ | 
| iph | 2647 | net/ipv4/ip.c | iph->tos = sk->ip_tos; | 
| iph | 2648 | net/ipv4/ip.c | iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); | 
| iph | 2649 | net/ipv4/ip.c | iph->id = id; | 
| iph | 2650 | net/ipv4/ip.c | iph->frag_off = htons(offset>>3); | 
| iph | 2651 | net/ipv4/ip.c | iph->frag_off |= mf; | 
| iph | 2654 | net/ipv4/ip.c | iph->ttl = sk->ip_mc_ttl; | 
| iph | 2657 | net/ipv4/ip.c | iph->ttl = sk->ip_ttl; | 
| iph | 2658 | net/ipv4/ip.c | iph->protocol = type; | 
| iph | 2659 | net/ipv4/ip.c | iph->check = 0; | 
| iph | 2660 | net/ipv4/ip.c | iph->saddr = saddr; | 
| iph | 2661 | net/ipv4/ip.c | iph->daddr = daddr; | 
| iph | 2662 | net/ipv4/ip.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); | 
| iph | 2663 | net/ipv4/ip.c | data += iph->ihl*4; | 
| iph | 2684 | net/ipv4/ip.c | ip_fw_chk(iph, dev, ip_acct_chain, IP_FW_F_ACCEPT, 1); | 
| iph | 546 | net/ipv4/ip_fw.c | struct iphdr *iph = skb->h.iph; | 
| iph | 547 | net/ipv4/ip_fw.c | struct tcphdr *th = (struct tcphdr *)&(((char *)iph)[iph->ihl*4]); | 
| iph | 606 | net/ipv4/ip_fw.c | ms->dst      = iph->daddr; | 
| iph | 684 | net/ipv4/ip_fw.c | struct iphdr  *iph = skb->h.iph; | 
| iph | 693 | net/ipv4/ip_fw.c | if (iph->protocol!=IPPROTO_UDP && iph->protocol!=IPPROTO_TCP) | 
| iph | 700 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); | 
| iph | 705 | net/ipv4/ip_fw.c | strProt[iph->protocol==IPPROTO_TCP], | 
| iph | 706 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), | 
| iph | 707 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); | 
| iph | 711 | net/ipv4/ip_fw.c | if (iph->protocol == ms->protocol && | 
| iph | 712 | net/ipv4/ip_fw.c | iph->saddr == ms->src   && iph->daddr == ms->dst && | 
| iph | 733 | net/ipv4/ip_fw.c | ms->protocol = iph->protocol; | 
| iph | 734 | net/ipv4/ip_fw.c | ms->src      = iph->saddr; | 
| iph | 735 | net/ipv4/ip_fw.c | ms->dst      = iph->daddr; | 
| iph | 745 | net/ipv4/ip_fw.c | iph->saddr = dev->pa_addr; /* my own address */ | 
| iph | 752 | net/ipv4/ip_fw.c | if (iph->protocol==IPPROTO_UDP)  | 
| iph | 755 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); | 
| iph | 764 | net/ipv4/ip_fw.c | iph = skb->h.iph; | 
| iph | 765 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); | 
| iph | 779 | net/ipv4/ip_fw.c | tcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk); | 
| iph | 782 | net/ipv4/ip_fw.c | ip_send_check(iph); | 
| iph | 800 | net/ipv4/ip_fw.c | struct iphdr  *iph = skb_ptr->h.iph; | 
| iph | 803 | net/ipv4/ip_fw.c | struct tcphdr   *th = (struct tcphdr *)(skb_ptr->h.raw+(iph->ihl<<2)); | 
| iph | 805 | net/ipv4/ip_fw.c | if (iph->protocol!=IPPROTO_UDP && iph->protocol!=IPPROTO_TCP) | 
| iph | 808 | net/ipv4/ip_fw.c | portptr = (unsigned short *)&(((char *)iph)[iph->ihl*4]); | 
| iph | 815 | net/ipv4/ip_fw.c | strProt[iph->protocol==IPPROTO_TCP], | 
| iph | 816 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), | 
| iph | 817 | net/ipv4/ip_fw.c | ntohl(iph->daddr), ntohs(portptr[1])); | 
| iph | 831 | net/ipv4/ip_fw.c | if (iph->protocol==ms->protocol && | 
| iph | 832 | net/ipv4/ip_fw.c | (iph->saddr==ms->dst || iph->protocol==IPPROTO_UDP) &&  | 
| iph | 837 | net/ipv4/ip_fw.c | iph->daddr = ms->src; | 
| iph | 843 | net/ipv4/ip_fw.c | if (iph->protocol==IPPROTO_UDP) | 
| iph | 844 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); | 
| iph | 856 | net/ipv4/ip_fw.c | tcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb_ptr->sk); | 
| iph | 858 | net/ipv4/ip_fw.c | ip_send_check(iph); | 
| iph | 860 | net/ipv4/ip_fw.c | printk("I-routed to %lX:%X\n",ntohl(iph->daddr),ntohs(portptr[1])); | 
| iph | 1219 | net/ipv4/ip_fw.c | void ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f) | 
| iph | 1221 | net/ipv4/ip_fw.c | (void) ip_fw_chk(iph, dev, f, 0, 1); | 
| iph | 144 | net/ipv4/raw.c | struct iphdr *iph=(struct iphdr *)to; | 
| iph | 145 | net/ipv4/raw.c | iph->saddr=saddr; | 
| iph | 146 | net/ipv4/raw.c | iph->check=0; | 
| iph | 147 | net/ipv4/raw.c | iph->tot_len=htons(fraglen);  /* This is right as you cant frag | 
| iph | 153 | net/ipv4/raw.c | iph->id = htons(ip_id_count++); | 
| iph | 154 | net/ipv4/raw.c | iph->check=ip_fast_csum((unsigned char *)iph, iph->ihl); | 
| iph | 455 | net/ipv4/tcp.c | struct iphdr *iph; | 
| iph | 477 | net/ipv4/tcp.c | iph = (struct iphdr *)skb->data; | 
| iph | 478 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2)); | 
| iph | 479 | net/ipv4/tcp.c | size = ntohs(iph->tot_len) - (iph->ihl<<2); | 
| iph | 486 | net/ipv4/tcp.c | iph->id = htons(ip_id_count++); | 
| iph | 487 | net/ipv4/tcp.c | ip_send_check(iph); | 
| iph | 494 | net/ipv4/tcp.c | rt=ip_rt_local(iph->daddr,NULL,NULL); | 
| iph | 496 | net/ipv4/tcp.c | rt=ip_rt_route(iph->daddr,NULL,NULL); | 
| iph | 511 | net/ipv4/tcp.c | skb->raddr=iph->daddr; | 
| iph | 852 | net/ipv4/tcp.c | struct iphdr *iph=(struct iphdr *)header; | 
| iph | 854 | net/ipv4/tcp.c | header+=4*iph->ihl; | 
| iph | 3076 | net/ipv4/tcp.c | struct iphdr *iph; | 
| iph | 3085 | net/ipv4/tcp.c | iph = skb->ip_hdr; | 
| iph | 3086 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); | 
| iph | 4951 | net/ipv4/tcp.c | struct iphdr *iph; | 
| iph | 4967 | net/ipv4/tcp.c | iph = (struct iphdr *)(skb->data + skb->dev->hard_header_len); | 
| iph | 4968 | net/ipv4/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); | 
| iph | 4975 | net/ipv4/tcp.c | (iph->ihl << 2) + | 
| iph | 5028 | net/ipv4/tcp.c | (iph->ihl << 2) + th->doff * 4; |