taglinefilesource code
iph75drivers/net/slhc.cextern int ip_csum(struct iphdr *iph);
iph94net/inet/icmp.cstruct iphdr *iph;
iph118net/inet/icmp.ciph = (struct iphdr *) (skb_in + 1);
iph119net/inet/icmp.ciph = (struct iphdr *) ((unsigned char *) iph + dev->hard_header_len);
iph122net/inet/icmp.coffset = ip_build_header(skb, dev->pa_addr, iph->saddr,
iph138net/inet/icmp.cmemcpy(icmph + 1, iph, sizeof(struct iphdr) + 8);
iph159net/inet/icmp.cstruct iphdr *iph;
iph164net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph169net/inet/icmp.cin_ntoa(iph->daddr)));
iph173net/inet/icmp.cin_ntoa(iph->daddr)));
iph177net/inet/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph181net/inet/icmp.cin_ntoa(iph->daddr), -1 /* FIXME: ntohs(iph->port) */));
iph185net/inet/icmp.cin_ntoa(iph->daddr));
iph188net/inet/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph192net/inet/icmp.c(icmph->code & 7), in_ntoa(iph->daddr)));
iph197net/inet/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph208net/inet/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) 
iph211net/inet/icmp.ciph->daddr, iph->saddr, ipprot);
iph227net/inet/icmp.cstruct iphdr *iph;
iph230net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph231net/inet/icmp.cip = iph->daddr;
iph157net/inet/ip.cstatic void strict_route(struct iphdr *iph, struct options *opt)
iph162net/inet/ip.cstatic void loose_route(struct iphdr *iph, struct options *opt)
iph187net/inet/ip.cstatic int build_options(struct iphdr *iph, struct options *opt)
iph190net/inet/ip.cptr = (unsigned char *)(iph+1);    
iph242net/inet/ip.cstruct iphdr *iph;
iph301net/inet/ip.ciph = (struct iphdr *)buff;
iph302net/inet/ip.ciph->version  = 4;
iph303net/inet/ip.ciph->tos      = tos;
iph304net/inet/ip.ciph->frag_off = 0;
iph305net/inet/ip.ciph->ttl      = ttl;
iph306net/inet/ip.ciph->daddr    = daddr;
iph307net/inet/ip.ciph->saddr    = saddr;
iph308net/inet/ip.ciph->protocol = type;
iph309net/inet/ip.ciph->ihl      = 5;
iph310net/inet/ip.ciph->id       = htons(count++);
iph314net/inet/ip.coptlen=build_options(iph, opt);
iph315net/inet/ip.ciph->ihl+=optlen;
iph325net/inet/ip.cstatic int do_options(struct iphdr *iph, struct options **opt_ptr, struct device *dev)
iph335net/inet/ip.cif(iph->ihl==5)
iph343net/inet/ip.col=(iph->ihl*4)-sizeof(struct iphdr);
iph368net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph374net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) 
iph525net/inet/ip.cstrict_route(iph, opt);
iph532net/inet/ip.cloose_route(iph, opt);
iph617net/inet/ip.cint ip_csum(struct iphdr *iph)
iph619net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph626net/inet/ip.cstatic void ip_send_check(struct iphdr *iph)
iph628net/inet/ip.ciph->check = 0;
iph629net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph668net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph677net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph678net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) 
iph738net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph760net/inet/ip.cicmp_send(qp->iph->ip_src.s_addr, ICMP_TIME_EXCEEDED,
iph761net/inet/ip.cICMP_EXC_FRAGTIME, qp->iph);
iph779net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph794net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) (skb + 1));
iph804net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph805net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph806net/inet/ip.cif (qp->iph == NULL) 
iph816net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph878net/inet/ip.cstruct iphdr *iph;
iph903net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph932net/inet/ip.ciph = skb->h.iph;
iph933net/inet/ip.ciph->frag_off = 0;
iph934net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph943net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph954net/inet/ip.cqp = ip_find(iph);
iph957net/inet/ip.coffset = ntohs(iph->frag_off);
iph983net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
iph988net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph989net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph1097net/inet/ip.cstruct iphdr *iph;
iph1106net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph1109net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph1110net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;
iph1117net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph1118net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1121net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF) 
iph1125net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph1126net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1149net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1188net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1189net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1193net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1215net/inet/ip.cstruct iphdr *iph;
iph1237net/inet/ip.ciph = skb->h.iph;
iph1238net/inet/ip.ciph->ttl--;
iph1239net/inet/ip.cif (iph->ttl <= 0) 
iph1242net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1243net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1251net/inet/ip.cip_send_check(iph);
iph1257net/inet/ip.crt = rt_route(iph->daddr, NULL);
iph1291net/inet/ip.craddr = iph->daddr;
iph1304net/inet/ip.cDPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr)));
iph1350net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1363net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) 
iph1366net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1367net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1373net/inet/ip.cif (iph->ihl != 5) 
iph1376net/inet/ip.cip_print(iph);    /* Bogus, only for debugging. */
iph1378net/inet/ip.cif (do_options(iph, &opt,dev) != 0)
iph1390net/inet/ip.cif (iph->frag_off & 0x0020)
iph1392net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1396net/inet/ip.cif ((brd = chk_addr(iph->daddr)) == 0) 
iph1402net/inet/ip.ciph->saddr,iph->daddr);
iph1416net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1421net/inet/ip.ciph=skb->h.iph;
iph1424net/inet/ip.cprintk("    SRC = %s   ", in_ntoa(iph->saddr));
iph1425net/inet/ip.cprintk("    DST = %s (ignored)\n", in_ntoa(iph->daddr));
iph1435net/inet/ip.cskb->ip_hdr = iph;
iph1436net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1437net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1447net/inet/ip.cif (ipprot->protocol != iph->protocol) 
iph1481net/inet/ip.cipprot->handler(skb2, dev, opts_p ? opt : 0, iph->daddr,
iph1482net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1483net/inet/ip.ciph->saddr, 0, ipprot);
iph1515net/inet/ip.cstruct iphdr *iph;
iph1533net/inet/ip.ciph = (struct iphdr *)ptr;
iph1534net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1545net/inet/ip.cip_send_check(iph);
iph1547net/inet/ip.cip_print(iph);
iph50net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph134net/inet/raw.cskb->h.iph = skb->ip_hdr;
iph271net/inet/raw.cstruct iphdr *iph;
iph275net/inet/raw.ciph = (struct iphdr *)buff;
iph276net/inet/raw.ciph->saddr = sk->saddr;
iph212net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph214net/inet/tcp.cheader+=4*iph->ihl;
iph57net/socket/skbuff.hstruct iphdr  *iph;