tag | line | file | source code |
iph | 1140 | drivers/net/ppp.c | struct iphdr *iph = (struct iphdr *) c; |
iph | 1142 | drivers/net/ppp.c | iph->saddr, iph->daddr, count)) |
iph | 1772 | drivers/net/ppp.c | struct iphdr *iph = (struct iphdr *) (skb + 1); |
iph | 1774 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
iph | 1775 | drivers/net/ppp.c | (int) iph->daddr, (int) iph->protocol)) |
iph | 54 | include/linux/skbuff.h | struct iphdr *iph; |
iph | 102 | net/inet/icmp.c | struct iphdr *iph; |
iph | 114 | net/inet/icmp.c | iph = (struct iphdr *) (skb_in->data + dev->hard_header_len); |
iph | 127 | net/inet/icmp.c | atype=ip_chk_addr(iph->daddr); |
iph | 128 | net/inet/icmp.c | if(atype==IS_BROADCAST || IN_MULTICAST(iph->daddr)) |
iph | 135 | net/inet/icmp.c | if(ntohs(iph->frag_off)&IP_OFFSET) |
iph | 149 | net/inet/icmp.c | if(iph->protocol==IPPROTO_ICMP) |
iph | 151 | net/inet/icmp.c | icmph = (struct icmphdr *) ((char *) iph + |
iph | 152 | net/inet/icmp.c | 4 * iph->ihl); |
iph | 228 | net/inet/icmp.c | if (iph->daddr != our_addr && ip_chk_addr(iph->daddr) == IS_MYADDR) |
iph | 229 | net/inet/icmp.c | our_addr = iph->daddr; |
iph | 230 | net/inet/icmp.c | offset = ip_build_header(skb, our_addr, iph->saddr, |
iph | 258 | net/inet/icmp.c | memcpy(icmph + 1, iph, sizeof(struct iphdr) + 8); |
iph | 277 | net/inet/icmp.c | struct iphdr *iph; |
iph | 282 | net/inet/icmp.c | iph = (struct iphdr *) (icmph + 1); |
iph | 292 | net/inet/icmp.c | in_ntoa(iph->daddr), ntohs(iph->protocol)); |
iph | 298 | net/inet/icmp.c | in_ntoa(iph->daddr)); |
iph | 301 | net/inet/icmp.c | printk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr)); |
iph | 311 | net/inet/icmp.c | hash = iph->protocol & (MAX_INET_PROTOS -1); |
iph | 327 | net/inet/icmp.c | if (iph->protocol == ipprot->protocol && ipprot->err_handler) |
iph | 330 | net/inet/icmp.c | iph->daddr, iph->saddr, ipprot); |
iph | 347 | net/inet/icmp.c | struct iphdr *iph; |
iph | 354 | net/inet/icmp.c | iph = (struct iphdr *) (icmph + 1); |
iph | 355 | net/inet/icmp.c | ip = iph->daddr; |
iph | 159 | net/inet/ip.c | strict_route(struct iphdr *iph, struct options *opt) |
iph | 165 | net/inet/ip.c | loose_route(struct iphdr *iph, struct options *opt) |
iph | 182 | net/inet/ip.c | build_options(struct iphdr *iph, struct options *opt) |
iph | 186 | net/inet/ip.c | ptr = (unsigned char *)(iph+1); |
iph | 232 | net/inet/ip.c | struct iphdr *iph; |
iph | 332 | net/inet/ip.c | iph = (struct iphdr *)buff; |
iph | 333 | net/inet/ip.c | iph->version = 4; |
iph | 334 | net/inet/ip.c | iph->tos = tos; |
iph | 335 | net/inet/ip.c | iph->frag_off = 0; |
iph | 336 | net/inet/ip.c | iph->ttl = ttl; |
iph | 337 | net/inet/ip.c | iph->daddr = daddr; |
iph | 338 | net/inet/ip.c | iph->saddr = saddr; |
iph | 339 | net/inet/ip.c | iph->protocol = type; |
iph | 340 | net/inet/ip.c | iph->ihl = 5; |
iph | 341 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 345 | net/inet/ip.c | build_options(iph, opt); |
iph | 353 | net/inet/ip.c | do_options(struct iphdr *iph, struct options *opt) |
iph | 372 | net/inet/ip.c | buff = (unsigned char *)(iph + 1); |
iph | 375 | net/inet/ip.c | while (!done && len < iph->ihl*4) switch(*buff) { |
iph | 486 | net/inet/ip.c | strict_route(iph, opt); |
iph | 492 | net/inet/ip.c | loose_route(iph, opt); |
iph | 552 | net/inet/ip.c | void ip_send_check(struct iphdr *iph) |
iph | 554 | net/inet/ip.c | iph->check = 0; |
iph | 555 | net/inet/ip.c | iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); |
iph | 600 | net/inet/ip.c | static struct ipq *ip_find(struct iphdr *iph) |
iph | 609 | net/inet/ip.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
iph | 610 | net/inet/ip.c | iph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) |
iph | 670 | net/inet/ip.c | kfree_s(qp->iph, qp->ihlen + 8); |
iph | 713 | net/inet/ip.c | static struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev) |
iph | 735 | net/inet/ip.c | maclen = ((unsigned long) iph) - ((unsigned long) skb->data); |
iph | 748 | net/inet/ip.c | ihlen = (iph->ihl * sizeof(unsigned long)); |
iph | 749 | net/inet/ip.c | qp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC); |
iph | 750 | net/inet/ip.c | if (qp->iph == NULL) |
iph | 760 | net/inet/ip.c | memcpy(qp->iph, iph, ihlen + 8); |
iph | 826 | net/inet/ip.c | struct iphdr *iph; |
iph | 854 | net/inet/ip.c | memcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen); |
iph | 881 | net/inet/ip.c | iph = skb->h.iph; |
iph | 882 | net/inet/ip.c | iph->frag_off = 0; |
iph | 883 | net/inet/ip.c | iph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count); |
iph | 884 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 895 | net/inet/ip.c | static struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev) |
iph | 908 | net/inet/ip.c | qp = ip_find(iph); |
iph | 911 | net/inet/ip.c | offset = ntohs(iph->frag_off); |
iph | 942 | net/inet/ip.c | if ((qp = ip_create(skb, iph, dev)) == NULL) |
iph | 955 | net/inet/ip.c | ihl = (iph->ihl * sizeof(unsigned long)); |
iph | 956 | net/inet/ip.c | end = offset + ntohs(iph->tot_len) - ihl; |
iph | 1089 | net/inet/ip.c | struct iphdr *iph; |
iph | 1102 | net/inet/ip.c | iph = (struct iphdr *) (raw + dev->hard_header_len); |
iph | 1104 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1110 | net/inet/ip.c | hlen = (iph->ihl * sizeof(unsigned long)); |
iph | 1111 | net/inet/ip.c | left = ntohs(iph->tot_len) - hlen; /* Space per frame */ |
iph | 1120 | net/inet/ip.c | if (ntohs(iph->frag_off) & IP_DF) |
iph | 1154 | net/inet/ip.c | offset = (ntohs(iph->frag_off) & 0x1fff) << 3; |
iph | 1229 | net/inet/ip.c | iph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/); |
iph | 1230 | net/inet/ip.c | iph->frag_off = htons((offset >> 3)); |
iph | 1236 | net/inet/ip.c | iph->frag_off |= htons(IP_MF); |
iph | 1262 | net/inet/ip.c | struct iphdr *iph; /* Our header */ |
iph | 1275 | net/inet/ip.c | if((err=ip_fw_chk(skb->h.iph, dev, ip_fw_fwd_chain, ip_fw_fwd_policy, 0))!=1) |
iph | 1293 | net/inet/ip.c | iph = skb->h.iph; |
iph | 1294 | net/inet/ip.c | iph->ttl--; |
iph | 1295 | net/inet/ip.c | if (iph->ttl <= 0) |
iph | 1308 | net/inet/ip.c | ip_send_check(iph); |
iph | 1315 | net/inet/ip.c | rt = ip_rt_route(iph->daddr, NULL, NULL); |
iph | 1356 | net/inet/ip.c | raddr = iph->daddr; |
iph | 1373 | net/inet/ip.c | if (dev == dev2 && (iph->saddr&dev->pa_mask) == (iph->daddr & dev->pa_mask)) |
iph | 1434 | net/inet/ip.c | ip_acct_cnt(iph,dev,ip_acct_chain); |
iph | 1442 | net/inet/ip.c | if(iph->tos & IPTOS_LOWDELAY) |
iph | 1444 | net/inet/ip.c | else if(iph->tos & IPTOS_THROUGHPUT) |
iph | 1461 | net/inet/ip.c | struct iphdr *iph = skb->h.iph; |
iph | 1481 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1492 | 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 | 1505 | net/inet/ip.c | if ((err=ip_fw_chk(iph,dev,ip_fw_blk_chain,ip_fw_blk_policy, 0))!=1) |
iph | 1520 | net/inet/ip.c | skb->len=ntohs(iph->tot_len); |
iph | 1527 | net/inet/ip.c | if (iph->ihl != 5) |
iph | 1530 | net/inet/ip.c | if (do_options(iph, &opt) != 0) |
iph | 1539 | net/inet/ip.c | if(iph->frag_off) |
iph | 1541 | net/inet/ip.c | if (iph->frag_off & 0x0020) |
iph | 1547 | net/inet/ip.c | if (ntohs(iph->frag_off) & 0x1fff) |
iph | 1563 | net/inet/ip.c | if ( iph->daddr != skb->dev->pa_addr && (brd = ip_chk_addr(iph->daddr)) == 0) |
iph | 1597 | net/inet/ip.c | if(brd==IS_MULTICAST && iph->daddr!=IGMP_ALL_HOSTS && !(dev->flags&IFF_LOOPBACK)) |
iph | 1610 | net/inet/ip.c | if(ip_mc->multiaddr==iph->daddr) |
iph | 1622 | net/inet/ip.c | ip_acct_cnt(iph,dev, ip_acct_chain); |
iph | 1632 | net/inet/ip.c | skb=ip_defrag(iph,skb,dev); |
iph | 1636 | net/inet/ip.c | iph=skb->h.iph; |
iph | 1645 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1646 | net/inet/ip.c | skb->h.raw += iph->ihl*4; |
iph | 1652 | net/inet/ip.c | hash = iph->protocol & (SOCK_ARRAY_SIZE-1); |
iph | 1659 | net/inet/ip.c | raw_sk=get_sock_raw(raw_sk, hash, iph->saddr, iph->daddr); |
iph | 1665 | net/inet/ip.c | sknext=get_sock_raw(raw_sk->next, hash, iph->saddr, iph->daddr); |
iph | 1671 | net/inet/ip.c | raw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr); |
iph | 1684 | net/inet/ip.c | hash = iph->protocol & (MAX_INET_PROTOS -1); |
iph | 1689 | net/inet/ip.c | if (ipprot->protocol != iph->protocol) |
iph | 1714 | net/inet/ip.c | ipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr, |
iph | 1715 | net/inet/ip.c | (ntohs(iph->tot_len) - (iph->ihl * 4)), |
iph | 1716 | net/inet/ip.c | iph->saddr, 0, ipprot); |
iph | 1728 | net/inet/ip.c | raw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr); |
iph | 1788 | net/inet/ip.c | struct iphdr *iph; |
iph | 1818 | net/inet/ip.c | iph = (struct iphdr *)ptr; |
iph | 1819 | net/inet/ip.c | skb->ip_hdr = iph; |
iph | 1820 | net/inet/ip.c | iph->tot_len = ntohs(skb->len-dev->hard_header_len); |
iph | 1823 | net/inet/ip.c | if(ip_fw_chk(iph, dev, ip_fw_blk_chain, ip_fw_blk_policy, 0) != 1) |
iph | 1833 | net/inet/ip.c | iph->id = htons(ip_id_count++); |
iph | 1861 | net/inet/ip.c | ip_send_check(iph); |
iph | 1925 | net/inet/ip.c | ip_acct_cnt(iph,dev, ip_acct_chain); |
iph | 1934 | net/inet/ip.c | if (MULTICAST(iph->daddr) && !(dev->flags&IFF_LOOPBACK)) |
iph | 1938 | net/inet/ip.c | if(iph->daddr==IGMP_ALL_HOSTS) |
iph | 1945 | net/inet/ip.c | if(imc->multiaddr==iph->daddr) |
iph | 1963 | net/inet/ip.c | if((dev->flags&IFF_BROADCAST) && iph->daddr==dev->pa_brdaddr && !(dev->flags&IFF_LOOPBACK)) |
iph | 62 | net/inet/ip.h | struct iphdr *iph; /* pointer to IP header */ |
iph | 743 | net/inet/ip_fw.c | void ip_acct_cnt(struct iphdr *iph, struct device *dev, struct ip_fw *f) |
iph | 745 | net/inet/ip_fw.c | (void) ip_fw_chk(iph, dev, f, 0, 1); |
iph | 201 | net/inet/raw.c | struct iphdr *iph; |
iph | 206 | net/inet/raw.c | iph = (struct iphdr *)buff; |
iph | 207 | net/inet/raw.c | iph->saddr = sk->saddr; |
iph | 417 | net/inet/tcp.c | struct iphdr *iph; |
iph | 433 | net/inet/tcp.c | iph = (struct iphdr *)(skb->data + dev->hard_header_len); |
iph | 434 | net/inet/tcp.c | th = (struct tcphdr *)(((char *)iph) + (iph->ihl << 2)); |
iph | 445 | net/inet/tcp.c | iph->id = htons(ip_id_count++); |
iph | 446 | net/inet/tcp.c | ip_send_check(iph); |
iph | 758 | net/inet/tcp.c | struct iphdr *iph=(struct iphdr *)header; |
iph | 760 | net/inet/tcp.c | header+=4*iph->ihl; |
iph | 3066 | net/inet/tcp.c | struct iphdr *iph; |
iph | 3075 | net/inet/tcp.c | iph = (struct iphdr *)(skb->data + |
iph | 3077 | net/inet/tcp.c | th = (struct tcphdr *)(((char *)iph) +(iph->ihl << 2)); |