tag | line | file | source code |
iph | 123 | net/tcp/icmp.c | struct ip_header *iph; |
iph | 147 | net/tcp/icmp.c | iph = (struct ip_header *)(skb_in+1); |
iph | 148 | net/tcp/icmp.c | iph = (struct ip_header *)((unsigned char *)iph + dev->hard_header_len); |
iph | 151 | net/tcp/icmp.c | offset = ip_build_header( skb, iph->daddr, iph->saddr, |
iph | 169 | net/tcp/icmp.c | memcpy (icmph+1, iph+1, 8); |
iph | 221 | net/tcp/icmp.c | struct ip_header *iph; |
iph | 230 | net/tcp/icmp.c | iph = (struct ip_header *)(icmph+1); |
iph | 233 | net/tcp/icmp.c | hash = iph->protocol & (MAX_IP_PROTOS -1 ); |
iph | 242 | net/tcp/icmp.c | if (iph->protocol == ipprot->protocol && ipprot->err_handler) |
iph | 244 | net/tcp/icmp.c | iph->daddr, iph->saddr, ipprot); |
iph | 257 | net/tcp/icmp.c | struct ip_header *iph; |
iph | 259 | net/tcp/icmp.c | iph = (struct ip_header *)(icmph+1); |
iph | 263 | net/tcp/icmp.c | rt->net = iph->daddr; |
iph | 228 | net/tcp/ip.c | strict_route(struct ip_header *iph, struct options *opt) |
iph | 233 | net/tcp/ip.c | loose_route(struct ip_header *iph, struct options *opt) |
iph | 498 | net/tcp/ip.c | build_options (struct ip_header *iph, struct options *opt) |
iph | 502 | net/tcp/ip.c | ptr = (unsigned char *)(iph+1); |
iph | 519 | net/tcp/ip.c | struct ip_header *iph; |
iph | 570 | net/tcp/ip.c | iph = (struct ip_header *)buff; |
iph | 571 | net/tcp/ip.c | iph->version = 4; |
iph | 572 | net/tcp/ip.c | iph->tos = 0; |
iph | 573 | net/tcp/ip.c | iph->frag_off = 0; |
iph | 574 | net/tcp/ip.c | iph->ttl = 32; |
iph | 575 | net/tcp/ip.c | iph->daddr = daddr; |
iph | 576 | net/tcp/ip.c | iph->saddr = saddr; |
iph | 577 | net/tcp/ip.c | iph->protocol=type; |
iph | 578 | net/tcp/ip.c | iph->ihl = 5; |
iph | 579 | net/tcp/ip.c | iph->id = net16(count++); |
iph | 585 | net/tcp/ip.c | do_options(struct ip_header *iph, struct options *opt) |
iph | 589 | net/tcp/ip.c | int len=sizeof (*iph); |
iph | 603 | net/tcp/ip.c | buff = (unsigned char *)(iph + 1); |
iph | 606 | net/tcp/ip.c | while (!done && len < iph->ihl*4) |
iph | 733 | net/tcp/ip.c | strict_route (iph, opt); |
iph | 740 | net/tcp/ip.c | loose_route (iph, opt); |
iph | 796 | net/tcp/ip.c | ip_csum(struct ip_header *iph) |
iph | 798 | net/tcp/ip.c | if (iph->check == 0) return (0); |
iph | 799 | net/tcp/ip.c | if (ip_compute_csum((unsigned char *)iph, iph->ihl*4) == 0) return (0); |
iph | 804 | net/tcp/ip.c | ip_send_check(struct ip_header *iph) |
iph | 806 | net/tcp/ip.c | iph->check = 0; |
iph | 807 | net/tcp/ip.c | iph->check = ip_compute_csum((unsigned char *)iph, iph->ihl*4); |
iph | 813 | net/tcp/ip.c | struct ip_header *iph; |
iph | 820 | net/tcp/ip.c | iph=skb->h.iph; |
iph | 823 | net/tcp/ip.c | print_iph(iph); |
iph | 825 | net/tcp/ip.c | if (ip_csum (iph) || do_options (iph,&opt) || iph->version != 4) |
iph | 834 | net/tcp/ip.c | if (!my_ip_addr(iph->daddr)) |
iph | 837 | net/tcp/ip.c | PRINTK((" SRC = %s ", in_ntoa(iph->saddr))); |
iph | 838 | net/tcp/ip.c | PRINTK((" DST = %s (ignored)\n", in_ntoa(iph->daddr))); |
iph | 847 | net/tcp/ip.c | if ((iph->frag_off & 32) || (net16(iph->frag_off)&0x1fff)) |
iph | 850 | net/tcp/ip.c | printk(" SRC = %s ", in_ntoa(iph->saddr)); |
iph | 851 | net/tcp/ip.c | printk(" DST = %s (ignored)\n", in_ntoa(iph->daddr)); |
iph | 858 | net/tcp/ip.c | skb->h.raw += iph->ihl*4; |
iph | 860 | net/tcp/ip.c | hash = iph->protocol & (MAX_IP_PROTOS -1); |
iph | 866 | net/tcp/ip.c | if (ipprot->protocol != iph->protocol) continue; |
iph | 891 | net/tcp/ip.c | ipprot->handler (skb2, dev, &opt, iph->daddr, |
iph | 892 | net/tcp/ip.c | net16(iph->tot_len) - iph->ihl*4, |
iph | 893 | net/tcp/ip.c | iph->saddr, 0, ipprot); |
iph | 917 | net/tcp/ip.c | struct ip_header *iph; |
iph | 933 | net/tcp/ip.c | iph = (struct ip_header *)ptr; |
iph | 934 | net/tcp/ip.c | iph->tot_len = net16(skb->len-dev->hard_header_len); |
iph | 935 | net/tcp/ip.c | ip_send_check (iph); |
iph | 936 | net/tcp/ip.c | print_iph(iph); |
iph | 177 | net/tcp/sock.h | struct ip_header *iph; |