taglinefilesource code
iph75drivers/net/slhc.cextern int ip_csum(struct iphdr *iph);
iph84net/inet/icmp.cstruct iphdr *iph;
iph107net/inet/icmp.ciph = (struct iphdr *) (skb_in->data + dev->hard_header_len);
iph110net/inet/icmp.coffset = ip_build_header(skb, dev->pa_addr, iph->saddr,
iph125net/inet/icmp.cmemcpy(icmph + 1, iph, sizeof(struct iphdr) + 8);
iph143net/inet/icmp.cstruct iphdr *iph;
iph148net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph152net/inet/icmp.cin_ntoa(iph->daddr)));
iph156net/inet/icmp.cin_ntoa(iph->daddr)));
iph160net/inet/icmp.cin_ntoa(iph->daddr), ntohs(iph->protocol));
iph164net/inet/icmp.cin_ntoa(iph->daddr), -1 /* FIXME: ntohs(iph->port) */));
iph168net/inet/icmp.cin_ntoa(iph->daddr));
iph171net/inet/icmp.cprintk("ICMP: %s: Source Route Failed.\n", in_ntoa(iph->daddr));
iph175net/inet/icmp.c(icmph->code & 7), in_ntoa(iph->daddr)));
iph180net/inet/icmp.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph190net/inet/icmp.cif (iph->protocol == ipprot->protocol && ipprot->err_handler) {
iph192net/inet/icmp.ciph->daddr, iph->saddr, ipprot);
iph206net/inet/icmp.cstruct iphdr *iph;
iph209net/inet/icmp.ciph = (struct iphdr *) (icmph + 1);
iph210net/inet/icmp.cip = iph->daddr;
iph133net/inet/ip.cstrict_route(struct iphdr *iph, struct options *opt)
iph139net/inet/ip.cloose_route(struct iphdr *iph, struct options *opt)
iph162net/inet/ip.cbuild_options(struct iphdr *iph, struct options *opt)
iph166net/inet/ip.cptr = (unsigned char *)(iph+1);
iph207net/inet/ip.cstruct iphdr *iph;
iph260net/inet/ip.ciph = (struct iphdr *)buff;
iph261net/inet/ip.ciph->version  = 4;
iph262net/inet/ip.ciph->tos      = tos;
iph263net/inet/ip.ciph->frag_off = 0;
iph264net/inet/ip.ciph->ttl      = ttl;
iph265net/inet/ip.ciph->daddr    = daddr;
iph266net/inet/ip.ciph->saddr    = saddr;
iph267net/inet/ip.ciph->protocol = type;
iph268net/inet/ip.ciph->ihl      = 5;
iph269net/inet/ip.ciph->id       = htons(count++);
iph273net/inet/ip.cbuild_options(iph, opt);
iph281net/inet/ip.cdo_options(struct iphdr *iph, struct options *opt)
iph300net/inet/ip.cbuff = (unsigned char *)(iph + 1);
iph303net/inet/ip.cwhile (!done && len < iph->ihl*4) switch(*buff) {
iph414net/inet/ip.cstrict_route(iph, opt);
iph420net/inet/ip.cloose_route(iph, opt);
iph501net/inet/ip.cip_csum(struct iphdr *iph)
iph503net/inet/ip.creturn ip_fast_csum((unsigned char *)iph, iph->ihl);
iph508net/inet/ip.cip_send_check(struct iphdr *iph)
iph510net/inet/ip.ciph->check = 0;
iph511net/inet/ip.ciph->check = ip_fast_csum((unsigned char *)iph, iph->ihl);
iph545net/inet/ip.cstatic struct ipq *ip_find(struct iphdr *iph)
iph554net/inet/ip.cif (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr &&
iph555net/inet/ip.ciph->daddr == qp->iph->daddr && iph->protocol == qp->iph->protocol) 
iph615net/inet/ip.ckfree_s(qp->iph, qp->ihlen + 8);
iph635net/inet/ip.cicmp_send(qp->iph->ip_src.s_addr, ICMP_TIME_EXCEEDED,
iph636net/inet/ip.cICMP_EXC_FRAGTIME, qp->iph);
iph654net/inet/ip.cstatic struct ipq *ip_create(struct sk_buff *skb, struct iphdr *iph, struct device *dev)
iph669net/inet/ip.cmaclen = ((unsigned long) iph) - ((unsigned long) skb->data);
iph679net/inet/ip.cihlen = (iph->ihl * sizeof(unsigned long));
iph680net/inet/ip.cqp->iph = (struct iphdr *) kmalloc(ihlen + 8, GFP_ATOMIC);
iph681net/inet/ip.cif (qp->iph == NULL) 
iph691net/inet/ip.cmemcpy(qp->iph, iph, ihlen + 8);
iph747net/inet/ip.cstruct iphdr *iph;
iph772net/inet/ip.cmemcpy(ptr, ((unsigned char *) qp->iph), qp->ihlen);
iph800net/inet/ip.ciph = skb->h.iph;
iph801net/inet/ip.ciph->frag_off = 0;
iph802net/inet/ip.ciph->tot_len = htons((iph->ihl * sizeof(unsigned long)) + count);
iph803net/inet/ip.cskb->ip_hdr = iph;
iph809net/inet/ip.cstatic struct sk_buff *ip_defrag(struct iphdr *iph, struct sk_buff *skb, struct device *dev)
iph820net/inet/ip.cqp = ip_find(iph);
iph823net/inet/ip.coffset = ntohs(iph->frag_off);
iph849net/inet/ip.cif ((qp = ip_create(skb, iph, dev)) == NULL) 
iph854net/inet/ip.cihl = (iph->ihl * sizeof(unsigned long));
iph855net/inet/ip.cend = offset + ntohs(iph->tot_len) - ihl;
iph962net/inet/ip.cstruct iphdr *iph;
iph971net/inet/ip.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph974net/inet/ip.chlen = (iph->ihl * sizeof(unsigned long));
iph975net/inet/ip.cleft = ntohs(iph->tot_len) - hlen;
iph982net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph983net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph986net/inet/ip.cif (ntohs(iph->frag_off) & IP_DF) 
iph990net/inet/ip.cdev->name, dev->mtu, left, in_ntoa(iph->saddr)));
iph991net/inet/ip.cDPRINTF((DBG_IP, " DST=%s\n", in_ntoa(iph->daddr)));
iph1004net/inet/ip.coffset = (ntohs(iph->frag_off) & 0x1fff) << 3;
iph1043net/inet/ip.ciph = (struct iphdr *)(skb2->h.raw/*+dev->hard_header_len*/);
iph1044net/inet/ip.ciph->frag_off = htons((offset >> 3));
iph1048net/inet/ip.ciph->frag_off |= htons(IP_MF);
iph1068net/inet/ip.cstruct iphdr *iph;
iph1090net/inet/ip.ciph = skb->h.iph;
iph1091net/inet/ip.ciph->ttl--;
iph1092net/inet/ip.cif (iph->ttl <= 0) {
iph1094net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1095net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1103net/inet/ip.cip_send_check(iph);
iph1109net/inet/ip.crt = rt_route(iph->daddr, NULL);
iph1137net/inet/ip.c} else raddr = iph->daddr;
iph1147net/inet/ip.cDPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr)));
iph1190net/inet/ip.cstruct iphdr *iph = skb->h.iph;
iph1202net/inet/ip.cskb->ip_hdr = iph;    /* Fragments can cause ICMP errors too! */
iph1204net/inet/ip.cif (skb->len<sizeof(struct iphdr) || iph->ihl<5 || iph->version != 4 || ip_fast_csum((unsigned char *)iph, iph->ihl) !=0) {
iph1206net/inet/ip.cDPRINTF((DBG_IP, "    SRC = %s   ", in_ntoa(iph->saddr)));
iph1207net/inet/ip.cDPRINTF((DBG_IP, "    DST = %s (ignored)\n", in_ntoa(iph->daddr)));
iph1213net/inet/ip.cif (iph->ihl != 5) {    /* Fast path for the typical optionless IP packet. */
iph1214net/inet/ip.cip_print(iph);    /* Bogus, only for debugging. */
iph1216net/inet/ip.cif (do_options(iph, &opt) != 0)
iph1221net/inet/ip.cif (iph->frag_off & 0x0020)
iph1223net/inet/ip.cif (ntohs(iph->frag_off) & 0x1fff)
iph1227net/inet/ip.cif ((brd = chk_addr(iph->daddr)) == 0) {
iph1232net/inet/ip.ciph->saddr,iph->daddr);
iph1246net/inet/ip.cskb=ip_defrag(iph,skb,dev);
iph1251net/inet/ip.ciph=skb->h.iph;
iph1254net/inet/ip.cprintk("    SRC = %s   ", in_ntoa(iph->saddr));
iph1255net/inet/ip.cprintk("    DST = %s (ignored)\n", in_ntoa(iph->daddr));
iph1276net/inet/ip.cskb->ip_hdr = iph;
iph1277net/inet/ip.cskb->h.raw += iph->ihl*4;
iph1278net/inet/ip.chash = iph->protocol & (MAX_INET_PROTOS -1);
iph1285net/inet/ip.cif (ipprot->protocol != iph->protocol) continue;
iph1319net/inet/ip.cipprot->handler(skb2, dev, opts_p ? &opt : 0, iph->daddr,
iph1320net/inet/ip.c(ntohs(iph->tot_len) - (iph->ihl * 4)),
iph1321net/inet/ip.ciph->saddr, 0, ipprot);
iph1353net/inet/ip.cstruct iphdr *iph;
iph1369net/inet/ip.ciph = (struct iphdr *)ptr;
iph1370net/inet/ip.ciph->tot_len = ntohs(skb->len-dev->hard_header_len);
iph1381net/inet/ip.cip_send_check(iph);
iph1382net/inet/ip.cip_print(iph);
iph50net/inet/ip.hstruct iphdr  *iph;    /* pointer to IP header      */
iph238net/inet/raw.cstruct iphdr *iph;
iph242net/inet/raw.ciph = (struct iphdr *)buff;
iph243net/inet/raw.ciph->saddr = sk->saddr;
iph54net/inet/skbuff.hstruct iphdr  *iph;
iph243net/inet/tcp.cstruct iphdr *iph=(struct iphdr *)header;
iph245net/inet/tcp.cheader+=4*iph->ihl;
iph3572net/inet/tcp.cstruct iphdr *iph;
iph3599net/inet/tcp.ciph = (struct iphdr *) (raw + dev->hard_header_len);
iph3601net/inet/tcp.chlen = (iph->ihl * sizeof(unsigned long)) + dev->hard_header_len;