tag | line | file | source code |
iph | 1128 | drivers/net/ppp.c | struct iphdr *iph = (struct iphdr *) c; |
iph | 1130 | drivers/net/ppp.c | iph->saddr, iph->daddr, count)) |
iph | 1761 | drivers/net/ppp.c | struct iphdr *iph = (struct iphdr *) (skb + 1); |
iph | 1763 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
iph | 1764 | drivers/net/ppp.c | (int) iph->daddr, (int) iph->protocol)) |
iph | 81 | drivers/net/slhc.c | extern int ip_csum(struct iphdr *iph); |
iph | 53 | include/linux/skbuff.h | struct iphdr *iph; |
iph | 96 | net/inet/icmp.c | struct iphdr *iph; |
iph | 106 | net/inet/icmp.c | iph = (struct iphdr *) (skb_in->data + dev->hard_header_len); |
iph | 114 | net/inet/icmp.c | if(iph->protocol==IPPROTO_ICMP) |
iph | 179 | net/inet/icmp.c | offset = ip_build_header(skb, dev->pa_addr, iph->saddr, |
iph | 205 | net/inet/icmp.c | memcpy(icmph + 1, iph, sizeof(struct iphdr) + 8); |
iph | 224 | net/inet/icmp.c | struct iphdr *iph; |
iph | 229 | net/inet/icmp.c | iph = (struct iphdr *) (icmph + 1); |
iph | 239 | net/inet/icmp.c | in_ntoa(iph->daddr), ntohs(iph->protocol)); |
iph | 245 | net/inet/icmp.c | in_ntoa(iph->daddr)); |
iph | 248 | net/inet/icmp.c | printk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr)); |
iph | 258 | net/inet/icmp.c | hash = iph->protocol & (MAX_INET_PROTOS -1); |
iph | 274 | net/inet/icmp.c | if (iph->protocol == ipprot->protocol && ipprot->err_handler) |
iph | 277 | net/inet/icmp.c | iph->daddr, iph->saddr, ipprot); |
iph | 294 | net/inet/icmp.c | struct iphdr *iph; |
iph | 301 | net/inet/icmp.c | iph = (struct iphdr *) (icmph + 1); |
iph | 302 | net/inet/icmp.c | ip = iph->daddr; |
iph | 123 | net/inet/ip.c | strict_route(struct iphdr *iph, struct options *opt) |
iph | 129 | net/inet/ip.c | loose_route(struct iphdr *iph, struct options *opt) |
iph | 146 | net/inet/ip.c | build_options(struct iphdr *iph, struct options *opt) |
iph | 150 | net/inet/ip.c | ptr = (unsigned char *)(iph+1); |
iph | 196 | net/inet/ip.c | struct iphdr *iph; |
iph | 293 | net/inet/ip.c | iph = (struct iphdr *)buff; |
iph | 294 | net/inet/ip.c | iph->version = 4; |
iph | 295 | net/inet/ip.c | iph->tos = tos; |
iph | 296 | net/inet/ip.c | iph->frag_off = 0; |
iph | 297 | net/inet/ip.c | iph->ttl = ttl; |
iph | 298 | net/inet/ip.c | iph->daddr = daddr; |
iph | 299 | net/inet/ip.c | iph->saddr = saddr; |
iph | 300 | net/inet/ip.c | iph->protocol = type; |
iph | 301 | net/inet/ip.c | iph->ihl = 5; |
iph | 305 | net/inet/ip.c | build_options(iph, opt); |
iph | 313 | net/inet/ip.c | do_options(struct iphdr *iph, struct options *opt) |
iph | 332 | net/inet/ip.c | buff = (unsigned char *)(iph + 1); |
iph | 335 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
iph | 446 | net/inet/ip.c | strict_route(iph, opt); |
iph | 452 | net/inet/ip.c | loose_route(iph, opt); |
iph | 541 | net/inet/ip.c | int ip_csum(struct iphdr *iph) |
iph | 543 | net/inet/ip.c | return ip_fast_csum((unsigned char *)iph, iph->ihl); |
iph | 550 | net/inet/ip.c | static void ip_send_check(struct iphdr *iph) |
iph | 552 | net/inet/ip.c | iph->check = 0; |
iph | 553 | net/inet/ip.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
iph | 598 | net/inet/ip.c | static struct ipq *ip_find(struct iphdr *iph) |
iph | 607 | net/inet/ip.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
iph | 608 | net/inet/ip.c | iph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) |
iph | 668 | net/inet/ip.c | kfree_s(qp->iph, qp->ihlen + 8); |
iph | 711 | net/inet/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
iph | 733 | net/inet/ip.c | maclen = ((unsigned long) iph) - ((unsigned long) skb->data); |
iph | 746 | net/inet/ip.c | ihlen = (iph->ihl * sizeof(unsigned long)); |
iph | 747 | net/inet/ip.c | qp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC); |
iph | 748 | net/inet/ip.c | if (qp->iph == NULL) |
iph | 758 | net/inet/ip.c | memcpy(qp->iph, iph, ihlen + 8); |
iph | 824 | net/inet/ip.c | struct iphdr *iph; |
iph | 852 | net/inet/ip.c | memcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen); |
iph | 879 | net/inet/ip.c | iph = skb->h.iph; |
iph | 880 | net/inet/ip.c | iph->frag_off = 0; |
iph | 881 | net/inet/ip.c | iph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count); |
iph | 882 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 893 | net/inet/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
iph | 906 | net/inet/ip.c | qp = ip_find(iph); |
iph | 909 | net/inet/ip.c | offset = ntohs(iph->frag_off); |
iph | 940 | net/inet/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
iph | 953 | net/inet/ip.c | ihl = (iph->ihl * sizeof(unsigned long)); |
iph | 954 | net/inet/ip.c | end = offset + ntohs(iph->tot_len) - ihl; |
iph | 1087 | net/inet/ip.c | struct iphdr *iph; |
iph | 1100 | net/inet/ip.c | iph = (struct iphdr *) (raw + dev->hard_header_len); |
iph | 1102 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1108 | net/inet/ip.c | hlen = (iph->ihl * sizeof(unsigned long)); |
iph | 1109 | net/inet/ip.c | left = ntohs(iph->tot_len) - hlen; /* Space per frame */ |
iph | 1118 | net/inet/ip.c | if (ntohs(iph->frag_off) & IP_DF) |
iph | 1149 | net/inet/ip.c | offset = (ntohs(iph->frag_off) & 0x1fff) << 3; |
iph | 1224 | net/inet/ip.c | iph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/); |
iph | 1225 | net/inet/ip.c | iph->frag_off = htons((offset >> 3)); |
iph | 1231 | net/inet/ip.c | iph->frag_off |= htons(IP_MF); |
iph | 1257 | net/inet/ip.c | struct iphdr *iph; /* Our header */ |
iph | 1274 | net/inet/ip.c | iph = skb->h.iph; |
iph | 1275 | net/inet/ip.c | iph->ttl--; |
iph | 1276 | net/inet/ip.c | if (iph->ttl <= 0) |
iph | 1289 | net/inet/ip.c | ip_send_check(iph); |
iph | 1296 | net/inet/ip.c | rt = ip_rt_route(iph->daddr, NULL, NULL); |
iph | 1337 | net/inet/ip.c | raddr = iph->daddr; |
iph | 1412 | net/inet/ip.c | if(iph->tos & IPTOS_LOWDELAY) |
iph | 1414 | net/inet/ip.c | else if(iph->tos & IPTOS_THROUGHPUT) |
iph | 1431 | net/inet/ip.c | struct iphdr *iph = skb->h.iph; |
iph | 1448 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1459 | net/inet/ip.c | if (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) |
iph | 1471 | net/inet/ip.c | skb->len=ntohs(iph->tot_len); |
iph | 1478 | net/inet/ip.c | if (iph->ihl != 5) |
iph | 1481 | net/inet/ip.c | if (do_options(iph, &opt) != 0) |
iph | 1490 | net/inet/ip.c | if (iph->frag_off & 0x0020) |
iph | 1497 | net/inet/ip.c | if (ntohs(iph->frag_off) & 0x1fff) |
iph | 1512 | net/inet/ip.c | if ( iph->daddr != skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0) |
iph | 1551 | net/inet/ip.c | skb=ip_defrag(iph,skb,dev); |
iph | 1554 | net/inet/ip.c | iph=skb->h.iph; |
iph | 1561 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1562 | net/inet/ip.c | skb->h.raw += iph->ihl*4; |
iph | 1568 | net/inet/ip.c | hash = iph->protocol & (MAX_INET_PROTOS -1); |
iph | 1573 | net/inet/ip.c | if (ipprot->protocol != iph->protocol) |
iph | 1602 | net/inet/ip.c | ipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr, |
iph | 1603 | net/inet/ip.c | (ntohs(iph->tot_len) - (iph->ihl * 4)), |
iph | 1604 | net/inet/ip.c | iph->saddr, 0, ipprot); |
iph | 1638 | net/inet/ip.c | struct iphdr *iph; |
iph | 1668 | net/inet/ip.c | iph = (struct iphdr *)ptr; |
iph | 1669 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1670 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
iph | 1677 | net/inet/ip.c | iph->id = htons(ip_id_count++); |
iph | 1705 | net/inet/ip.c | ip_send_check(iph); |
iph | 1830 | net/inet/ip.c | struct iphdr *iph; |
iph | 1833 | net/inet/ip.c | iph = (struct iphdr *)(skb->data + dev->hard_header_len); |
iph | 1834 | net/inet/ip.c | th = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2)); |
iph | 1837 | net/inet/ip.c | iph->id = htons(ip_id_count++); |
iph | 1838 | net/inet/ip.c | ip_send_check(iph); |
iph | 54 | net/inet/ip.h | struct iphdr *iph; /* pointer to IP header */ |
iph | 250 | net/inet/raw.c | struct iphdr *iph; |
iph | 255 | net/inet/raw.c | iph = (struct iphdr *)buff; |
iph | 256 | net/inet/raw.c | iph->saddr = sk->saddr; |
iph | 312 | net/inet/tcp.c | struct iphdr *iph=(struct iphdr *)header; |
iph | 314 | net/inet/tcp.c | header+=4*iph->ihl; |
iph | 2459 | net/inet/tcp.c | struct iphdr *iph; |
iph | 2468 | net/inet/tcp.c | iph = (struct iphdr *)(skb->data + |
iph | 2470 | net/inet/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |